File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ # Toggle Button
2+
3+ A toggle button is a control used for switching (or toggling) between two states or options.
4+
5+ ## Example
6+
7+ ``` html
8+ <label >
9+ <woltlab-core-toggle-button name =" foo" checked ></woltlab-core-toggle-button >
10+ Toggle Button Description ...
11+ </label >
12+ ```
13+
14+ ## Parameters
15+
16+ ### ` checked `
17+
18+ Indicates that the button is active.
19+
20+ ### ` name `
21+
22+ The name of the button.
23+ If the button is part of a form, the name is used to transmit the value when the form is sent.
24+
25+ ### ` value `
26+
27+ The value that should be transmitted when the form is sent if the button is active.
28+
29+ Defaults to ` 1 ` .
Original file line number Diff line number Diff line change 6969 - ' Notices ' : ' javascript/components_notice.md'
7070 - ' Pagination ' : ' javascript/components_pagination.md'
7171 - ' RPC API ' : ' javascript/components_rpc_api.md'
72+ - ' Toggle Button ' : ' javascript/components_toggle_button.md'
7273 - ' New API ' :
7374 - ' Writing a module ' : ' javascript/new-api_writing-a-module.md'
7475 - ' Core Functions ' : ' javascript/new-api_core.md'
You can’t perform that action at this time.
0 commit comments