custom binding function config

This commit is contained in:
Asaki Yuki 2026-02-21 13:57:10 +07:00
parent 6bd3f54842
commit 63315c35c4
8 changed files with 97 additions and 15 deletions

View file

@ -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)