Store role in Boxes
This commit is contained in:
@@ -28,7 +28,8 @@ func NewNumberInput (value float64) *NumberInput {
|
||||
increment: NewButton(""),
|
||||
decrement: NewButton(""),
|
||||
}
|
||||
tomo.Apply(box, tomo.R("objects", "NumberInput", ""))
|
||||
box.SetRole(tomo.R("objects", "NumberInput", ""))
|
||||
tomo.Apply(box)
|
||||
box.Add(box.input)
|
||||
box.Add(box.decrement)
|
||||
box.Add(box.increment)
|
||||
|
||||
Reference in New Issue
Block a user