09 Sep 2014 07:23:56 Steven Irwin posted:
I have a database with a field that is set to a 1 (TinyInt) if the field is true and 0 if not true. With other development environments I can bind this field to a checkbox and tell it which state represents checked and not checked.
I can't seem to do this with this extension. It is also unclear which of the many options you should bind for each input type (selects are another difficult one).
I want to have the checkbox show as checked when the database field is a 1 and as unchecked when a 0. I also want to be able to check the box and update the database with a 1 in that case when the form is submitted.
Can you please provide the correct way to bind the checkbox so that that the above works? In the past I have ended up using selects which are also difficult to achieve the above instead of a checkbox.
It would be good to have a guide to using html data bindings as well as the examples. The guide would specify when you use the different options eg. for a checkbox all the following are in the bind to list: input.value, input.alt, input.name, input.data.src, input.src, input.size, input.width, input.height, input.data.checked, input.id, input.class, input.title, input.data.show, input.data.hide
Thanks as always.