Mevrael / bunny

BunnyJS - Lightweight native (vanilla) JavaScript (JS) and ECMAScript 6 (ES6) browser library, package of small stand-alone components without dependencies: FormData, upload, image preview, HTML5 validation, Autocomplete, Dropdown, Calendar, Datepicker, Ajax, Datatable, Pagination, URL, Template engine, Element positioning, smooth scrolling, routing, inversion of control and more. Simple syntax and architecture. Next generation jQuery and front-end framework. Documentation and examples available.
https://bunnyjs.com
MIT License
486 stars 39 forks source link

feat(Datatable) make search input configurable to avoid conflicts #13

Closed joebordes closed 7 years ago

joebordes commented 7 years ago

I have some conflicts with the default "search" input name so I made this change in order to be able to specify the search input element name.

Mevrael commented 7 years ago

hi, thx.

I've updated search, added column filtering and updated examples https://bunnyjs.com/examples/datatable/?order_by=age&order_rule=asc&age=3&page=2

Now you can add as many inputs or even selects as you want and give them any name="".

P.S. don't access any dependencies directly, use this.Config... instead. For example if you will set new Config to DropdownUI.Config, you will not access your new object but old one.

joebordes commented 7 years ago

Works perfect

Ok, I understand. Thank you