You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| You can provide the name of a registered custom partial to use as a template for elements in the option list.
6
+
p.typo__p
7
+
| If no partial is provided it will use the default one: <kbd><span v-text="getOptionLabel(option)"></span></kbd>
8
+
p.typo__p
9
+
| To ensure the keyboard navigation works properly, remember to set the <kbd>:option-height</kbd> to equal the height of the option template. By default, the component assumes an option height of 40px.
10
+
.grid__row
11
+
.grid__column.grid__unit--md-5
12
+
label.typo__label Fav No Man’s Sky path
13
+
multiselect(
14
+
:options="styleList",
15
+
:selected="selectedStyle",
16
+
:option-height="130",
17
+
:custom-label="styleLabel",
18
+
@update="updateSelectedStyle",
19
+
option-partial="customOptionPartial"
20
+
placeholder="Fav No Man’s Sky path"
21
+
label="title"
22
+
key="title"
23
+
)
24
+
pre.language-json
25
+
code.
26
+
{{ selectedStyle | json }}
27
+
28
+
.grid__column.grid__unit--md-7
29
+
label.typo__label Code sample
30
+
pre.language-jade
31
+
code.
32
+
multiselect(
33
+
:options="styleList",
34
+
:selected="selectedStyle",
35
+
:option-height="130",
36
+
:custom-label="styleLabel",
37
+
@update="updateSelectedStyle",
38
+
option-partial="customOptionPartial"
39
+
placeholder="Fav No Man’s Sky path"
40
+
label="title"
41
+
key="title"
42
+
)
43
+
44
+
pre.language-javascript
45
+
code.
46
+
import customOptionPartial from './partials/customOptionPartial.html'
0 commit comments