JQuery Datatable sDom 配置

官网给的描述是:

This initialisation variable allows you to specify exactly where in the DOM you want DataTables to inject the various controls it adds to the page (for example you might want the pagination controls at the top of the table). DIV elements (with or without a custom class) can also be added to aid styling. The follow syntax is used:

The following options are allowed:
'l' - Length changing
'f' - Filtering input
't' - The table!
'i' - Information
'p' - Pagination
'r' - pRocessing
The following constants are allowed:
'H' - jQueryUI theme "header" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')
'F' - jQueryUI theme "footer" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')
The following syntax is expected:
'<' and '>' - div elements
'<"class" and '>' - div with a class
'<"#id" and '>' - div with an ID

 

我的例子:

"sDom": '<""l>t<"F"fp>',

Jquery DataTables 自定义布局sdom

相关文章:

  • 2021-12-19
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2021-05-27
  • 2022-02-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-07-29
  • 2021-04-04
  • 2022-02-07
  • 2022-02-04
相关资源
相似解决方案