-
Notifications
You must be signed in to change notification settings - Fork 2
rows()
Karl edited this page Aug 31, 2017
·
18 revisions
As of v1.4.0, the rows API is implemented and allows access to the table rows for quick manipulation.
To use the rows API just call the rows() method on the current instance:
var rows = datatable.rows();You can then chain the following methods.
Add new row data to the current instance. The data parameter must be an array of strings to be inserted into each of the new row's cells.
var rows = datatable.rows();
var newRowData = ["column1", "column2", "column3", "column4", ...];
rows.add(newRowData);- datatable.init
- datatable.refresh
- datatable.update
- datatable.page
- datatable.sort
- datatable.perpage
- datatable.search
- ajax
- columns
- data
- firstLast
- firstText
- fixedColumns
- fixedHeight
- footer
- header
- labels
- layout
- lastText
- nextPrev
- nextText
- paging
- perPage
- perPageSelect
- prevText
- scrollY
- searchable
- sortable
- truncatePager
- 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