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
Copy file name to clipboardExpand all lines: src/component/QIconPicker.json
+38-28Lines changed: 38 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,11 @@
3
3
"props": {
4
4
"value": {
5
5
"type": "String",
6
-
"desc": "Vue v-model value",
6
+
"desc": "`v-model`; The selected icon",
7
7
"default": "",
8
8
"examples": [
9
-
"calendar-today",
10
-
"bolt"
9
+
"v-model=\"calendar-today\"",
10
+
"v-model=\"bolt\""
11
11
]
12
12
},
13
13
"icon-set": {
@@ -23,25 +23,31 @@
23
23
"fontawesome-v5",
24
24
"eva-icons",
25
25
"themify"
26
+
],
27
+
"examples": [
28
+
"icon-set=\"material-icons\"",
29
+
"icon-set=\"fontawesome-v5\""
26
30
]
27
31
},
28
32
"icons": {
29
33
"type": "Array",
30
-
"desc": "An array of objects containing icon information. The object must contain the key 'name' with the value being the icon name (ie: { name: 'bolt' }). Note: the icons used must already be loaded.",
34
+
"desc": "An array of objects containing icon information. The object must contain the key `name` with the value being the icon name (ie: `{ name: 'bolt' }`). _**Note:** the icons used must already be loaded by Quasar._",
"desc": "Icons will be filtered by the passed string"
47
+
"desc": "Icons will be filtered by the passed string",
48
+
"examples": [
49
+
":filter=\"myFilter\""
50
+
]
45
51
},
46
52
"dense": {
47
53
"type": "Boolean",
@@ -53,66 +59,70 @@
53
59
},
54
60
"no-footer": {
55
61
"type": "Boolean",
56
-
"desc": "hides the footer area that contains the pagination"
62
+
"desc": "hides the footer area when `pagination` is enabled"
57
63
},
58
64
"color": {
59
65
"type": "String",
60
-
"desc": "This can be any CSS color value or Quasar color",
66
+
"desc": "Any color from the [Quasar Color Pallete](https://quasar.dev/style/color-palette) or a CSS color (#, rgb, rgba, hls, etc)",
61
67
"examples": [
62
-
"orange-8",
63
-
"#c8c8c8"
68
+
"color=\"orange-8\"",
69
+
"color=\"#c8c8c8\""
64
70
]
65
71
},
66
72
"background-color": {
67
73
"type": "String",
68
-
"desc": "This can be any CSS color value or Quasar color",
74
+
"desc": "Any color from the [Quasar Color Pallete](https://quasar.dev/style/color-palette) or a CSS color (#, rgb, rgba, hls, etc)",
69
75
"examples": [
70
-
"orange-8",
71
-
"#c8c8c8"
76
+
"background-color=\"orange-8\"",
77
+
"background-color=\"#c8c8c8\""
72
78
]
73
79
},
74
80
"selected-color": {
75
81
"type": "String",
76
-
"desc": "This can be any CSS color value or Quasar color",
82
+
"desc": "Any color from the [Quasar Color Pallete](https://quasar.dev/style/color-palette) or a CSS color (#, rgb, rgba, hls, etc)",
77
83
"examples": [
78
-
"orange-8",
79
-
"#c8c8c8"
84
+
"selected-color=\"orange-8\"",
85
+
"selected-color=\"#c8c8c8\""
80
86
]
81
87
},
82
88
"selected-background-color": {
83
89
"type": "String",
84
-
"desc": "This can be any CSS color value or Quasar color",
90
+
"desc": "Any color from the [Quasar Color Pallete](https://quasar.dev/style/color-palette) or a CSS color (#, rgb, rgba, hls, etc)",
85
91
"examples": [
86
-
"orange-8",
87
-
"#c8c8c8"
92
+
"selected-background-color=\"orange-8\"",
93
+
"selected-background-color=\"#c8c8c8\""
88
94
]
89
95
},
90
96
"font-size": {
91
97
"type": "String",
92
98
"desc": "The font-size to use for the icons. Any acceptable CSS size can be used",
93
99
"examples": [
94
-
"3rem",
95
-
"24px"
100
+
"font-size=\"3rem\"",
101
+
"font-size=\"24px\""
96
102
]
97
103
},
98
104
"pagination": {
99
105
"type": "Object",
106
+
"sync": true,
100
107
"desc": "For pagination purposes uses Quasar's pagination component. Use `pagination.sync` to synchronize the data. You can use `page` and `itemsPerPage` to control the pagination. QIconPicker will set `totalPages` depending on `icon-set` or `icons` properties. If using a `filter` the page will automatically be reset to 1",
101
108
"examples": [
102
-
":pagination.sync=\"pagination\""
109
+
":pagination.sync=\"myPagination\""
103
110
]
104
111
}
105
112
},
106
113
"events": {
107
114
"input": {
108
115
"type": "String",
109
-
"desc": "Value from when the selection changes"
116
+
"desc": "`v-model`; Value from when the selection changes"
110
117
}
111
118
},
112
119
"scopedSlots": {
113
120
"icon": {
114
121
"type": "String",
115
-
"desc": "Slot for re-displaying icon"
122
+
"desc": "Slot for changing the display of the icon",
0 commit comments