custom binding function config
This commit is contained in:
parent
6bd3f54842
commit
63315c35c4
8 changed files with 97 additions and 15 deletions
16
test/app.ts
16
test/app.ts
|
|
@ -1,10 +1,16 @@
|
|||
import { Anchor, Label, Modify } from ".."
|
||||
|
||||
const label = Label({
|
||||
text: "Hello World from my Custom UI!",
|
||||
shadow: true,
|
||||
anchor: Anchor.TOP_MIDDLE,
|
||||
offset: [0, 10],
|
||||
const label = Label(
|
||||
{
|
||||
text: "Hello World from my Custom UI!",
|
||||
shadow: true,
|
||||
anchor: Anchor.TOP_MIDDLE,
|
||||
offset: [0, 10],
|
||||
},
|
||||
"test",
|
||||
).addBindings({
|
||||
source_property_name: `[ custom_abs(#a) ]`,
|
||||
target_property_name: "#text",
|
||||
})
|
||||
|
||||
Modify("start", "start_screen_content").insertChild(label)
|
||||
|
|
|
|||
Reference in a new issue