This repository has been archived by the owner on May 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
labels
Karl edited this page Jul 15, 2017
·
1 revision
Customise the displayed labels. (v1.0.6 and above)
labels: {
placeholder: "Search...",
perPage: "{select} entries per page",
noRows: "No entries to found",
info: "Showing {start} to {end} of {rows} entries",
}
The strings wrapped in curly braces represent variables that are inserted.
Property | Effect | Variables |
---|---|---|
placeholder |
Sets the placeholder of the search input | None |
perPage |
Sets the per-page dropdown's label |
{select} - the per-page dropdown (required ) |
noRows |
The message displayed when there are no search results | None |
info |
Displays current range, page number, etc |
{start} - The first row number of the current page{end} - The last row number of the current page{page} - The current page number{pages} - Total pages{rows} - Total rows |
labels: {
placeholder: "Search employees...",
perPage: "Show {select} employees per page",
noRows: "No employees to display",
info: "Showing {start} to {end} of {rows} employees (Page {page} of {pages} pages)",
},
- datatable.init
- datatable.refresh
- datatable.update
- datatable.page
- datatable.sort
- datatable.perpage
- datatable.search
- perPage
- perPageSelect
- nextPrev
- prevText
- nextText
- firstLast
- firstText
- lastText
- searchable
- sortable
- truncatePager
- fixedColumns
- fixedHeight
- columns
- data
- ajax
- labels
- layout
- header
- footer
- table
- head DEPRECATED
- body DEPRECATED
- foot DEPRECATED
- wrapper
- container
- pagers
- headings
- options DEPRECATED
- initialized
- isIE DEPRECATED
- data
- activeRows DEPRECATED
- dataIndex
- pages
- hasRows
- hasHeadings
- currentPage
- totalPages
- onFirstPage
- onLastPage
- searching
- searchData