Repository URL to install this package:
|
Version:
0.14.1 ▾
|
| .. |
| ToggleItem |
| ToggleList |
| README.md |
| index.ts |
| typings.ts |
RadioGroup & Toggle, simplified
right now:
radio group: select dropdown: many others - they are 1 2 punches, of 1 2 punches (2 parts, that have 2 parts)
radioGroupState.list = ... radioGroupState.decorateItem = (item) => { if (item.onClick) { return item } else { item.onClick = (event: Event, props: StandardRadioItemProps, itemState: StandardRadioItemProps) { radioGroupState.unselectList(radioGroupState.list) selectItem(itemState) } return item } }