v2 first commit
This commit is contained in:
@ -7,28 +7,33 @@ return [
|
||||
*/
|
||||
'columns' => [
|
||||
'alpha' => [
|
||||
'rows' => ['name', 'customer_name', 'vendor_name', 'display_name', 'company_name', 'domain', 'email', 'description', 'code', 'type', 'status', 'vendor', 'account', 'bill_status_code', 'invoice_status_code'],
|
||||
'class' => 'fa fa-sort-alpha',
|
||||
'rows' => ['name', 'contact_name', 'customer_name', 'vendor_name', 'display_name', 'company_name', 'domain', 'email', 'description', 'code', 'type', 'status', 'vendor', 'account', 'bill_status_code', 'invoice_status_code'],
|
||||
'class' => 'fas fa-sort-alpha',
|
||||
],
|
||||
'amount' => [
|
||||
'rows' => ['amount', 'price', 'sale_price', 'purchase_price', 'total_price', 'current_balance', 'total_price', 'opening_balance'],
|
||||
'class' => 'fa fa-sort-amount'
|
||||
'class' => 'fas fa-sort-amount',
|
||||
],
|
||||
'numeric' => [
|
||||
'rows' => ['created_at', 'updated_at', 'paid_at', 'invoiced_at', 'billed_at', 'due_at', 'id', 'quantity', 'rate', 'number', 'invoice_number', 'bill_number'],
|
||||
'class' => 'fa fa-sort-numeric'
|
||||
'class' => 'fas fa-sort-numeric',
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
whether icons should be enabled
|
||||
*/
|
||||
'enable_icons' => true,
|
||||
|
||||
/*
|
||||
defines icon set to use when sorted data is none above (alpha nor amount nor numeric)
|
||||
*/
|
||||
'default_icon_set' => 'fa fa-long-arrow-down sort-icon',
|
||||
'default_icon_set' => 'fas fa-arrow-down sort-icon',
|
||||
|
||||
/*
|
||||
icon that shows when generating sortable link while column is not sorted
|
||||
*/
|
||||
'sortable_icon' => 'fa fa-long-arrow-down sort-icon',
|
||||
'sortable_icon' => 'fas fa-arrow-down sort-icon',
|
||||
|
||||
/*
|
||||
generated icon is clickable non-clickable (default)
|
||||
@ -44,12 +49,12 @@ return [
|
||||
/*
|
||||
suffix class that is appended when ascending order is applied
|
||||
*/
|
||||
'asc_suffix' => '-asc',
|
||||
'asc_suffix' => '-down',
|
||||
|
||||
/*
|
||||
suffix class that is appended when descending order is applied
|
||||
*/
|
||||
'desc_suffix' => '-desc',
|
||||
'desc_suffix' => '-up',
|
||||
|
||||
/*
|
||||
default anchor class, if value is null none is added
|
||||
@ -85,5 +90,17 @@ return [
|
||||
/*
|
||||
default order for non-sorted columns
|
||||
*/
|
||||
'default_direction_unsorted' => 'asc'
|
||||
'default_direction_unsorted' => 'asc',
|
||||
|
||||
/*
|
||||
use the first defined sortable column (Model::$sortable) as default
|
||||
also applies if sorting parameters are invalid for example: 'sort' => 'name', 'direction' => ''
|
||||
*/
|
||||
'default_first_column' => false,
|
||||
|
||||
/*
|
||||
join type: join vs leftJoin (default leftJoin)
|
||||
for more information see https://github.com/Kyslik/column-sortable/issues/59
|
||||
*/
|
||||
'join_type' => 'leftJoin',
|
||||
];
|
||||
|
Reference in New Issue
Block a user