A special button control that changes its state from pressed to the unpressed one when clicked.
Related sample: Form. All controls
Related sample: Form. Toggle
Adding ToggleâYou can easily add a Toggle control during initialization of a form:
const form = new dhx.Form("form_container", {
rows: [
{
type: "toggle",
name: "toggle",
icon: "dxi dxi-eye",
offIcon: "dxi dxi-eye-off",
text: "Visible",
offText: "Invisible"
}
]
});
Propertiesâ
View the full list of configuration properties of the Toggle control.
Working with ToggleâYou can manipulate a Toggle control by using methods or events of the object returned by the getItem() method.
For example, you can get the value of the control:
const value = form.getItem("toggle").getValue();
Methodsâ
Check the full list of methods of the Toggle control.
EventsâCheck the full list of events of the Toggle control.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4