1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
436 stars 177 forks source link

Can controls be only buttons? #247

Closed happy2deepak closed 7 years ago

happy2deepak commented 7 years ago

Really liked the plugin and have implemented the same in my design. But there's a specific requirement in my project, where the controls are plain buttons kept inline. (i.e. No Dropdown, No input, No Toggle, No slider). How can I achieve this ?

image

I require to develop somthing like this, but without the toggle feature. (I used this controls, but it requires the user to click again and toggle back the selected filter control)

filters

This is my snapshot. It has a Tab like layout, instead of showing and hiding, it filters the content as per category.

1rosehip commented 7 years ago

You may use http://jplist.com/documentation/control-settings/button-filters-group with data-mode="single"

It works like radio buttons and allows that only one button will be selected at a time without 'toggle'