-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yaml
91 lines (68 loc) · 3.47 KB
/
settings.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Select2:
type: Select2
properties:
name: select2
# Select2 options
options:
# Provides support for ajax data sources.
# See: https://select2.org/data-sources/ajax
ajax: null
# Provides support for clearable selections.
# See: https://select2.org/selections#clearable-selections
allowClear: false
# Controls whether the dropdown is closed after a selection is made.
# See: https://select2.org/dropdown#forcing-the-dropdown-to-remain-open-after-selection
closeOnSelect: true
# Allows rendering dropdown options from an array.
# See: https://select2.org/data-sources/arrays
data: null
# Enable debugging messages in the browser console.
debug: false
# Sets the dir attribute on the selection and dropdown containers to indicate the direction of the text.
# See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir
dir: ltr
# When set to `true`, the select control will be disabled.
disabled: false
# Dropdown auto width
dropdownAutoWidth: false
# Adds additional CSS classes to the dropdown container.
# The helper :all: can be used to add all CSS classes present on the original <select> element.
dropdownCssClass: ''
# Maximum number of characters that may be provided for a search term.
maximumInputLength: 0
# The maximum number of items that may be selected in a multi-select control.
# If the value of this option is less than 1, the number of selected items will not be limited.
maximumSelectionLength: 0
# Minimum number of characters required to start a search.
# See: https://select2.org/searching#minimum-search-term-length
minimumInputLength: 0
# The minimum number of results required to display the search box.
# See: https://select2.org/searching#limiting-display-of-the-search-box-to-large-result-sets
minimumResultsForSearch: 0
# This option enables multi-select (pillbox) mode.
# Select2 will automatically map the value of the multiple HTML attribute to this option during initialization.
multiple: false
# Specifies the placeholder for the control.
placeholder: null
# Adds additional CSS classes to the selection container.
# The helper :all: can be used to add all CSS classes present on the original <select> element.
selectionCssClass: ''
# Implements automatic selection when the dropdown is closed.
# See: https://select2.org/dropdown#automatic-selection
selectOnClose: false
# If true, resolves issue for multiselects using closeOnSelect: false that caused the list of results
# to scroll to the first selection after each select/unselect (see https://github.com/select2/select2/pull/5150).
# This behaviour was intentional to deal with infinite scroll UI issues (if you need this behavior, set false)
# but it created an issue with multiselect dropdown boxes of fixed length.
# This pull request adds a configurable option to toggle between these two desirable behaviours.
scrollAfterSelect: false
template: plugins/select2/blocks/Select2/block.html