idk
This commit is contained in:
parent
99c294a9ba
commit
3719a3f6b3
6 changed files with 57 additions and 111 deletions
18
test/app.ts
18
test/app.ts
|
|
@ -1,14 +1,10 @@
|
|||
import { BagBinding, f, ItemAuxID, Label } from ".."
|
||||
import { Panel } from ".."
|
||||
|
||||
const text = Label({
|
||||
text: "#text",
|
||||
[BagBinding.ITEM_ID_AUX]: ItemAuxID.DIAMOND,
|
||||
"#x": 2,
|
||||
const panel = Panel()
|
||||
|
||||
panel.addBindings({
|
||||
source_property_name: `[ $abc ]`,
|
||||
target_property_name: "#text",
|
||||
})
|
||||
|
||||
text.addBindings({
|
||||
source_property_name: f(`Test: #{ -(${BagBinding.ITEM_ID_AUX} % #x) == 0 }`),
|
||||
target_property_name: BagBinding.TEXT,
|
||||
})
|
||||
|
||||
console.log(text)
|
||||
console.log(panel)
|
||||
|
|
|
|||
Reference in a new issue