Using Editor - How do I add a control for number of records displayed in dropdown box
Using Editor - How do I add a control for number of records displayed in dropdown box
MKP
Posts: 2Questions: 1Answers: 0
How do I add a control for number of records displayed in dropdown box... I see examples for Datatables, but nothing editor speciffaclly.
This discussion has been closed.
Answers
You can assign standard HTML attributes to the
select
element using theattr
option of theselect
field type. So you could use something like:Allan
Sorry but, I was referring to displaying a drop down box to select whether to show 10 or 20 or 50 or 100 or all records/rows being displayed in the editor ... again there are answers to this for datatable, but no example for editor... and the example for datatables doesn't work.
The DataTables page length menu doesn't really have anything to do with Editor to be honest. It is a DataTables configuration option and can be controlled using the
lengthMenu
option. Remember that Editor just sits on top of a standard DataTable.If that doesn't work for you, can you link to the page showing the issue so I can debug it please.
Allan