A toggler is a widget that has two components - a button, and a set of contents.
When you click the button, the states (of both the button and the contents) are toggled.
data-ur-set="toggler"data-ur-toggler-component="button"data-ur-toggler-component="content""toggler"
"content"
"button"
/* Required SCSS Styling */
*[data-ur-set='toggler'] {
/* By Default content is hidden*/
*[data-ur-toggler-component='content'] {
display:none;
}
*[data-ur-toggler-component='content'][data-ur-state='enabled'] {
display: block;
}
}
/* Required CSS Styling */
*[data-ur-set='toggler'] *[data-ur-toggler-component='content'] {
display:none;
}
*[data-ur-set='toggler'] *[data-ur-toggler-component='content'][data-ur-state='enabled'] {
display: block;
}
It's super-easy to nest togglers as well. You'll have to use ids. Give the button component and the content component the same attribute: data-ur-id="ID".