Hello.
CheckBox SWITCH style Attachment html style
Please tell me how to change to.
You’ll need to change it for both the div and the label (see attached).
Best,
Levie
Levie (ITG)
Thank you
I have an additional question.
When creating a custom switch control with a widget
In this.container.innerHTML in initScript
Because ElementById is embedded directly
Multiple custom switch controls on the page
When you make a copy, all the controls are the first one
Bug in custom switch control event
Occurs.
If you want to set the checked state from the server you can add a “checked” property to the Widget’s Options.
In your Widget’s InitScript from the sample you can get/set it by doing something like this:
checkbox.checked = options.checked;
On the server, you can do
myCheckboxWidget.Options.checked = true | false;
Hi Takao,
The simplest way to use your custom switch checkbox is through the Widget control. I’ve attached a sample that shows how you can implement it and fire the events back to Wisej.
Alternatively, you can play around with the Wisej ThemeBuilder to create a custom theme or mixin for a checkbox (switch) with a different background color, switch button size, animation, etc. but it would be a bit more complicated to make that label show on the inner part of the switch.
If you need that solution, please let me know, but I think the Widget solution should be fine for your case.
Best regards,
Levie
Please login first to submit.