DataTables DOM Positioning

Source: Internet
Author: User

DataTables default will open some features, such as the search box, pagination display and so on, perhaps you do not like DataTables to the layout, you may want to put the paging button in the middle of the bottom, the search box on the top left corner, do not worry about DataTables to consider this problem, Use DOM options to flexibly configure the location of individual features

DataTables defines a 10-character representation of a different component

  • L-length changing how many data options are displayed per page
  • f-filtering Input Search box
  • T-the Table Tables
  • I-information table Information
  • P-pagination Paging button
  • R-processing loading wait for display information
  • < and >-div elements a DIV element
  • < "#id" and >-div with an id specify the div element of the ID
  • < "class" and >-div with a class to specify the style name of the DIV element
  • < "#id. Class" and >-div with an ID and class to specify the ID and style of the DIV element
$ (document). Ready (function () {    $ (' #example '). DataTable ({        "dom": ' < "top" i>rt< "Bottom" flp>< "Clear" > "}"    ); );

  

DataTables DOM Positioning

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.