I'd like to have a plugin to generate an alternate DataTables length control that creates code similar to this example (if the markup, attributes, class names etc. in the example doesn't make sense, please feel free to use more sensible markup):
So, instead of using <select> and <option> to select the number of records displayed on each page, I just want a number of <a> tags - similar to how the pagination controls are rendered. I will then use CSS to style these as nice looking buttons.
The reason I want this is that a <select> control will break the "look and feel" of the DataTables in the highly "designed" project I'm currently working on - we need "buttons".
It would be really nice if this plugin could be used as a direct replacement for the built-in length control, using and taking into account settings of the Options object such as aLengthMenu, oLanguage.sLengthMenu etc. My idea is that it could be implemented as a feature plug-in and tied to the letter "L" for example.
I'm not sure if it is appropriate to use paid support to make requests such as this one, but I'm giving it a shot.
<div id="TABLE_ID_length" class="dataTables_length"> Show <a class="length_active" tabindex="0">20</a> <a class="length_button" tabindex="0">50</a> <a class="length_button" tabindex="0">all</a> entries </div>
So, instead of using <select> and <option> to select the number of records displayed on each page, I just want a number of <a> tags - similar to how the pagination controls are rendered. I will then use CSS to style these as nice looking buttons.
The reason I want this is that a <select> control will break the "look and feel" of the DataTables in the highly "designed" project I'm currently working on - we need "buttons".
It would be really nice if this plugin could be used as a direct replacement for the built-in length control, using and taking into account settings of the Options object such as aLengthMenu, oLanguage.sLengthMenu etc. My idea is that it could be implemented as a feature plug-in and tied to the letter "L" for example.
I'm not sure if it is appropriate to use paid support to make requests such as this one, but I'm giving it a shot.