![]() If you do explicitly want to use CSS, you can do the following instead of child <. Note that this will actually add / remove elements instead of showing / hiding them with CSS display property. Input (typ := "radio", onClick.mapTo( "settings") -> $selected.writer)Ĭhild div ( "Companies div") case " contacts" => div ( "Contacts div") case " settings" => div ( "Settings div") Input (typ := "radio", onClick.mapTo( "contacts") -> $selected.writer), Input (typ := "radio", onClick.mapTo( "companies") -> $selected.writer), For example, something like: val $selected = new EventBus ![]() One easy way to accomplish this is to save the "selected" state in a Var or EventBus, and then read that state from there to decide which div to render. If I understand correctly, you want to render a few radio buttons all the time, and depending on which one is selected you want to render a div for it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |