list.js icon indicating copy to clipboard operation
list.js copied to clipboard

Use regular CSS selectors

Open bejohu opened this issue 7 years ago • 1 comments

Use CSS selectors rather than IDs, e.g.

...
var options = {
  item: '#list-item'
};

var userList = new List('#users', options);
...

bejohu avatar Nov 15 '17 15:11 bejohu

You can use an element if you do not want to use an ID:

new List(id/element, options, values);

But yes, would sometimes be easier using a CSS selector.

binarykiwi avatar May 31 '18 13:05 binarykiwi