Skip to content

Commit 8dafc03

Browse files
committed
added constants and set select2 as default
1 parent 9d2ebf4 commit 8dafc03

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Datatable/Datatable.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Datatable
1919
{
2020
use InstanceConfigTrait;
2121

22+
2223
/**
2324
* @var string
2425
*/
@@ -34,6 +35,11 @@ class Datatable
3435
*
3536
* @var array<string, mixed>
3637
*/
38+
39+
40+
const MULTI_SELECT_TYPE_SELECT2 = 'select2';
41+
const MULTI_SELECT_TYPE_JQUERY_UI = 'jquery-ui';
42+
3743
protected $_defaultConfig = [
3844
'processing' => true,
3945
'serverSide' => true,
@@ -76,7 +82,7 @@ class Datatable
7682
'headersAttrsTr' => [],
7783
'headersAttrsTh' => [],
7884
],
79-
'multiSelectType' => 'jquery-ui',
85+
'multiSelectType' => self::MULTI_SELECT_TYPE_SELECT2,
8086
'rowActions' => [
8187
'name' => 'actions',
8288
'orderable' => 'false',

0 commit comments

Comments
 (0)