How can I change table Lnegth html?

How can I change table Lnegth html?

uijamanuijaman Posts: 2Questions: 0Answers: 0
edited April 2012 in General
Now data table default length html is like following style:

[code]
Show

10
25
50
100

entries
[/code]

But I want to customize that like following code:

[code]
Showentries

--


[/code]

Anybody can help me please

Thanks

Replies

  • hozthozt Posts: 45Questions: 0Answers: 0
    edited April 2012
    Only way to do it, at the moment at least, is to hardcode the JavaScript file.

    Edit: Sorry for the misleading information, I got confused by your example and hadn't really tested if sLengthMenu accepted HTML or not.
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    You can use aLengthMenu or sLengthMenu to customise the options presented in the length menu.

    Allan
  • uijamanuijaman Posts: 2Questions: 0Answers: 0
    Thanks Allan I solved my problem now its works. I wrote following code and its working:
    [code]
    var oTable = $('#data_editable').dataTable({
    "sPaginationType": "full_numbers",
    "iDisplayLength": 10,
    "oLanguage": {
    "sLengthMenu": "Entries per page: _MENU_",
    },
    "sDom": '<"table_top"lf<"clear">>,<"table_content"t>,<"table_bottom"ip<"clear">>',

    "fnDrawCallback": function () {
    $('#data_editable tbody td').editable();
    },

    });
    [/code]

    Thanks Again
    Jaman
This discussion has been closed.