Sorting
Last updated
Last updated
Sorting configuration is added along with the each column config.
By default single column sort mode is enabled.
If you would like to enable the multi column sorting, set multi_column_sort
to true
in table config
props.
You can change the sort icons based on your choice, For example if you're using font-awesome or glyphicon in your application, you can still use them for vue-bootstrap4-table.
You can inject your favorite sort icons via slots.
Attributes
Description
sort
Enable or disable sorting in column. Default value is false
.
initial_sort
Sort the column at the first time loading. Default value is false
.
This only works if sort
is true
.
initial_sort_order
Sort the column at the first time loading based on given order. Default value is asc
.
This only works if initial_sort
is true
.
sortCaseSensitive
Enable or disable case sensitive sorting. Default value is true
.