Common Questions
How do I obtain the reference of a Control?
1. Execute code on control creation
ListBox.create [
ListBox.init (fun listBox ->
listBox.Items <- [ 1 .. 3 ]
)
]2. Obtain a view reference via an outlet
Component(fun ctx ->
let listBox = ctx.useState<ListBox>(null)
ctx.useEffect (
handler = (fun _ ->
listBox.Current.Items <- [ 1 .. 3 ]
),
triggers = [ EffectTrigger.AfterInit ]
)
View.createWithOutlet listBox.Set ListBox.create [ ]
)How do I obtain the reference of a Component?
How to set attributes on Component level?
How do I restrict what a user can input in a TextBox / AutoCompleteBox / InputElement ?
How to render a Control to an Image?
Managing Focus

Last updated