forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQSplitter.json
More file actions
135 lines (117 loc) · 3.9 KB
/
QSplitter.json
File metadata and controls
135 lines (117 loc) · 3.9 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"meta": {
"docsUrl": "https://v1.quasar.dev/vue-components/splitter"
},
"behavior": {
"$listeners": true
},
"props": {
"value": {
"type": "Number",
"desc": "Model of the component defining the size of first panel (or second if using reverse) in the unit specified (for '%' it's the split ratio percent - 0.0 < x < 100.0; for 'px' it's the size in px); Either use this property (along with a listener for 'input' event) OR use v-model directive",
"examples": [ "v-model=\"ratio\"" ],
"category": "model"
},
"reverse": {
"type": "Boolean",
"desc": "Apply the model size to the second panel (by default it applies to the first)",
"category": "model",
"addedIn": "v1.2.6"
},
"unit": {
"type": "String",
"desc": "CSS unit for the model",
"default": "%",
"values": [ "%", "px" ],
"category": "model",
"addedIn": "v1.2.6"
},
"emit-immediately": {
"type": "Boolean",
"desc": "Emit model while user is panning on the separator",
"category": "model"
},
"horizontal": {
"type": "Boolean",
"desc": "Allows the splitter to split its two panels horizontally, instead of vertically",
"category": "content"
},
"limits": {
"type": "Array",
"desc": "An array of two values representing the minimum and maximum split size of the two panels; When 'px' unit is set then you can use Infinity as the second value to make it unbound on the other side",
"default": "For '%' unit: [10, 90]; For 'px' unit: [50, Infinity]",
"examples": [ ":limits=\"[30, 70]\"", ":limits=\"[0, Infinity]\"" ],
"category": "content|model"
},
"disable": {
"extends": "disable"
},
"before-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the 'before' panel",
"examples": [
"bg-deep-orange",
":before-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"after-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the 'after' panel",
"examples": [
"bg-deep-orange",
":after-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"separator-class": {
"type": [ "Array", "String", "Object" ],
"desc": "Class definitions to be attributed to the splitter separator",
"examples": [
"bg-deep-orange",
":separator-class=\"{ 'my-special-class': <condition> }\""
],
"category": "style"
},
"separator-style": {
"type": [ "Array", "String", "Object" ],
"desc": "Style definitions to be attributed to the splitter separator",
"examples": [
"background-color: #ff0000",
":separator-style=\"{ backgroundColor: '#ff0000' }\""
],
"category": "style"
},
"dark": {
"type": "Boolean",
"desc": "Applies a default lighter color on the separator; To be used when background is darker; Avoid using when you are overriding through separator-class or separator-style props",
"category": "style"
}
},
"slots": {
"default": {
"desc": "Default slot in the devland unslotted content of the component; Suggestion: QTooltip, QMenu"
},
"before": {
"desc": "Content of the panel on left/top"
},
"after": {
"desc": "Content of the panel on right/bottom"
},
"separator": {
"desc": "Content to be placed inside the separator; By default it is centered"
}
},
"events": {
"input": {
"desc": "Emitted when component's model value changes; Is also used by v-model",
"params": {
"value": {
"type": "Number",
"desc": "New model value (0.0 < x < 100.0) defining the ratio between panels",
"examples": [ 0.22 ]
}
}
}
}
}