Can I use the Buttons extensions to display radio buttons?

Can I use the Buttons extensions to display radio buttons?

bjlapbjlap Posts: 29Questions: 11Answers: 1

Hi,
I have a requirement to allow the user to select a filter (a date range, either one day, or all days in a week) that will be applied to data in a datatable. I want to display a radio button group that allows for selecting the appropriate filter. Can that be done with the Buttons extension? Custum buttons perhaps?
Let me know and thanks in advance,
Bert-Jan

Answers

  • glendersonglenderson Posts: 231Questions: 11Answers: 29

    Isn't this really just putting a couple or radio button elements on the screen? Then upon the click of one of them have the ajax table reload and one of the data inputs of the ajax method being which button was selected so the correct filter can be applied at the ajax level?

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin

    You could possibly use buttons().active() to do this. In that way you could show only one button as active in the group - effectively making it a radio button set.

    Allan

This discussion has been closed.