Members
-
component :*|null
-
Description
.... Yeah I don't know what it is.Details
-
field :string
-
Description
The name of the field in the row object.Details
-
representedAs :function|null
-
Description
A transformation function that returns the string to displayDetails
-
interpolate :boolean
-
Description
Set to true to convert the return value of `props.representedAs` to HTML.Details
-
headerAlign :string
-
Description
The alignment direction of the header of this column.Details
-
headerComponent :VueDatatableHeader|null
-
Description
The header cell component of the column.Details
-
headerClass :string
-
Description
The base CSS class to apply to the header component.Details
-
label :string
-
Description
The label displayed in the header.Details
-
sortable :boolean
-
Description
Controls whetever this column can be sorted.Details
-
filterable :boolean
-
Description
Controls whetever this column can be filtered.Details
-
align :string
-
Description
The alignment direction of the cells in this column.Details
Methods
-
<static> normalizeAlignment( align, defaultAlign ) → {'left'|'center'|'right'}
-
Description
Normalize the alignment, using the requested default value.Parameters
Name Type Default Description align
* The raw desired alignment defaultAlign
'left' | 'center' | 'right' left The default alignment to use, if the 1st parameter isn't recognized Returns
Details
-
<static> isPlainTextField( props ) → {boolean}
-
Description
Check if the column use plain text value (eg `representedAs` or `field`, but not `component`) If multiple representation props are provided, it is considered as plain text if there are alternatives to `component`Parameters
Name Type Description props
object The column definition object Returns
Details
-
<static> isFilterable( props ) → {boolean}
-
Description
Check if the column can be filtered.Parameters
Name Type Description props
object The column definition object Returns
Details
-
<static> isSortable( props ) → {boolean}
-
Description
Check if the column can be sorted.Parameters
Name Type Description props
object The column definition object Returns
Details
-
getRepresentation( row ) → {string}
-
Description
Converts a row to its string representation for the current column.Parameters
Name Type Description row
object The row to convert Returns
Details
-
matches( row, filterString ) → {boolean}
-
Description
Check if the provided row's representation matches a certain filter string.Parameters
Name Type Description row
object The row to check. filterString
string The filter string to test. Returns
Details