pageLength menu as buttons instead of dropdown
pageLength menu as buttons instead of dropdown
chubby92
Posts: 4Questions: 1Answers: 0
How can I do the above (what's in the title)?
I tried to find a solution for hours now
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Like this?
Allan
@allan no, this is drop down.. I want buttons side by side
In which case you could use custom buttons that simply call the
page.len()
method from theiraction
function.Allan
@allan Thanks but I have few problems with that.
1. The documentation is not updated, I dont have such function
2. What if I want to make the buttons as group button?
3. What if I want to make the active button with different class (if I have a button that shows 20 rows, it should be active untill it was changed)
(I have done it by using dom element but I dont like this way :X)
What documentation? The custom buttons or
page.len()
? That's been in since 1.10.0.A group as in a drop down? Use the
collection
button type.This is where Buttons defines the classes it uses and you can change that as you need.
Allan
@allan Thank you very much, I needed the first and the second answers, they helped me to achieve my goal