Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/multiselect #4

Merged
merged 3 commits into from
Sep 5, 2017
Merged

Feature/multiselect #4

merged 3 commits into from
Sep 5, 2017

Conversation

ThibaultJanBeyer
Copy link
Owner

@ThibaultJanBeyer ThibaultJanBeyer commented Sep 5, 2017

This solves #2

Adding an independent possibility to add more items and remove items from a previous selection using modifier keys.

Modifiers:

shift, ctrl & command/windows

New property:

** @multiSelectKeys   array           These key will allow the user add more elements to the selection instead of clearing the selection. The only possible values are keys that are provided via the event object. So far: <kbd>ctrlKey</kbd>, <kbd>shiftKey</kbd>, <kbd>metaKey</kbd> and <kbd>altKey</kbd>. Provide an empty array [] if you want to turn off the funcionality. Default: ['ctrlKey', 'shiftKey', 'metaKey']

Other minor changes in 1.6.0:

  • renamed class selected to ds-selected
  • added a new class ds-hover on elements which are currently covered by the selection node.
  • added polyfill for .indexOf for legacy browsers
  • added hasClass( @node, @classname ) method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant