-
Notifications
You must be signed in to change notification settings - Fork 0
/
qbOptions.js
executable file
·66 lines (61 loc) · 1.69 KB
/
qbOptions.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
var options = {
allow_empty: true,
//default_filter: 'name',
sort_filters: true,
optgroups: {
core: {
en: 'Core',
fr: 'Coeur'
},
general: {
en: 'General Info',
},
card_group: {
en: 'Card Group',
},
dilemma_group: {
en: 'Dilemma Group',
},
icons: {
en: 'Icons',
},
skills: {
en: 'Skills',
}
},
plugins: {
'bt-tooltip-errors': { delay: 100 },
'sortable': null,
'filter-description': { mode: 'bootbox' },
'bt-selectpicker': null,
// 'chosen-selectpicker': null,
'unique-filter': null,
'bt-checkbox': { color: 'primary' },
'invert': null,
'not-group': null
},
// standard operators in custom optgroups
operators: [
{ type: 'equal', optgroup: 'basic' },
{ type: 'not_equal', optgroup: 'basic' },
{ type: 'in', optgroup: 'basic' },
{ type: 'not_in', optgroup: 'basic' },
{ type: 'less', optgroup: 'numbers' },
{ type: 'less_or_equal', optgroup: 'numbers' },
{ type: 'greater', optgroup: 'numbers' },
{ type: 'greater_or_equal', optgroup: 'numbers' },
{ type: 'between', optgroup: 'numbers' },
{ type: 'not_between', optgroup: 'numbers' },
{ type: 'begins_with', optgroup: 'strings' },
{ type: 'not_begins_with', optgroup: 'strings' },
{ type: 'contains', optgroup: 'strings' },
{ type: 'not_contains', optgroup: 'strings' },
{ type: 'ends_with', optgroup: 'strings' },
{ type: 'not_ends_with', optgroup: 'strings' },
{ type: 'is_empty' },
{ type: 'is_not_empty' },
{ type: 'is_null' },
{ type: 'is_not_null' }
],
filters: filters
};