-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Reactive options as closure for multi-select prompt
- Accepted options argument as closure - Turned options property to mixed type as it might hold the closure - Passed values property to the closure for reactivity; just like validate method - Added an evaluatedOptions property for caching until it's set to null - Created options method that evaluates, caches and returns the options all around - Threw an exception when all options are no longer available - Removed previously selected options from values when they're gone - Adjusted the indexing - Introduced a new "toggle" state to re-render without errors - Set the evaluatedOptions to null (resetting cache and evaluation) for toggle and error states - Tested for closure, reactivity, and the empty options exception - Ensured all tests are passing
- Loading branch information
Showing
4 changed files
with
139 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters