searchBuilder.container()
Since: SearchBuilder 1.0.0
Returns the node of the SearchBuilder container.
Please note - this property requires the SearchBuilder extension for DataTables.
Description
This method provides the ability to return the node of the container that is storing SearchBuilder. This allows the user to manipulate it by adding classes or even moving it in the document.
This method does not take any arguments, it is simply a getter for the container.
Type
searchBuilder.container()
Returns the node of the SearchBuilder container.
Returns:
Dom:
Dom instance that contains the container element for the SearchBuilder.
Please note that prior to v2 this method would return a jQuery object that contains the container.
Example
Add a class to the SearchBuilder container::
var dt = new DataTable('#myTable', {
layout: {
top1: 'searchBuilder'
}
});
dt.searchBuilder.container().classAdd('sb_class');