Hello, i am new in this forum, and i am doing a web app with BANano library and Konva.js, i made some layers with konva.
I want to create some buttons that fulfill certain functions, but that remain in these layers, but when creating them they are outside these layers, they remain in the body, I really don't know how to create them, thank you very much for your help.
Box As BANanoObject
Box.Initialize2("Konva.Rect",Array(CreateMap("x": 0,"y":0,"width": myWidth,"height": myHeight, "fill": "black","stroke": "yellow","strokeWidth": 4))) this is the layer.
layer.RunMethod("add",Array(Box))
Dim buttonIn As BANanoElement = Container.Append($"<button id="buttonIn">Iniciar</button>"$).Get("#buttonIn")
buttonIn.HandleEvents("click", Me, "buttonIn_click") this is the button to create on the layer.
How can I create this button and assign functions? I would like to be able to apply css too, this is my first project in B4J, I want to learn more about design, functions with js and css, thank you very much for your help and attention.
P.D: Sorry for my bad english.
I want to create some buttons that fulfill certain functions, but that remain in these layers, but when creating them they are outside these layers, they remain in the body, I really don't know how to create them, thank you very much for your help.
Box As BANanoObject
Box.Initialize2("Konva.Rect",Array(CreateMap("x": 0,"y":0,"width": myWidth,"height": myHeight, "fill": "black","stroke": "yellow","strokeWidth": 4))) this is the layer.
layer.RunMethod("add",Array(Box))
Dim buttonIn As BANanoElement = Container.Append($"<button id="buttonIn">Iniciar</button>"$).Get("#buttonIn")
buttonIn.HandleEvents("click", Me, "buttonIn_click") this is the button to create on the layer.
How can I create this button and assign functions? I would like to be able to apply css too, this is my first project in B4J, I want to learn more about design, functions with js and css, thank you very much for your help and attention.
P.D: Sorry for my bad english.