class
ButtonObject
js/jsplitter.js:73
Button object returned by window.CreateButton
Button object returned by window.CreateButton
Click(id)
Assigns click handler function. See also global callback 'on_button_click'
let b = window.CreateButton(100, 100, "1.png", null);
b.HandOnHover = true;
b.Click = (id) => {
console.log(`Pressed button with ID = ${id}`);
};
function click(id) {
utils.ShowHtmlDialog(0, `ID = ${id}`);
}
b.Click = click;
let user = {
name: "DZMITRY",
f(id) {
console.log(`ID = ${id} for ${this.name}`);
}
};
b.Click = user.f.bind(user);
HandOnHover: boolean
Height: number
Hidden: boolean
ID: number
State: boolean
Width: number
X: number
Y: number
Move(x, y)
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Resize(width, height)
| Name | Type | Description |
|---|---|---|
width | number | |
height | number |
Show(show)
| Name | Type | Description |
|---|---|---|
show = trueoptional | boolean |