forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal-dialog.json
More file actions
124 lines (118 loc) · 3.73 KB
/
global-dialog.json
File metadata and controls
124 lines (118 loc) · 3.73 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
{
"methods": {
"create": {
"desc": "Creates an ad-hoc Dialog; Same as calling $q.dialog(...)",
"params": {
"opts": {
"type": "Object",
"required": true,
"definition": {
"class": {
"type": [ "String", "Array", "Object" ],
"desc": "CSS Class name to apply to the Dialog's QCard",
"examples": [ "my-class" ]
},
"style": {
"type": [ "String", "Array", "Object" ],
"desc": "CSS style to apply to the Dialog's QCard",
"examples": [ "border: 2px solid black" ]
}
}
}
},
"returns": {
"type": "Object",
"desc": "Chainable Object",
"tsType": "DialogChainObject",
"definition": {
"onOk": {
"type": "Function",
"desc": "Receives a Function param to tell what to do when OK is pressed / option is selected",
"params": {
"callbackFn": {
"type": "Function",
"desc": "Tell what to do",
"required": true,
"params": null,
"returns": null
}
},
"returns": {
"type": "Object",
"desc": "Chained Object",
"tsType": "DialogChainObject",
"__exemption": [ "examples" ]
}
},
"onCancel": {
"type": "Function",
"desc": "Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed",
"params": {
"callbackFn": {
"type": "Function",
"desc": "Tell what to do",
"required": true,
"params": null,
"returns": null
}
},
"returns": {
"type": "Object",
"desc": "Chained Object",
"tsType": "DialogChainObject",
"__exemption": [ "examples" ]
}
},
"onDismiss": {
"type": "Function",
"desc": "Receives a Function param to tell what to do when the dialog is closed",
"params": {
"callbackFn": {
"type": "Function",
"desc": "Tell what to do",
"required": true,
"params": null,
"returns": null
}
},
"returns": {
"type": "Object",
"desc": "Chained Object",
"tsType": "DialogChainObject",
"__exemption": [ "examples" ]
}
},
"hide": {
"type": "Function",
"desc": "Hides the dialog when called",
"params": null,
"returns": {
"type": "Object",
"desc": "Chained Object",
"tsType": "DialogChainObject",
"__exemption": [ "examples" ]
}
},
"update": {
"type": "Function",
"desc": "Updates the initial properties (given as create() param) except for 'component' and 'parent' (and deprecated 'root')",
"params": {
"opts": {
"type": "Object",
"desc": "Props (except 'component' and 'parent') which will overwrite the initial create() params",
"__exemption": [ "examples" ]
}
},
"returns": {
"type": "Object",
"desc": "Chained Object",
"tsType": "DialogChainObject",
"__exemption": [ "examples" ]
},
"addedIn": "v1.14.0"
}
}
}
}
}
}