DataTable - how to disable search box ?

66 views
Skip to first unread message

webge...@gmail.com

unread,
Dec 1, 2014, 12:38:32 AM12/1/14
to tapestry...@googlegroups.com
How to disable "Search box" and "Show n entries" in datatable?

Also, any guidence on setting CSS specific to jQ UI widgets only (not the entire TML layout) would be much helpful.

Emmanuel DEMEY

unread,
Dec 31, 2014, 4:20:19 AM12/31/14
to tapestry...@googlegroups.com
For the first question, you should have a look to the sDom property of the DataTable widget : http://legacy.datatables.net/usage/options

public JSONObject getOptions(){
JSONObject json = new JSONObject("bJQueryUI", "true", "bStateSave", "true", "sDom", "TC<\"clear\">Rlfrtip");
return json;
}
For the second question, we do not have any guidelines. I think the only solution, is to create your CSS file, by removing from the default jQuery UI theme all the useless declarations. 
Reply all
Reply to author
Forward
0 new messages