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

Support non-binary values#9

Open
benjamincudi wants to merge 2 commits intomcjohnalds:masterfrom
clyphub:support-non-binary-state
Open

Support non-binary values#9
benjamincudi wants to merge 2 commits intomcjohnalds:masterfrom
clyphub:support-non-binary-state

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