rows().ids()
Get the ids of the selected rows.
Description
This method can be used to get the id's of the rows selected by the rows()
method, as specified by the row's data and the rowId
option. Optionally it can also prepend a hash (#
) to the ids allowing them to then easily be used as selectors.
Important This method does not read the DOM id for the tr
elements, but rather gets the row id from the row's data source (location specified by rowId
).
Type
function rows().ids( [ hash ] )
- Description:
Get the ids of the selected rows.
- Parameters:
Name Type Optional 1 hash
Yes - default:false true
- Append a hash (#
) to the start of each row id. This can be useful for then using the ids as selectorsfalse
- Do not modify the id value.
- Returns:
Api instance with the selected rows in its result set. If a row does not have an id available
undefined
will be returned as the value.
Related
The following options are directly related and may also be useful in your application development.