Hi
Do you know how to interact with bootstrap about Event,Value ?
BootStrap Switch http://www.bootstrap-switch.org/
I have put a checkbox switch in page, it work OK !
This element property:state and event:switchChange but i cann't access them in server side
following event isn't respones.
Do you know how to interact with bootstrap about Event,Value ?
BootStrap Switch http://www.bootstrap-switch.org/
I have put a checkbox switch in page, it work OK !
B4X:
<input type="checkbox" id="checkbox1" checked></td>
<script>
//connect to the web socket when the page is ready.
$( document ).ready(function() {
$("[id='checkbox1']").bootstrapSwitch();
b4j_connect("/param/msg/ws");
});
</script>
This element property:state and event:switchChange but i cann't access them in server side
B4X:
Dim ft1 As Future = ws.GetElementByID("checkbox1").GetProp("state")
B4X:
Sub checkbox1_switchChange(Params As Map)
Log("checkbox1 click")
End Sub
Last edited: