Members
-
<static, readonly> DEFAULT_DATATABLE :'datatable'
-
Description
The default table type nameDetails
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
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
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
Details
-
deregisterTableType( nameOrTableType ) → {this}
-
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