Giter VIP home page Giter VIP logo

selectonic's People

Contributors

anovi avatar eglassman avatar huacnlee avatar sztobar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

selectonic's Issues

'_checkIfSelector' and '_checkIfElem' return null that isn't expected in 'select'

I use text input to filter data in selectonic. I call 'refresh', 'unselect' and 'select' after each change in input to select first item in list:

$element = $(element);
$element.selectonic('refresh');
$element.selectonic('unselect');
var filter = $element.selectonic("option", "filter"); // '.list_item'
setTimeout(function () { $element.selectonic('select', filter + ":first"); }, 10);      

Last line threw 'Uncaught TypeError: Cannot read property 'addClass' of null' if no item in list becouse '_checkIfSelector' and '_checkIfElem' return null.

P.S. Maybe it usefull to add 'selectFirst' option when calling 'refresh'?

Shift Key Selection Behavior

Is it possible to configure Shift Key Selection behavior?
For example, currently if there are total 6 items, and I click on item #3 (without crtl or Shift key).
Later I press shift and click on item #5. Items 3 to 5 are selected - fair enough.
Now I press shift and click on item #1. Items 1 to 5 are selected. It should have selected items 1 to 3 (and deselect #4 and #5). This is the normal shift key selection behavior in Windows Explorer. I'm looking for similar behavior.

Prevent to choose one item from list

Hi,

I'm currently using your amazing plugin for a personnal project. Thanks a lot !

I am willing to apply some filters to my list. I achieved to hide the elements from the list, which is correct to prevent the user to select those items with the mouse, but I can't figure out a way to prevent the user to select them with the mouse.

Do you have any idea on how I could disable only few items ?

Thanks a lot,

Regards,

Thomas

Nested selectonic elements

Hi Alexey,

Amazing plugin you have here!

I'm trying to use Selectonic together with NestedSortable and I'm encountering some difficulties.
I've made a jsfiddle to better illustrate my problem.

If you try to randomly select elements, you'll see that some elements become selected / deselected without any click over them. And the shift hold selection will not select child elements because they're not in the same scope as the target element.

Is there a possibility that the plugin could support this feature in a near future?

Thank you

Checkbox and handle option

What if i want to create a group of items with checkboxes and turn those checkboxes to handles? I want select/unselect by clicking on checkboxes and select a range by shift-click.

NPM Package

Is there an NPM package for the plugin? If not are you able to create it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.