new DatatableFactory()

Description
Registers Vuejs-Datatable components globally in VueJS.
Examples
import DatatableFactory from 'vuejs-datatable';
				Vue.use(DatatableFactory);
Details

Members


<static, readonly> DEFAULT_DATATABLE :'datatable'

Description
The default table type name
Details
'datatable'

Methods


getTableType( [ id ] ) → {TableType|undefined}

Description
Get a table type by its identifier.
Parameters
Name Type Attributes Default Description
id string <optional>
DEFAULT_DATATABLE The identifier of the table type. If not provided, it will default to the default table type.
Returns
The table type registered with that identifier.
Details

useDefaultType( [ use ] ) → {this|boolean}

Description
Controls the definition of default table type.
Parameters
Name Type Attributes Description
use boolean <optional>
`true` to use the default type, `false` otherwise. If not provided, this method returns a boolean indicating if the default table type is / will be used.
Returns
- `this` for chaining, or the value if `use` is undefined
Details

registerTableType( nameOrTableType [, callback ] ) → {this}

Description
Creates a new table type with a specified prefix, that you can customize using a callback.
Parameters
Name Type Attributes Description
nameOrTableType string | TableType The name of the component to register, or a TableType object.
callback function <optional>
An optional function to execute, that configures the newly created TableType. It takes a single parameter: the newly created TableType, and should return the transformed table type.
Returns
- For chaining.
Details

deregisterTableType( nameOrTableType ) → {this}

Description
Creates a new table type with a specified prefix, that you can customize using a callback.
Parameters
Name Type Description
nameOrTableType string | TableType The name of the component to register, or a TableType object.
Returns
- For chaining.
Details

install( Vue ) → {void}

Description
Declares global components exported by vuejs-datatable, & load configs.
Parameters
Name Type Description
Vue VueConstructor The Vue instance to configure.
Returns
Details