Sha256: eb70d87ed6c3bbfb2dd68ae5e6c63b9e65f273a5c76c24588e1a26b930f63363
Contents?: true
Size: 646 Bytes
Versions: 112
Compression:
Stored size: 646 Bytes
Contents
The MultiLevelSelect kit renders a multi leveled select dropdown based on data from the user. `treeData` is a required prop that is expected to contain the data in the form of an array of objects. See code snippet for an example data array. For the React version of the kit, the `onSelect` prop returns an array of all checked items, irrespective of whether it is a parent, child or grandchild. Open the console on this example and check and uncheck checkboxes to see this is action! For the Rails version, the array of checked items is attached to the DOM in a data attribute titled `data-tree` on the wrapping div around the MultiLevelSelect.
Version data entries
112 entries across 112 versions & 2 rubygems