Initialize the default factory
The default table type to use if no other configuration was provided.
Registry of declared table types.
A reference to the Vue instance the plugin is installed in. It may be used to check if the factory was already installed
Get a table type by its identifier.
The identifier of the table type. If not provided, it will default to the default table type.
the table type registered with that identifier.
Declares global components exported by vuejs-datatable, & load configs.
nothing.
Declares a pair of components (a Datatable & a Datatable-Pager) sharing a config.
The base name of the datatable type.
this
for chaining.
Creates a new table type with a specified prefix, that you can customize using a callback.
The name of the component to register, or a TableType object.
this
for chaining.
Remove a table type definition from vue (the datatable & its associated pager). This should be used carefully, because Vue won't be able to instanciate new instances of this table type.
The base name of the datatable type to forget.
this
for chaining.
Controls the use of the default table type.
true
to use the default type, false
otherwise.
this
for chaining.
Check if the factory uses the default table type.
a boolean indicating if the factory uses the default table type.
Generated using TypeDoc
Registers Vuejs-Datatable components globally in VueJS.
import { DatatableFactory } from 'vuejs-datatable'; const myDatatableFactory = new DatatableFactory() .registerTableType( new TableType( 'my-table', {}) ) Vue.use( myDatatableFactory );