Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

Support non-binary values #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

benjamincudi
Copy link

This resolves #6 while being slightly more flexible - as long as the value is represented with a className, we can handle what is provided.

- This will enable the selected state to be more complex
than just booleans
- With the support of classNameMap we don’t
even need to restrict this to numeric or consistent
type values, as long as they are all represented
in the classNameMap
- If a specific value should just be ‘off’, it can be
mapped to an empty string
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use integer instead of boolean to represent data
1 participant