quasar 2.14.5 → 2.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/AddressbarColor.json +1 -22
- package/dist/api/AppFullscreen.json +1 -78
- package/dist/api/AppVisibility.json +1 -15
- package/dist/api/BottomSheet.json +1 -264
- package/dist/api/Brand.json +1 -49
- package/dist/api/ClosePopup.json +1 -21
- package/dist/api/Cookies.json +1 -190
- package/dist/api/Dark.json +1 -63
- package/dist/api/Dialog.json +1 -479
- package/dist/api/Intersection.json +1 -204
- package/dist/api/Lang.json +1 -18
- package/dist/api/Loading.json +1 -317
- package/dist/api/LoadingBar.json +1 -62
- package/dist/api/LocalStorage.json +1 -187
- package/dist/api/Meta.json +1 -6
- package/dist/api/Morph.json +1 -188
- package/dist/api/Mutation.json +1 -122
- package/dist/api/Notify.json +1 -697
- package/dist/api/Platform.json +1 -238
- package/dist/api/QAjaxBar.json +1 -117
- package/dist/api/QAvatar.json +1 -76
- package/dist/api/QBadge.json +1 -82
- package/dist/api/QBanner.json +1 -44
- package/dist/api/QBar.json +1 -28
- package/dist/api/QBreadcrumbs.json +1 -82
- package/dist/api/QBreadcrumbsEl.json +1 -162
- package/dist/api/QBtn.json +1 -354
- package/dist/api/QBtnDropdown.json +1 -560
- package/dist/api/QBtnGroup.json +1 -59
- package/dist/api/QBtnToggle.json +1 -263
- package/dist/api/QCard.json +1 -51
- package/dist/api/QCardActions.json +1 -34
- package/dist/api/QCardSection.json +1 -31
- package/dist/api/QCarousel.json +1 -421
- package/dist/api/QCarouselControl.json +1 -41
- package/dist/api/QCarouselSlide.json +1 -44
- package/dist/api/QChatMessage.json +1 -128
- package/dist/api/QCheckbox.json +1 -211
- package/dist/api/QChip.json +1 -232
- package/dist/api/QCircularProgress.json +1 -145
- package/dist/api/QColor.json +1 -150
- package/dist/api/QDate.json +1 -637
- package/dist/api/QDialog.json +1 -259
- package/dist/api/QDrawer.json +1 -272
- package/dist/api/QEditor.json +1 -485
- package/dist/api/QExpansionItem.json +1 -434
- package/dist/api/QFab.json +1 -352
- package/dist/api/QFabAction.json +1 -241
- package/dist/api/QField.json +1 -448
- package/dist/api/QFile.json +1 -643
- package/dist/api/QFooter.json +1 -60
- package/dist/api/QForm.json +1 -112
- package/dist/api/QFormChildMixin.json +1 -24
- package/dist/api/QHeader.json +1 -67
- package/dist/api/QIcon.json +1 -69
- package/dist/api/QImg.json +1 -279
- package/dist/api/QInfiniteScroll.json +1 -116
- package/dist/api/QInnerLoading.json +1 -117
- package/dist/api/QInput.json +1 -521
- package/dist/api/QIntersection.json +1 -112
- package/dist/api/QItem.json +1 -203
- package/dist/api/QItemLabel.json +1 -36
- package/dist/api/QItemSection.json +1 -38
- package/dist/api/QKnob.json +1 -197
- package/dist/api/QLayout.json +1 -100
- package/dist/api/QLinearProgress.json +1 -113
- package/dist/api/QList.json +1 -58
- package/dist/api/QMarkupTable.json +1 -64
- package/dist/api/QMenu.json +1 -337
- package/dist/api/QNoSsr.json +1 -38
- package/dist/api/QOptionGroup.json +1 -242
- package/dist/api/QPage.json +1 -42
- package/dist/api/QPageContainer.json +1 -11
- package/dist/api/QPageScroller.json +1 -68
- package/dist/api/QPageSticky.json +1 -44
- package/dist/api/QPagination.json +1 -376
- package/dist/api/QParallax.json +1 -74
- package/dist/api/QPopupEdit.json +1 -335
- package/dist/api/QPopupProxy.json +1 -168
- package/dist/api/QPullToRefresh.json +1 -91
- package/dist/api/QRadio.json +1 -163
- package/dist/api/QRange.json +1 -789
- package/dist/api/QRating.json +1 -186
- package/dist/api/QResizeObserver.json +1 -56
- package/dist/api/QResponsive.json +1 -26
- package/dist/api/QRouteTab.json +1 -225
- package/dist/api/QScrollArea.json +1 -354
- package/dist/api/QScrollObserver.json +1 -140
- package/dist/api/QSelect.json +1 -1387
- package/dist/api/QSeparator.json +1 -72
- package/dist/api/QSkeleton.json +1 -127
- package/dist/api/QSlideItem.json +1 -219
- package/dist/api/QSlideTransition.json +1 -33
- package/dist/api/QSlider.json +1 -687
- package/dist/api/QSpace.json +1 -6
- package/dist/api/QSpinner.json +1 -37
- package/dist/api/QSpinnerAudio.json +1 -30
- package/dist/api/QSpinnerBall.json +1 -30
- package/dist/api/QSpinnerBars.json +1 -30
- package/dist/api/QSpinnerBox.json +1 -30
- package/dist/api/QSpinnerClock.json +1 -30
- package/dist/api/QSpinnerComment.json +1 -30
- package/dist/api/QSpinnerCube.json +1 -30
- package/dist/api/QSpinnerDots.json +1 -30
- package/dist/api/QSpinnerFacebook.json +1 -30
- package/dist/api/QSpinnerGears.json +1 -30
- package/dist/api/QSpinnerGrid.json +1 -30
- package/dist/api/QSpinnerHearts.json +1 -30
- package/dist/api/QSpinnerHourglass.json +1 -30
- package/dist/api/QSpinnerInfinity.json +1 -30
- package/dist/api/QSpinnerIos.json +1 -30
- package/dist/api/QSpinnerOrbit.json +1 -30
- package/dist/api/QSpinnerOval.json +1 -30
- package/dist/api/QSpinnerPie.json +1 -30
- package/dist/api/QSpinnerPuff.json +1 -30
- package/dist/api/QSpinnerRadio.json +1 -30
- package/dist/api/QSpinnerRings.json +1 -30
- package/dist/api/QSpinnerTail.json +1 -30
- package/dist/api/QSplitter.json +1 -146
- package/dist/api/QStep.json +1 -167
- package/dist/api/QStepper.json +1 -340
- package/dist/api/QStepperNavigation.json +1 -11
- package/dist/api/QTab.json +1 -113
- package/dist/api/QTabPanel.json +1 -39
- package/dist/api/QTabPanels.json +1 -203
- package/dist/api/QTable.json +1 -2799
- package/dist/api/QTabs.json +1 -179
- package/dist/api/QTd.json +1 -31
- package/dist/api/QTh.json +1 -26
- package/dist/api/QTime.json +1 -317
- package/dist/api/QTimeline.json +1 -57
- package/dist/api/QTimelineEntry.json +1 -105
- package/dist/api/QToggle.json +1 -230
- package/dist/api/QToolbar.json +1 -18
- package/dist/api/QToolbarTitle.json +1 -18
- package/dist/api/QTooltip.json +1 -282
- package/dist/api/QTr.json +1 -26
- package/dist/api/QTree.json +1 -599
- package/dist/api/QUploader.json +1 -665
- package/dist/api/QUploaderAddTrigger.json +1 -6
- package/dist/api/QVideo.json +1 -83
- package/dist/api/QVirtualScroll.json +1 -260
- package/dist/api/Ripple.json +1 -115
- package/dist/api/Screen.json +1 -190
- package/dist/api/Scroll.json +1 -28
- package/dist/api/ScrollFire.json +1 -24
- package/dist/api/SessionStorage.json +1 -187
- package/dist/api/TouchHold.json +1 -81
- package/dist/api/TouchPan.json +1 -178
- package/dist/api/TouchRepeat.json +1 -142
- package/dist/api/TouchSwipe.json +1 -113
- package/dist/icon-set/bootstrap-icons.umd.prod.js +3 -2
- package/dist/icon-set/eva-icons.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v5-pro.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v5.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v6-pro.umd.prod.js +3 -2
- package/dist/icon-set/fontawesome-v6.umd.prod.js +3 -2
- package/dist/icon-set/ionicons-v4.umd.prod.js +3 -2
- package/dist/icon-set/line-awesome.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-outlined.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-round.umd.prod.js +3 -2
- package/dist/icon-set/material-icons-sharp.umd.prod.js +3 -2
- package/dist/icon-set/material-icons.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-outlined.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-rounded.umd.prod.js +3 -2
- package/dist/icon-set/material-symbols-sharp.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v3.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v4.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v5.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v6.umd.prod.js +3 -2
- package/dist/icon-set/mdi-v7.umd.prod.js +3 -2
- package/dist/icon-set/svg-bootstrap-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-eva-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-fontawesome-v5.umd.prod.js +3 -2
- package/dist/icon-set/svg-fontawesome-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v4.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v5.umd.prod.js +3 -2
- package/dist/icon-set/svg-ionicons-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-line-awesome.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-outlined.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-round.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons-sharp.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-icons.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-outlined.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-rounded.umd.prod.js +3 -2
- package/dist/icon-set/svg-material-symbols-sharp.umd.prod.js +3 -2
- package/dist/icon-set/svg-mdi-v6.umd.prod.js +3 -2
- package/dist/icon-set/svg-mdi-v7.umd.prod.js +3 -2
- package/dist/icon-set/svg-themify.umd.prod.js +3 -2
- package/dist/icon-set/themify.umd.prod.js +3 -2
- package/dist/lang/ar-TN.umd.prod.js +3 -2
- package/dist/lang/ar.umd.prod.js +3 -2
- package/dist/lang/az-Latn.umd.prod.js +3 -2
- package/dist/lang/bg.umd.prod.js +3 -2
- package/dist/lang/bn.umd.prod.js +3 -2
- package/dist/lang/ca.umd.prod.js +3 -2
- package/dist/lang/cs.umd.prod.js +3 -2
- package/dist/lang/da.umd.prod.js +3 -2
- package/dist/lang/de-CH.umd.prod.js +3 -2
- package/dist/lang/de-DE.umd.prod.js +3 -2
- package/dist/lang/de.umd.prod.js +3 -2
- package/dist/lang/el.umd.prod.js +3 -2
- package/dist/lang/en-GB.umd.prod.js +3 -2
- package/dist/lang/en-US.umd.prod.js +3 -2
- package/dist/lang/eo.umd.prod.js +3 -2
- package/dist/lang/es.umd.prod.js +3 -2
- package/dist/lang/et.umd.prod.js +3 -2
- package/dist/lang/eu.umd.prod.js +3 -2
- package/dist/lang/fa-IR.umd.prod.js +3 -2
- package/dist/lang/fa.umd.prod.js +3 -2
- package/dist/lang/fi.umd.prod.js +3 -2
- package/dist/lang/fr.umd.prod.js +3 -2
- package/dist/lang/gn.umd.prod.js +3 -2
- package/dist/lang/he.umd.prod.js +3 -2
- package/dist/lang/hi.umd.prod.js +3 -2
- package/dist/lang/hr.umd.prod.js +3 -2
- package/dist/lang/hu.umd.prod.js +3 -2
- package/dist/lang/id.umd.prod.js +3 -2
- package/dist/lang/is.umd.prod.js +3 -2
- package/dist/lang/it.umd.prod.js +3 -2
- package/dist/lang/ja.umd.prod.js +3 -2
- package/dist/lang/kk.umd.prod.js +3 -2
- package/dist/lang/km.umd.prod.js +3 -2
- package/dist/lang/ko-KR.umd.prod.js +3 -2
- package/dist/lang/kur-CKB.umd.prod.js +3 -2
- package/dist/lang/lt.umd.prod.js +3 -2
- package/dist/lang/lu.umd.prod.js +3 -2
- package/dist/lang/lv.umd.prod.js +3 -2
- package/dist/lang/mk.umd.prod.js +3 -2
- package/dist/lang/ml.umd.prod.js +3 -2
- package/dist/lang/mm.umd.prod.js +3 -2
- package/dist/lang/ms-MY.umd.prod.js +7 -0
- package/dist/lang/ms.umd.prod.js +3 -2
- package/dist/lang/my.umd.prod.js +3 -2
- package/dist/lang/nb-NO.umd.prod.js +3 -2
- package/dist/lang/nl.umd.prod.js +3 -2
- package/dist/lang/pl.umd.prod.js +3 -2
- package/dist/lang/pt-BR.umd.prod.js +3 -2
- package/dist/lang/pt.umd.prod.js +3 -2
- package/dist/lang/ro.umd.prod.js +3 -2
- package/dist/lang/ru.umd.prod.js +3 -2
- package/dist/lang/sk.umd.prod.js +3 -2
- package/dist/lang/sl.umd.prod.js +3 -2
- package/dist/lang/sm.umd.prod.js +3 -2
- package/dist/lang/sr-CYR.umd.prod.js +3 -2
- package/dist/lang/sr.umd.prod.js +3 -2
- package/dist/lang/sv.umd.prod.js +3 -2
- package/dist/lang/ta.umd.prod.js +3 -2
- package/dist/lang/th.umd.prod.js +3 -2
- package/dist/lang/tl.umd.prod.js +7 -0
- package/dist/lang/tr.umd.prod.js +3 -2
- package/dist/lang/ug.umd.prod.js +3 -2
- package/dist/lang/uk.umd.prod.js +3 -2
- package/dist/lang/uz-Cyrl.umd.prod.js +3 -2
- package/dist/lang/uz-Latn.umd.prod.js +3 -2
- package/dist/lang/vi.umd.prod.js +3 -2
- package/dist/lang/zh-CN.umd.prod.js +3 -2
- package/dist/lang/zh-TW.umd.prod.js +3 -2
- package/dist/quasar.addon.prod.css +1 -1
- package/dist/quasar.addon.rtl.prod.css +1 -1
- package/dist/quasar.cjs.prod.js +123 -2
- package/dist/quasar.css +5 -2
- package/dist/quasar.esm.js +16928 -26277
- package/dist/quasar.esm.prod.js +123 -2
- package/dist/quasar.prod.css +1 -1
- package/dist/quasar.rtl.css +5 -2
- package/dist/quasar.rtl.prod.css +1 -1
- package/dist/quasar.sass +9 -7
- package/dist/quasar.umd.js +16732 -26521
- package/dist/quasar.umd.prod.js +123 -2
- package/dist/transforms/api-list.json +1 -153
- package/dist/transforms/auto-import.json +1 -267
- package/dist/transforms/import-map.json +1 -181
- package/dist/transforms/loader-asset-urls.json +1 -60
- package/dist/types/api/dialog.d.ts +1 -1
- package/dist/types/api/qinput.d.ts +1 -1
- package/dist/types/api/qtable.d.ts +1 -1
- package/dist/types/api/qtree.d.ts +1 -1
- package/dist/types/api/quploader.d.ts +1 -1
- package/dist/types/api/validation.d.ts +1 -1
- package/dist/types/api/web-storage.d.ts +6 -6
- package/dist/types/feature-flag.d.ts +1 -1
- package/dist/types/globals.d.ts +22 -15
- package/dist/types/index.d.ts +48 -166
- package/dist/types/lang.d.ts +3 -3
- package/dist/types/plugin.d.ts +3 -1
- package/dist/types/ts-helpers.d.ts +3 -3
- package/dist/types/utils/colors.d.ts +1 -1
- package/dist/types/utils/date.d.ts +10 -10
- package/dist/types/utils/dom.d.ts +1 -1
- package/dist/types/utils/run-sequential-promises.d.ts +12 -12
- package/dist/types/utils/scroll.d.ts +5 -5
- package/dist/types/utils.d.ts +15 -13
- package/dist/vetur/quasar-attributes.json +1 -5890
- package/dist/vetur/quasar-tags.json +1 -2084
- package/dist/web-types/web-types.json +1 -19595
- package/lang/index.json +1 -266
- package/lang/ms-MY.js +101 -0
- package/lang/ms-MY.mjs +96 -0
- package/lang/tl.js +98 -0
- package/lang/tl.mjs +93 -0
- package/package.json +17 -21
- package/src/body.js +6 -14
- package/src/components/ajax-bar/QAjaxBar.js +1 -1
- package/src/components/breadcrumbs/QBreadcrumbs.js +1 -1
- package/src/components/btn/QBtn.js +6 -6
- package/src/components/btn-dropdown/QBtnDropdown.json +1 -1
- package/src/components/checkbox/use-checkbox.js +1 -1
- package/src/components/chip/QChip.js +1 -1
- package/src/components/color/QColor.js +4 -4
- package/src/components/color/QColor.sass +1 -1
- package/src/components/date/QDate.js +1 -1
- package/src/components/dialog/__tests__/DialogWrapper.vue +33 -0
- package/src/components/dialog/__tests__/QDialog.cy.js +450 -36
- package/src/components/drawer/QDrawer.js +1 -1
- package/src/components/drawer/QDrawer.json +1 -1
- package/src/components/field/QField.sass +2 -1
- package/src/components/file/QFile.js +2 -2
- package/src/components/footer/QFooter.js +2 -2
- package/src/components/form/QForm.js +3 -3
- package/src/components/header/QHeader.js +1 -1
- package/src/components/img/QImg.js +47 -39
- package/src/components/img/QImg.json +9 -0
- package/src/components/input/use-mask.js +3 -3
- package/src/components/menu/QMenu.json +1 -1
- package/src/components/page-sticky/use-page-sticky.js +4 -4
- package/src/components/popup-edit/QPopupEdit.js +1 -1
- package/src/components/scroll-area/QScrollArea.js +1 -1
- package/src/components/select/QSelect.js +9 -9
- package/src/components/table/QTable.sass +2 -2
- package/src/components/table/QTd.js +1 -1
- package/src/components/table/QTh.js +1 -1
- package/src/components/tabs/QTabs.js +3 -3
- package/src/components/time/QTime.js +3 -3
- package/src/components/tooltip/QTooltip.js +4 -2
- package/src/components/tooltip/QTooltip.json +6 -0
- package/src/components/tree/QTree.js +1 -1
- package/src/components/uploader/uploader-core.js +2 -2
- package/src/components/uploader/xhr-uploader-plugin.js +1 -1
- package/src/components/virtual-scroll/use-virtual-scroll.js +3 -3
- package/src/composables/private/__tests__/use-model-toggle.cy.js +43 -3
- package/src/composables/private/use-anchor.js +1 -1
- package/src/composables/private/use-key-composition.js +1 -1
- package/src/composables/private/use-panel.js +1 -1
- package/src/composables/private/use-portal.js +1 -1
- package/src/composables/private/use-router-link.js +1 -1
- package/src/css/core/colors.sass +0 -2
- package/src/css/core/visibility.sass +2 -1
- package/src/css/normalize.sass +1 -1
- package/src/directives/Intersection.json +13 -0
- package/src/directives/TouchPan.js +1 -1
- package/src/history.js +1 -1
- package/src/index.umd.js +5 -1
- package/src/lang.js +1 -1
- package/src/plugins/BottomSheet.json +1 -1
- package/src/plugins/Cookies.js +1 -1
- package/src/plugins/Dark.js +1 -1
- package/src/plugins/Loading.js +1 -1
- package/src/plugins/LoadingBar.js +1 -1
- package/src/plugins/Notify.js +4 -4
- package/src/plugins/Platform.js +111 -93
- package/src/plugins/Screen.js +1 -1
- package/src/utils/event.js +1 -1
- package/src/utils/frame-debounce.js +1 -1
- package/src/utils/morph.js +1 -1
- package/src/utils/private/click-outside.js +1 -1
- package/src/utils/private/escape-key.js +1 -1
- package/src/utils/private/focusout.js +1 -1
package/dist/api/Dialog.json
CHANGED
|
@@ -1,479 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"type": "plugin",
|
|
3
|
-
"meta": {
|
|
4
|
-
"docsUrl": "https://v2.quasar.dev/quasar-plugins/dialog"
|
|
5
|
-
},
|
|
6
|
-
"injection": "$q.dialog",
|
|
7
|
-
"methods": {
|
|
8
|
-
"create": {
|
|
9
|
-
"desc": "Creates an ad-hoc Dialog; Same as calling $q.dialog(...)",
|
|
10
|
-
"params": {
|
|
11
|
-
"opts": {
|
|
12
|
-
"type": "Object",
|
|
13
|
-
"required": true,
|
|
14
|
-
"definition": {
|
|
15
|
-
"class": {
|
|
16
|
-
"type": [
|
|
17
|
-
"String",
|
|
18
|
-
"Array",
|
|
19
|
-
"Object"
|
|
20
|
-
],
|
|
21
|
-
"tsType": "VueClassProp",
|
|
22
|
-
"desc": "CSS Class name to apply to the Dialog's QCard",
|
|
23
|
-
"examples": [
|
|
24
|
-
"my-class"
|
|
25
|
-
]
|
|
26
|
-
},
|
|
27
|
-
"style": {
|
|
28
|
-
"type": [
|
|
29
|
-
"String",
|
|
30
|
-
"Array",
|
|
31
|
-
"Object"
|
|
32
|
-
],
|
|
33
|
-
"tsType": "VueStyleProp",
|
|
34
|
-
"desc": "CSS style to apply to the Dialog's QCard",
|
|
35
|
-
"examples": [
|
|
36
|
-
"border: 2px solid black"
|
|
37
|
-
]
|
|
38
|
-
},
|
|
39
|
-
"title": {
|
|
40
|
-
"type": "String",
|
|
41
|
-
"desc": "A text for the heading title of the dialog",
|
|
42
|
-
"examples": [
|
|
43
|
-
"Continue?"
|
|
44
|
-
]
|
|
45
|
-
},
|
|
46
|
-
"message": {
|
|
47
|
-
"type": "String",
|
|
48
|
-
"desc": "A text with more information about what needs to be input, selected or confirmed.",
|
|
49
|
-
"examples": [
|
|
50
|
-
"Are you certain you want to continue?"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
"html": {
|
|
54
|
-
"type": "Boolean",
|
|
55
|
-
"desc": "Render title and message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"
|
|
56
|
-
},
|
|
57
|
-
"position": {
|
|
58
|
-
"type": "String",
|
|
59
|
-
"desc": "Position of the Dialog on screen. Standard is centered.",
|
|
60
|
-
"values": [
|
|
61
|
-
"top",
|
|
62
|
-
"right",
|
|
63
|
-
"bottom",
|
|
64
|
-
"left",
|
|
65
|
-
"standard"
|
|
66
|
-
],
|
|
67
|
-
"default": "standard",
|
|
68
|
-
"required": false
|
|
69
|
-
},
|
|
70
|
-
"prompt": {
|
|
71
|
-
"type": "Object",
|
|
72
|
-
"tsType": "QDialogInputPrompt",
|
|
73
|
-
"desc": "An object definition of the input field for the prompting question.",
|
|
74
|
-
"examples": [
|
|
75
|
-
"prompt: { model: this.promptVal, type: 'number' }"
|
|
76
|
-
],
|
|
77
|
-
"definition": {
|
|
78
|
-
"model": {
|
|
79
|
-
"type": "String",
|
|
80
|
-
"required": true,
|
|
81
|
-
"desc": "The initial value of the input"
|
|
82
|
-
},
|
|
83
|
-
"type": {
|
|
84
|
-
"type": "String",
|
|
85
|
-
"desc": "Optional property to determine the input field type",
|
|
86
|
-
"default": "text",
|
|
87
|
-
"examples": [
|
|
88
|
-
"text",
|
|
89
|
-
"number",
|
|
90
|
-
"textarea"
|
|
91
|
-
],
|
|
92
|
-
"required": false
|
|
93
|
-
},
|
|
94
|
-
"isValid": {
|
|
95
|
-
"type": "Function",
|
|
96
|
-
"desc": "Is typed content valid?",
|
|
97
|
-
"params": {
|
|
98
|
-
"val": {
|
|
99
|
-
"type": "String",
|
|
100
|
-
"required": true,
|
|
101
|
-
"desc": "The value of the input"
|
|
102
|
-
}
|
|
103
|
-
},
|
|
104
|
-
"returns": {
|
|
105
|
-
"type": "Boolean",
|
|
106
|
-
"desc": "The text passed validation or not"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"...QInputProps": {
|
|
110
|
-
"type": "Any",
|
|
111
|
-
"desc": "Any QInput props, like color, label, stackLabel, filled, outlined, rounded, prefix etc",
|
|
112
|
-
"examples": [
|
|
113
|
-
"label: 'My Label'",
|
|
114
|
-
"standout: true",
|
|
115
|
-
"counter: true",
|
|
116
|
-
"maxlength: 12"
|
|
117
|
-
]
|
|
118
|
-
},
|
|
119
|
-
"...nativeAttributes": {
|
|
120
|
-
"type": "Object",
|
|
121
|
-
"desc": "Any native attributes to pass to the prompt control",
|
|
122
|
-
"examples": [
|
|
123
|
-
"autocomplete: 'off'"
|
|
124
|
-
]
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"options": {
|
|
129
|
-
"type": "Object",
|
|
130
|
-
"tsType": "QDialogSelectionPrompt",
|
|
131
|
-
"desc": "An object definition for creating the selection form content",
|
|
132
|
-
"examples": [
|
|
133
|
-
"{ model: this.dialogSelection, type: 'radio', items: [...listOfItems] }"
|
|
134
|
-
],
|
|
135
|
-
"definition": {
|
|
136
|
-
"model": {
|
|
137
|
-
"type": [
|
|
138
|
-
"String",
|
|
139
|
-
"Array"
|
|
140
|
-
],
|
|
141
|
-
"required": true,
|
|
142
|
-
"desc": "The value of the selection (String if it's of type radio or Array otherwise)",
|
|
143
|
-
"examples": [
|
|
144
|
-
"[]"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"type": {
|
|
148
|
-
"type": "String",
|
|
149
|
-
"desc": "The type of selection",
|
|
150
|
-
"default": "radio",
|
|
151
|
-
"values": [
|
|
152
|
-
"radio",
|
|
153
|
-
"checkbox",
|
|
154
|
-
"toggle"
|
|
155
|
-
],
|
|
156
|
-
"required": false
|
|
157
|
-
},
|
|
158
|
-
"items": {
|
|
159
|
-
"type": "Array",
|
|
160
|
-
"desc": "The list of options to interact with; Equivalent to options prop of the QOptionGroup component",
|
|
161
|
-
"examples": [
|
|
162
|
-
"[ { label: 'Option 1', value: 'op1' }, { label: 'Option 2', value: 'op2' }, { label: 'Option 3', value: 'op3' } ]"
|
|
163
|
-
]
|
|
164
|
-
},
|
|
165
|
-
"isValid": {
|
|
166
|
-
"type": "Function",
|
|
167
|
-
"desc": "Is the model valid?",
|
|
168
|
-
"params": {
|
|
169
|
-
"model": {
|
|
170
|
-
"type": [
|
|
171
|
-
"String",
|
|
172
|
-
"Array"
|
|
173
|
-
],
|
|
174
|
-
"required": true,
|
|
175
|
-
"desc": "The current model (String if it's of type radio or Array otherwise)",
|
|
176
|
-
"examples": [
|
|
177
|
-
"opt2",
|
|
178
|
-
"[ 'opt1' ]",
|
|
179
|
-
"[]",
|
|
180
|
-
"[ 'opt1', 'opt3' ]"
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"returns": {
|
|
185
|
-
"type": "Boolean",
|
|
186
|
-
"desc": "The selection passed validation or not"
|
|
187
|
-
}
|
|
188
|
-
},
|
|
189
|
-
"...QOptionGroupProps": {
|
|
190
|
-
"type": "Any",
|
|
191
|
-
"desc": "Any QOptionGroup props",
|
|
192
|
-
"examples": [
|
|
193
|
-
"color: 'deep-purple-4'",
|
|
194
|
-
"inline: true",
|
|
195
|
-
"dense: true",
|
|
196
|
-
"leftLabel: true"
|
|
197
|
-
]
|
|
198
|
-
},
|
|
199
|
-
"...nativeAttributes": {
|
|
200
|
-
"type": "Object",
|
|
201
|
-
"desc": "Any native attributes to pass to the inner QOptionGroup"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
"progress": {
|
|
206
|
-
"type": [
|
|
207
|
-
"Boolean",
|
|
208
|
-
"Object"
|
|
209
|
-
],
|
|
210
|
-
"desc": "Display a Quasar spinner (if value is true, then the defaults are used); Useful for conveying the idea that something is happening behind the covers; Tip: use along with persistent, ok: false and update() method",
|
|
211
|
-
"definition": {
|
|
212
|
-
"spinner": {
|
|
213
|
-
"type": "Component",
|
|
214
|
-
"desc": "One of the QSpinners"
|
|
215
|
-
},
|
|
216
|
-
"color": {
|
|
217
|
-
"type": "String",
|
|
218
|
-
"tsType": "NamedColor",
|
|
219
|
-
"desc": "Color name for component from the Quasar Color Palette",
|
|
220
|
-
"examples": [
|
|
221
|
-
"primary",
|
|
222
|
-
"teal",
|
|
223
|
-
"teal-10"
|
|
224
|
-
],
|
|
225
|
-
"category": "style"
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
},
|
|
229
|
-
"ok": {
|
|
230
|
-
"type": [
|
|
231
|
-
"String",
|
|
232
|
-
"Object",
|
|
233
|
-
"Boolean"
|
|
234
|
-
],
|
|
235
|
-
"desc": "Props for an 'OK' button",
|
|
236
|
-
"definition": {
|
|
237
|
-
"...props": {
|
|
238
|
-
"type": "Any",
|
|
239
|
-
"desc": "See QBtn for available props"
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
},
|
|
243
|
-
"cancel": {
|
|
244
|
-
"type": [
|
|
245
|
-
"String",
|
|
246
|
-
"Object",
|
|
247
|
-
"Boolean"
|
|
248
|
-
],
|
|
249
|
-
"desc": "Props for a 'CANCEL' button",
|
|
250
|
-
"definition": {
|
|
251
|
-
"...props": {
|
|
252
|
-
"type": "Any",
|
|
253
|
-
"desc": "See QBtn for available props"
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
"focus": {
|
|
258
|
-
"type": "String",
|
|
259
|
-
"desc": "What button to focus, unless you also have 'prompt' or 'options'",
|
|
260
|
-
"values": [
|
|
261
|
-
"ok",
|
|
262
|
-
"cancel",
|
|
263
|
-
"none"
|
|
264
|
-
],
|
|
265
|
-
"default": "ok",
|
|
266
|
-
"required": false
|
|
267
|
-
},
|
|
268
|
-
"stackButtons": {
|
|
269
|
-
"type": "Boolean",
|
|
270
|
-
"desc": "Makes buttons be stacked instead of vertically aligned"
|
|
271
|
-
},
|
|
272
|
-
"color": {
|
|
273
|
-
"type": "String",
|
|
274
|
-
"tsType": "NamedColor",
|
|
275
|
-
"desc": "Color name for component from the Quasar Color Palette",
|
|
276
|
-
"examples": [
|
|
277
|
-
"primary",
|
|
278
|
-
"teal",
|
|
279
|
-
"teal-10"
|
|
280
|
-
],
|
|
281
|
-
"category": "style"
|
|
282
|
-
},
|
|
283
|
-
"dark": {
|
|
284
|
-
"type": [
|
|
285
|
-
"Boolean",
|
|
286
|
-
"null"
|
|
287
|
-
],
|
|
288
|
-
"default": null,
|
|
289
|
-
"desc": "Apply dark mode",
|
|
290
|
-
"category": "style",
|
|
291
|
-
"required": false
|
|
292
|
-
},
|
|
293
|
-
"persistent": {
|
|
294
|
-
"type": "Boolean",
|
|
295
|
-
"desc": "User cannot dismiss Dialog if clicking outside of it or hitting ESC key; Also, an app route change won't dismiss it"
|
|
296
|
-
},
|
|
297
|
-
"noEscDismiss": {
|
|
298
|
-
"type": "Boolean",
|
|
299
|
-
"desc": "User cannot dismiss Dialog by hitting ESC key; No need to set it if 'persistent' prop is also set"
|
|
300
|
-
},
|
|
301
|
-
"noBackdropDismiss": {
|
|
302
|
-
"type": "Boolean",
|
|
303
|
-
"desc": "User cannot dismiss Dialog by clicking outside of it; No need to set it if 'persistent' prop is also set"
|
|
304
|
-
},
|
|
305
|
-
"noRouteDismiss": {
|
|
306
|
-
"type": "Boolean",
|
|
307
|
-
"desc": "Changing route app won't dismiss Dialog; No need to set it if 'persistent' prop is also set"
|
|
308
|
-
},
|
|
309
|
-
"seamless": {
|
|
310
|
-
"type": "Boolean",
|
|
311
|
-
"desc": "Put Dialog into seamless mode; Does not use a backdrop so user is able to interact with the rest of the page too"
|
|
312
|
-
},
|
|
313
|
-
"maximized": {
|
|
314
|
-
"type": "Boolean",
|
|
315
|
-
"desc": "Put Dialog into maximized mode"
|
|
316
|
-
},
|
|
317
|
-
"fullWidth": {
|
|
318
|
-
"type": "Boolean",
|
|
319
|
-
"desc": "Dialog will try to render with same width as the window"
|
|
320
|
-
},
|
|
321
|
-
"fullHeight": {
|
|
322
|
-
"type": "Boolean",
|
|
323
|
-
"desc": "Dialog will try to render with same height as the window"
|
|
324
|
-
},
|
|
325
|
-
"transitionShow": {
|
|
326
|
-
"type": "String",
|
|
327
|
-
"desc": "One of Quasar's embedded transitions",
|
|
328
|
-
"examples": [
|
|
329
|
-
"fade",
|
|
330
|
-
"slide-down"
|
|
331
|
-
],
|
|
332
|
-
"category": "transition",
|
|
333
|
-
"default": "scale",
|
|
334
|
-
"required": false
|
|
335
|
-
},
|
|
336
|
-
"transitionHide": {
|
|
337
|
-
"type": "String",
|
|
338
|
-
"desc": "One of Quasar's embedded transitions",
|
|
339
|
-
"examples": [
|
|
340
|
-
"fade",
|
|
341
|
-
"slide-down"
|
|
342
|
-
],
|
|
343
|
-
"category": "transition",
|
|
344
|
-
"default": "scale",
|
|
345
|
-
"required": false
|
|
346
|
-
},
|
|
347
|
-
"component": {
|
|
348
|
-
"type": [
|
|
349
|
-
"Component",
|
|
350
|
-
"String"
|
|
351
|
-
],
|
|
352
|
-
"desc": "Use custom dialog component; use along with 'componentProps' prop where possible",
|
|
353
|
-
"examples": [
|
|
354
|
-
"CustomComponent",
|
|
355
|
-
"'custom-component'"
|
|
356
|
-
]
|
|
357
|
-
},
|
|
358
|
-
"componentProps": {
|
|
359
|
-
"type": "Object",
|
|
360
|
-
"desc": "User defined props which will be forwarded to underlying custom component if 'component' prop is used"
|
|
361
|
-
}
|
|
362
|
-
},
|
|
363
|
-
"desc": "Dialog options",
|
|
364
|
-
"tsType": "QDialogOptions",
|
|
365
|
-
"autoDefineTsType": true
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
"returns": {
|
|
369
|
-
"type": "Object",
|
|
370
|
-
"desc": "Chainable Object",
|
|
371
|
-
"tsType": "DialogChainObject",
|
|
372
|
-
"autoDefineTsType": true,
|
|
373
|
-
"definition": {
|
|
374
|
-
"onOk": {
|
|
375
|
-
"type": "Function",
|
|
376
|
-
"required": true,
|
|
377
|
-
"desc": "Receives a Function param to tell what to do when OK is pressed / option is selected",
|
|
378
|
-
"params": {
|
|
379
|
-
"callbackFn": {
|
|
380
|
-
"type": "Function",
|
|
381
|
-
"desc": "Tell what to do",
|
|
382
|
-
"required": true,
|
|
383
|
-
"params": {
|
|
384
|
-
"payload": {
|
|
385
|
-
"type": "Any",
|
|
386
|
-
"desc": "The payload if called onDialogOK with the parameter or emitted one with the 'ok' event",
|
|
387
|
-
"required": false,
|
|
388
|
-
"examples": [
|
|
389
|
-
"'Quasar Framework'",
|
|
390
|
-
"[ 1, 2, 6, 3 ]",
|
|
391
|
-
"{ book: { id: 1, name: 'Lorem Ipsum' }, user: { name: 'Lorem J. Ipsum', role: 'admin' } }"
|
|
392
|
-
]
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"returns": null,
|
|
396
|
-
"examples": [
|
|
397
|
-
"() => console.log('OK!')",
|
|
398
|
-
"(payload) => Notify.create({ type: 'positive', message: `Successfully saved '${payload.book.name}' book!` })"
|
|
399
|
-
]
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
|
-
"returns": {
|
|
403
|
-
"type": "Object",
|
|
404
|
-
"desc": "Chained Object",
|
|
405
|
-
"tsType": "DialogChainObject"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"onCancel": {
|
|
409
|
-
"type": "Function",
|
|
410
|
-
"required": true,
|
|
411
|
-
"desc": "Receives a Function as param to tell what to do when Cancel is pressed / dialog is dismissed",
|
|
412
|
-
"params": {
|
|
413
|
-
"callbackFn": {
|
|
414
|
-
"type": "Function",
|
|
415
|
-
"desc": "Tell what to do",
|
|
416
|
-
"required": true,
|
|
417
|
-
"params": null,
|
|
418
|
-
"returns": null
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
"returns": {
|
|
422
|
-
"type": "Object",
|
|
423
|
-
"desc": "Chained Object",
|
|
424
|
-
"tsType": "DialogChainObject"
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
"onDismiss": {
|
|
428
|
-
"type": "Function",
|
|
429
|
-
"required": true,
|
|
430
|
-
"desc": "Receives a Function param to tell what to do when the dialog is closed",
|
|
431
|
-
"params": {
|
|
432
|
-
"callbackFn": {
|
|
433
|
-
"type": "Function",
|
|
434
|
-
"desc": "Tell what to do",
|
|
435
|
-
"required": true,
|
|
436
|
-
"params": null,
|
|
437
|
-
"returns": null
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
"returns": {
|
|
441
|
-
"type": "Object",
|
|
442
|
-
"desc": "Chained Object",
|
|
443
|
-
"tsType": "DialogChainObject"
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
"hide": {
|
|
447
|
-
"type": "Function",
|
|
448
|
-
"required": true,
|
|
449
|
-
"desc": "Hides the dialog when called",
|
|
450
|
-
"params": null,
|
|
451
|
-
"returns": {
|
|
452
|
-
"type": "Object",
|
|
453
|
-
"desc": "Chained Object",
|
|
454
|
-
"tsType": "DialogChainObject"
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
"update": {
|
|
458
|
-
"type": "Function",
|
|
459
|
-
"required": true,
|
|
460
|
-
"desc": "Updates the initial properties (given as create() param) except for 'component'",
|
|
461
|
-
"params": {
|
|
462
|
-
"opts": {
|
|
463
|
-
"type": "Object",
|
|
464
|
-
"required": true,
|
|
465
|
-
"desc": "Props (except 'component') which will overwrite the initial create() params; If create() was invoked with a custom dialog component then this param should contain the new componentProps"
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
"returns": {
|
|
469
|
-
"type": "Object",
|
|
470
|
-
"desc": "Chained Object",
|
|
471
|
-
"tsType": "DialogChainObject"
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
},
|
|
476
|
-
"tsInjectionPoint": true
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
1
|
+
{"type":"plugin","meta":{"docsUrl":"https://v2.quasar.dev/quasar-plugins/dialog"},"injection":"$q.dialog","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"],"tsType":"VueClassProp","desc":"CSS Class name to apply to the Dialog's QCard","examples":["my-class"]},"style":{"type":["String","Array","Object"],"tsType":"VueStyleProp","desc":"CSS style to apply to the Dialog's QCard","examples":["border: 2px solid black"]},"title":{"type":"String","desc":"A text for the heading title of the dialog","examples":["Continue?"]},"message":{"type":"String","desc":"A text with more information about what needs to be input, selected or confirmed.","examples":["Are you certain you want to continue?"]},"html":{"type":"Boolean","desc":"Render title and message as HTML; This can lead to XSS attacks, so make sure that you sanitize the message first"},"position":{"type":"String","desc":"Position of the Dialog on screen. Standard is centered.","values":["top","right","bottom","left","standard"],"default":"standard","required":false},"prompt":{"type":"Object","tsType":"QDialogInputPrompt","desc":"An object definition of the input field for the prompting question.","examples":["prompt: { model: this.promptVal, type: 'number' }"],"definition":{"model":{"type":"String","required":true,"desc":"The initial value of the input"},"type":{"type":"String","desc":"Optional property to determine the input field type","default":"text","examples":["text","number","textarea"],"required":false},"isValid":{"type":"Function","desc":"Is typed content valid?","params":{"val":{"type":"String","required":true,"desc":"The value of the input"}},"returns":{"type":"Boolean","desc":"The text passed validation or not"}},"...QInputProps":{"type":"Any","desc":"Any QInput props, like color, label, stackLabel, filled, outlined, rounded, prefix etc","examples":["label: 'My Label'","standout: true","counter: true","maxlength: 12"]},"...nativeAttributes":{"type":"Object","desc":"Any native attributes to pass to the prompt control","examples":["autocomplete: 'off'"]}}},"options":{"type":"Object","tsType":"QDialogSelectionPrompt","desc":"An object definition for creating the selection form content","examples":["{ model: this.dialogSelection, type: 'radio', items: [...listOfItems] }"],"definition":{"model":{"type":["String","Array"],"required":true,"desc":"The value of the selection (String if it's of type radio or Array otherwise)","examples":["[]"]},"type":{"type":"String","desc":"The type of selection","default":"radio","values":["radio","checkbox","toggle"],"required":false},"items":{"type":"Array","desc":"The list of options to interact with; Equivalent to options prop of the QOptionGroup component","examples":["[ { label: 'Option 1', value: 'op1' }, { label: 'Option 2', value: 'op2' }, { label: 'Option 3', value: 'op3' } ]"]},"isValid":{"type":"Function","desc":"Is the model valid?","params":{"model":{"type":["String","Array"],"required":true,"desc":"The current model (String if it's of type radio or Array otherwise)","examples":["opt2","[ 'opt1' ]","[]","[ 'opt1', 'opt3' ]"]}},"returns":{"type":"Boolean","desc":"The selection passed validation or not"}},"...QOptionGroupProps":{"type":"Any","desc":"Any QOptionGroup props","examples":["color: 'deep-purple-4'","inline: true","dense: true","leftLabel: true"]},"...nativeAttributes":{"type":"Object","desc":"Any native attributes to pass to the inner QOptionGroup"}}},"progress":{"type":["Boolean","Object"],"desc":"Display a Quasar spinner (if value is true, then the defaults are used); Useful for conveying the idea that something is happening behind the covers; Tip: use along with persistent, ok: false and update() method","definition":{"spinner":{"type":"Component","desc":"One of the QSpinners"},"color":{"type":"String","tsType":"NamedColor","desc":"Color name for component from the Quasar Color Palette","examples":["primary","teal","teal-10"],"category":"style"}}},"ok":{"type":["String","Object","Boolean"],"desc":"Props for an 'OK' button","definition":{"...props":{"type":"Any","desc":"See QBtn for available props"}}},"cancel":{"type":["String","Object","Boolean"],"desc":"Props for a 'CANCEL' button","definition":{"...props":{"type":"Any","desc":"See QBtn for available props"}}},"focus":{"type":"String","desc":"What button to focus, unless you also have 'prompt' or 'options'","values":["ok","cancel","none"],"default":"ok","required":false},"stackButtons":{"type":"Boolean","desc":"Makes buttons be stacked instead of vertically aligned"},"color":{"type":"String","tsType":"NamedColor","desc":"Color name for component from the Quasar Color Palette","examples":["primary","teal","teal-10"],"category":"style"},"dark":{"type":["Boolean","null"],"default":null,"desc":"Apply dark mode","category":"style","required":false},"persistent":{"type":"Boolean","desc":"User cannot dismiss Dialog if clicking outside of it or hitting ESC key; Also, an app route change won't dismiss it"},"noEscDismiss":{"type":"Boolean","desc":"User cannot dismiss Dialog by hitting ESC key; No need to set it if 'persistent' prop is also set"},"noBackdropDismiss":{"type":"Boolean","desc":"User cannot dismiss Dialog by clicking outside of it; No need to set it if 'persistent' prop is also set"},"noRouteDismiss":{"type":"Boolean","desc":"Changing route app won't dismiss Dialog; No need to set it if 'persistent' prop is also set"},"seamless":{"type":"Boolean","desc":"Put Dialog into seamless mode; Does not use a backdrop so user is able to interact with the rest of the page too"},"maximized":{"type":"Boolean","desc":"Put Dialog into maximized mode"},"fullWidth":{"type":"Boolean","desc":"Dialog will try to render with same width as the window"},"fullHeight":{"type":"Boolean","desc":"Dialog will try to render with same height as the window"},"transitionShow":{"type":"String","desc":"One of Quasar's embedded transitions","examples":["fade","slide-down"],"category":"transition","default":"scale","required":false},"transitionHide":{"type":"String","desc":"One of Quasar's embedded transitions","examples":["fade","slide-down"],"category":"transition","default":"scale","required":false},"component":{"type":["Component","String"],"desc":"Use custom dialog component; use along with 'componentProps' prop where possible","examples":["CustomComponent","'custom-component'"]},"componentProps":{"type":"Object","desc":"User defined props which will be forwarded to underlying custom component if 'component' prop is used"}},"desc":"Dialog options","tsType":"QDialogOptions","autoDefineTsType":true}},"returns":{"type":"Object","desc":"Chainable Object","tsType":"DialogChainObject","autoDefineTsType":true,"definition":{"onOk":{"type":"Function","required":true,"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":{"payload":{"type":"Any","desc":"The payload if called onDialogOK with the parameter or emitted one with the 'ok' event","required":false,"examples":["'Quasar Framework'","[ 1, 2, 6, 3 ]","{ book: { id: 1, name: 'Lorem Ipsum' }, user: { name: 'Lorem J. Ipsum', role: 'admin' } }"]}},"returns":null,"examples":["() => console.log('OK!')","(payload) => Notify.create({ type: 'positive', message: `Successfully saved '${payload.book.name}' book!` })"]}},"returns":{"type":"Object","desc":"Chained Object","tsType":"DialogChainObject"}},"onCancel":{"type":"Function","required":true,"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"}},"onDismiss":{"type":"Function","required":true,"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"}},"hide":{"type":"Function","required":true,"desc":"Hides the dialog when called","params":null,"returns":{"type":"Object","desc":"Chained Object","tsType":"DialogChainObject"}},"update":{"type":"Function","required":true,"desc":"Updates the initial properties (given as create() param) except for 'component'","params":{"opts":{"type":"Object","required":true,"desc":"Props (except 'component') which will overwrite the initial create() params; If create() was invoked with a custom dialog component then this param should contain the new componentProps"}},"returns":{"type":"Object","desc":"Chained Object","tsType":"DialogChainObject"}}}},"tsInjectionPoint":true}}}
|