@bryntum/core-vue-3-thin 7.3.0 → 7.3.1
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/lib/chunks/-8Xai_9S.js.map +1 -1
- package/lib/chunks/47-V2ACd.js.map +1 -1
- package/lib/chunks/ASihDjXw.js.map +1 -1
- package/lib/chunks/B7KhcgPC.js.map +1 -1
- package/lib/chunks/B8KGPeHy.js.map +1 -1
- package/lib/chunks/BB8tOII_.js.map +1 -1
- package/lib/chunks/{S9XwH6IJ.js → BEX7SIci.js} +6 -4
- package/lib/chunks/BEX7SIci.js.map +1 -0
- package/lib/chunks/BFNWOtf2.js.map +1 -1
- package/lib/chunks/BG7E4-sX.js.map +1 -1
- package/lib/chunks/{BKLWvKPc.js → BH9WVqFa.js} +12 -10
- package/lib/chunks/BH9WVqFa.js.map +1 -0
- package/lib/chunks/{naTVDWnB.js → BOGE5pxL.js} +13 -11
- package/lib/chunks/BOGE5pxL.js.map +1 -0
- package/lib/chunks/{C14dvV95.js → BQikt_g7.js} +10 -8
- package/lib/chunks/BQikt_g7.js.map +1 -0
- package/lib/chunks/{C0-E5hnK.js → BWPcUxSk.js} +9 -7
- package/lib/chunks/BWPcUxSk.js.map +1 -0
- package/lib/chunks/{D7CJcnRV.js → BmrPNTUZ.js} +9 -7
- package/lib/chunks/BmrPNTUZ.js.map +1 -0
- package/lib/chunks/{DRz-V3LT.js → Bpq-_L_J.js} +11 -9
- package/lib/chunks/Bpq-_L_J.js.map +1 -0
- package/lib/chunks/Brp0NyFN.js.map +1 -1
- package/lib/chunks/{qkwwWpWo.js → BuQqXOvY.js} +6 -4
- package/lib/chunks/BuQqXOvY.js.map +1 -0
- package/lib/chunks/{BPANMXC6.js → ByuztLAT.js} +11 -9
- package/lib/chunks/ByuztLAT.js.map +1 -0
- package/lib/chunks/C0JI13dO.js.map +1 -1
- package/lib/chunks/C8pe1IyH.js.map +1 -1
- package/lib/chunks/C987g-kK.js.map +1 -1
- package/lib/chunks/CLqf-0PN.js.map +1 -1
- package/lib/chunks/CQwgnD9q.js.map +1 -1
- package/lib/chunks/{HOklxqtO.js → CXEKQ18L.js} +9 -7
- package/lib/chunks/CXEKQ18L.js.map +1 -0
- package/lib/chunks/Cd9NJP1W.js.map +1 -1
- package/lib/chunks/{BrRBMti3.js → CfCbZPht.js} +9 -7
- package/lib/chunks/CfCbZPht.js.map +1 -0
- package/lib/chunks/{ChAWW3Iy.js → CpVLgWPj.js} +9 -7
- package/lib/chunks/CpVLgWPj.js.map +1 -0
- package/lib/chunks/Csirfhz_.js.map +1 -1
- package/lib/chunks/Cz2JtuJX.js.map +1 -1
- package/lib/chunks/D6JcA9Zt.js.map +1 -1
- package/lib/chunks/{CUFZWGAX.js → DCcctqdo.js} +5 -3
- package/lib/chunks/DCcctqdo.js.map +1 -0
- package/lib/chunks/{ToClygqb.js → DNScKbAm.js} +9 -7
- package/lib/chunks/DNScKbAm.js.map +1 -0
- package/lib/chunks/DNTQukmL.js.map +1 -1
- package/lib/chunks/{BeXQ7RhD.js → DOp4_ZR2.js} +7 -5
- package/lib/chunks/DOp4_ZR2.js.map +1 -0
- package/lib/chunks/DQLfwhka.js.map +1 -1
- package/lib/chunks/DR_RL3ms.js.map +1 -1
- package/lib/chunks/Dg7wbkjL.js.map +1 -1
- package/lib/chunks/{DuiOZGf5.js → DgXr7-Gj.js} +9 -7
- package/lib/chunks/DgXr7-Gj.js.map +1 -0
- package/lib/chunks/DhOHvb1Z.js.map +1 -1
- package/lib/chunks/Hu7IhLgO.js.map +1 -1
- package/lib/chunks/WGJj3T9m.js.map +1 -1
- package/lib/chunks/Wh7gYeFQ.js.map +1 -1
- package/lib/chunks/YAeyT4qi.js.map +1 -1
- package/lib/chunks/boSXkG-m.js.map +1 -1
- package/lib/chunks/{DAfGAAbO.js → lQtECawa.js} +10 -8
- package/lib/chunks/lQtECawa.js.map +1 -0
- package/lib/chunks/{B_aqRSp2.js → vcFE80xr.js} +14 -12
- package/lib/chunks/vcFE80xr.js.map +1 -0
- package/lib/chunks/{IjqHT_Qc.js → xYFGvsOR.js} +9 -7
- package/lib/chunks/xYFGvsOR.js.map +1 -0
- package/lib/chunks/zIlWjejC.js.map +1 -1
- package/lib/chunks/ztxFXigG.js.map +1 -1
- package/lib/components/BryntumBooleanCombo.js +1 -1
- package/lib/components/BryntumCheckbox.js +1 -1
- package/lib/components/BryntumColorField.js +1 -1
- package/lib/components/BryntumCombo.js +1 -1
- package/lib/components/BryntumDateField.js +1 -1
- package/lib/components/BryntumDateRangeField.js +1 -1
- package/lib/components/BryntumDateTimeField.js +1 -1
- package/lib/components/BryntumDisplayField.js +1 -1
- package/lib/components/BryntumDurationField.js +1 -1
- package/lib/components/BryntumFileField.js +1 -1
- package/lib/components/BryntumFilterField.js +1 -1
- package/lib/components/BryntumNumberField.js +1 -1
- package/lib/components/BryntumPasswordField.js +1 -1
- package/lib/components/BryntumRadio.js +1 -1
- package/lib/components/BryntumSlideToggle.js +1 -1
- package/lib/components/BryntumTextAreaField.js +1 -1
- package/lib/components/BryntumTextAreaPickerField.js +1 -1
- package/lib/components/BryntumTextField.js +1 -1
- package/lib/components/BryntumTimeField.js +1 -1
- package/lib/index.js +19 -19
- package/package.json +1 -1
- package/src/components/BryntumBooleanCombo.vue +11 -1
- package/src/components/BryntumBooleanComboProps.ts +9 -0
- package/src/components/BryntumButton.vue +3 -3
- package/src/components/BryntumButtonGroup.vue +1 -1
- package/src/components/BryntumChatPanel.vue +3 -3
- package/src/components/BryntumCheckbox.vue +12 -2
- package/src/components/BryntumCheckboxGroup.vue +3 -3
- package/src/components/BryntumCheckboxProps.ts +9 -0
- package/src/components/BryntumChipView.vue +2 -2
- package/src/components/BryntumCodeEditor.vue +3 -3
- package/src/components/BryntumColorField.vue +11 -1
- package/src/components/BryntumColorFieldProps.ts +9 -0
- package/src/components/BryntumCombo.vue +11 -1
- package/src/components/BryntumComboProps.ts +9 -0
- package/src/components/BryntumContainer.vue +1 -1
- package/src/components/BryntumDateField.vue +11 -1
- package/src/components/BryntumDateFieldProps.ts +9 -0
- package/src/components/BryntumDatePicker.vue +3 -3
- package/src/components/BryntumDateRangeField.vue +11 -1
- package/src/components/BryntumDateRangeFieldProps.ts +9 -0
- package/src/components/BryntumDateTimeField.vue +11 -1
- package/src/components/BryntumDateTimeFieldProps.ts +9 -0
- package/src/components/BryntumDemoCodeEditor.vue +3 -3
- package/src/components/BryntumDisplayField.vue +11 -1
- package/src/components/BryntumDisplayFieldProps.ts +9 -0
- package/src/components/BryntumDurationField.vue +11 -1
- package/src/components/BryntumDurationFieldProps.ts +9 -0
- package/src/components/BryntumEditor.vue +5 -5
- package/src/components/BryntumFieldFilterPicker.vue +1 -1
- package/src/components/BryntumFieldFilterPickerGroup.vue +2 -2
- package/src/components/BryntumFieldSet.vue +3 -3
- package/src/components/BryntumFileField.vue +11 -1
- package/src/components/BryntumFileFieldProps.ts +9 -0
- package/src/components/BryntumFilePicker.vue +1 -1
- package/src/components/BryntumFilterField.vue +11 -1
- package/src/components/BryntumFilterFieldProps.ts +9 -0
- package/src/components/BryntumHint.vue +3 -3
- package/src/components/BryntumLabel.vue +1 -1
- package/src/components/BryntumList.vue +2 -2
- package/src/components/BryntumMenu.vue +3 -3
- package/src/components/BryntumMonthPicker.vue +3 -3
- package/src/components/BryntumNumberField.vue +11 -1
- package/src/components/BryntumNumberFieldProps.ts +9 -0
- package/src/components/BryntumPagingToolbar.vue +2 -2
- package/src/components/BryntumPanel.vue +3 -3
- package/src/components/BryntumPasswordField.vue +11 -1
- package/src/components/BryntumPasswordFieldProps.ts +9 -0
- package/src/components/BryntumProgressBar.vue +1 -1
- package/src/components/BryntumRadio.vue +12 -2
- package/src/components/BryntumRadioGroup.vue +3 -3
- package/src/components/BryntumRadioProps.ts +9 -0
- package/src/components/BryntumSlideToggle.vue +12 -2
- package/src/components/BryntumSlideToggleProps.ts +9 -0
- package/src/components/BryntumSlider.vue +1 -1
- package/src/components/BryntumSplitter.vue +1 -1
- package/src/components/BryntumTabPanel.vue +4 -4
- package/src/components/BryntumTextAreaField.vue +11 -1
- package/src/components/BryntumTextAreaFieldProps.ts +9 -0
- package/src/components/BryntumTextAreaPickerField.vue +11 -1
- package/src/components/BryntumTextAreaPickerFieldProps.ts +9 -0
- package/src/components/BryntumTextField.vue +11 -1
- package/src/components/BryntumTextFieldProps.ts +9 -0
- package/src/components/BryntumTimeField.vue +11 -1
- package/src/components/BryntumTimeFieldProps.ts +9 -0
- package/src/components/BryntumTimePicker.vue +1 -1
- package/src/components/BryntumToolbar.vue +2 -2
- package/src/components/BryntumWidget.vue +1 -1
- package/src/components/BryntumYearPicker.vue +3 -3
- package/lib/chunks/BKLWvKPc.js.map +0 -1
- package/lib/chunks/BPANMXC6.js.map +0 -1
- package/lib/chunks/B_aqRSp2.js.map +0 -1
- package/lib/chunks/BeXQ7RhD.js.map +0 -1
- package/lib/chunks/BrRBMti3.js.map +0 -1
- package/lib/chunks/C0-E5hnK.js.map +0 -1
- package/lib/chunks/C14dvV95.js.map +0 -1
- package/lib/chunks/CUFZWGAX.js.map +0 -1
- package/lib/chunks/ChAWW3Iy.js.map +0 -1
- package/lib/chunks/D7CJcnRV.js.map +0 -1
- package/lib/chunks/DAfGAAbO.js.map +0 -1
- package/lib/chunks/DRz-V3LT.js.map +0 -1
- package/lib/chunks/DuiOZGf5.js.map +0 -1
- package/lib/chunks/HOklxqtO.js.map +0 -1
- package/lib/chunks/IjqHT_Qc.js.map +0 -1
- package/lib/chunks/S9XwH6IJ.js.map +0 -1
- package/lib/chunks/ToClygqb.js.map +0 -1
- package/lib/chunks/naTVDWnB.js.map +0 -1
- package/lib/chunks/qkwwWpWo.js.map +0 -1
|
@@ -89,6 +89,15 @@ export declare type BryntumBooleanComboProps = {
|
|
|
89
89
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
90
90
|
*/
|
|
91
91
|
centered ? : Boolean
|
|
92
|
+
/**
|
|
93
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
94
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
95
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
96
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/BooleanCombo#config-checkValidity)
|
|
97
|
+
* @param {Core.widget.Field} field The field being validated
|
|
98
|
+
* @returns {void}
|
|
99
|
+
*/
|
|
100
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
92
101
|
/**
|
|
93
102
|
* A config object to configure the [ChipView](https://bryntum.com/products/core/docs/api/Core/widget/ChipView) to display the
|
|
94
103
|
* selected value set when [multiSelect](https://bryntum.com/products/core/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -544,7 +544,7 @@ const emit = defineEmits<{
|
|
|
544
544
|
* @param {object} params.event Event object
|
|
545
545
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
546
546
|
*/
|
|
547
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
547
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
548
548
|
/**
|
|
549
549
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
550
550
|
* @param {string} e Event name
|
|
@@ -563,7 +563,7 @@ const emit = defineEmits<{
|
|
|
563
563
|
* @param {boolean} params.event.userAction `true` if the toggle was triggered by a user action (click), `false` if it was triggered programmatically.
|
|
564
564
|
* @param {Event} params.event.domEvent The original DOM event that triggered the action, if any. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
|
|
565
565
|
*/
|
|
566
|
-
(e: 'beforeShowMenu', params: ((event: { source: Button, menu: Menu, userAction: boolean, domEvent: Event }) =>
|
|
566
|
+
(e: 'beforeShowMenu', params: ((event: { source: Button, menu: Menu, userAction: boolean, domEvent: Event }) => boolean|void)|string): boolean|void
|
|
567
567
|
/**
|
|
568
568
|
* Fires before the button is toggled (the [pressed](https://bryntum.com/products/core/docs/api/Core/widget/Button#property-pressed) state is changed). If the button is part of
|
|
569
569
|
* a [toggleGroup](https://bryntum.com/products/core/docs/api/Core/widget/Button#config-toggleGroup) and you need to process the pressed button only, consider using
|
|
@@ -577,7 +577,7 @@ const emit = defineEmits<{
|
|
|
577
577
|
* @param {boolean} params.event.userAction `true` if the toggle was triggered by a user action (click), `false` if it was triggered programmatically.
|
|
578
578
|
* @param {Event} params.event.domEvent The original DOM event that triggered the action, if any. Using the `pointerType` property of this event can help determine if it was a mouse, touch or pen action.
|
|
579
579
|
*/
|
|
580
|
-
(e: 'beforeToggle', params: ((event: { source: Button, pressed: boolean, userAction: boolean, domEvent: Event }) =>
|
|
580
|
+
(e: 'beforeToggle', params: ((event: { source: Button, pressed: boolean, userAction: boolean, domEvent: Event }) => boolean|void)|string): boolean|void
|
|
581
581
|
/**
|
|
582
582
|
* Fires when any other event is fired from the object.
|
|
583
583
|
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Button#event-catchAll)
|
|
@@ -569,7 +569,7 @@ const emit = defineEmits<{
|
|
|
569
569
|
* @param {object} params.event Event object
|
|
570
570
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
571
571
|
*/
|
|
572
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
572
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
573
573
|
/**
|
|
574
574
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
575
575
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -696,7 +696,7 @@ const emit = defineEmits<{
|
|
|
696
696
|
* @param {object} params.event Event object
|
|
697
697
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
698
698
|
*/
|
|
699
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
699
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
700
700
|
/**
|
|
701
701
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
702
702
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -722,7 +722,7 @@ const emit = defineEmits<{
|
|
|
722
722
|
* @param {object} params.event Event object
|
|
723
723
|
* @param {any} params.event.state State object config
|
|
724
724
|
*/
|
|
725
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
725
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
726
726
|
/**
|
|
727
727
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
728
728
|
* @param {string} e Event name
|
|
@@ -730,7 +730,7 @@ const emit = defineEmits<{
|
|
|
730
730
|
* @param {object} params.event Event object
|
|
731
731
|
* @param {any} params.event.state State object config
|
|
732
732
|
*/
|
|
733
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
733
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
734
734
|
/**
|
|
735
735
|
* Fired when the chat bubble tool icon is clicked.
|
|
736
736
|
* @param {string} e Event name
|
|
@@ -108,6 +108,15 @@ defineProps<{
|
|
|
108
108
|
* A value of `undefined` will cause this widget not to include its value when checked.
|
|
109
109
|
*/
|
|
110
110
|
checkedValue ? : any
|
|
111
|
+
/**
|
|
112
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
113
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
114
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
115
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Checkbox#config-checkValidity)
|
|
116
|
+
* @param {Core.widget.Field} field The field being validated
|
|
117
|
+
* @returns {void}
|
|
118
|
+
*/
|
|
119
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
111
120
|
/**
|
|
112
121
|
* Custom CSS classes to add to element.
|
|
113
122
|
* May be specified as a space separated string, or as an object in which property names
|
|
@@ -624,7 +633,7 @@ const emit = defineEmits<{
|
|
|
624
633
|
* @param {boolean} params.event.valid True if this field is in a valid state.
|
|
625
634
|
* @param {Event} params.event.event The triggering DOM event if any
|
|
626
635
|
*/
|
|
627
|
-
(e: 'beforeChange', params: ((event: { source: Checkbox, checked: boolean, value: boolean, oldValue: boolean, userAction: boolean, valid: boolean, event: Event }) =>
|
|
636
|
+
(e: 'beforeChange', params: ((event: { source: Checkbox, checked: boolean, value: boolean, oldValue: boolean, userAction: boolean, valid: boolean, event: Event }) => boolean|void)|string): boolean|void
|
|
628
637
|
/**
|
|
629
638
|
* Fires before an object is destroyed.
|
|
630
639
|
* @param {string} e Event name
|
|
@@ -640,7 +649,7 @@ const emit = defineEmits<{
|
|
|
640
649
|
* @param {object} params.event Event object
|
|
641
650
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
642
651
|
*/
|
|
643
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
652
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
644
653
|
/**
|
|
645
654
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
646
655
|
* @param {string} e Event name
|
|
@@ -824,6 +833,7 @@ const widgetData = {
|
|
|
824
833
|
'bubbleEvents',
|
|
825
834
|
'centered',
|
|
826
835
|
'checkedValue',
|
|
836
|
+
'checkValidity',
|
|
827
837
|
'color',
|
|
828
838
|
'config',
|
|
829
839
|
'constrainTo',
|
|
@@ -709,7 +709,7 @@ const emit = defineEmits<{
|
|
|
709
709
|
* @param {object} params.event Event object
|
|
710
710
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
711
711
|
*/
|
|
712
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
712
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
713
713
|
/**
|
|
714
714
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
715
715
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -735,7 +735,7 @@ const emit = defineEmits<{
|
|
|
735
735
|
* @param {object} params.event Event object
|
|
736
736
|
* @param {any} params.event.state State object config
|
|
737
737
|
*/
|
|
738
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
738
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
739
739
|
/**
|
|
740
740
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
741
741
|
* @param {string} e Event name
|
|
@@ -743,7 +743,7 @@ const emit = defineEmits<{
|
|
|
743
743
|
* @param {object} params.event Event object
|
|
744
744
|
* @param {any} params.event.state State object config
|
|
745
745
|
*/
|
|
746
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
746
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
747
747
|
/**
|
|
748
748
|
* Fires when any other event is fired from the object.
|
|
749
749
|
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CheckboxGroup#event-catchAll)
|
|
@@ -93,6 +93,15 @@ export declare type BryntumCheckboxProps = {
|
|
|
93
93
|
* A value of `undefined` will cause this widget not to include its value when checked.
|
|
94
94
|
*/
|
|
95
95
|
checkedValue ? : any
|
|
96
|
+
/**
|
|
97
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
98
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
99
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
100
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Checkbox#config-checkValidity)
|
|
101
|
+
* @param {Core.widget.Field} field The field being validated
|
|
102
|
+
* @returns {void}
|
|
103
|
+
*/
|
|
104
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
96
105
|
/**
|
|
97
106
|
* Custom CSS classes to add to element.
|
|
98
107
|
* May be specified as a space separated string, or as an object in which property names
|
|
@@ -567,7 +567,7 @@ const emit = defineEmits<{
|
|
|
567
567
|
* @param {object} params.event Event object
|
|
568
568
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
569
569
|
*/
|
|
570
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
570
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
571
571
|
/**
|
|
572
572
|
* User going to activate an item in the list either by pointer or keyboard.
|
|
573
573
|
* The active record, list item index, and the triggering event are passed.
|
|
@@ -581,7 +581,7 @@ const emit = defineEmits<{
|
|
|
581
581
|
* @param {number} params.event.index List item index
|
|
582
582
|
* @param {Event} params.event.event Triggering event
|
|
583
583
|
*/
|
|
584
|
-
(e: 'beforeItem', params: ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) =>
|
|
584
|
+
(e: 'beforeItem', params: ((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => boolean|void)|string): boolean|void
|
|
585
585
|
/**
|
|
586
586
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
587
587
|
* @param {string} e Event name
|
|
@@ -677,7 +677,7 @@ const emit = defineEmits<{
|
|
|
677
677
|
* @param {object} params.event Event object
|
|
678
678
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
679
679
|
*/
|
|
680
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
680
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
681
681
|
/**
|
|
682
682
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
683
683
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -703,7 +703,7 @@ const emit = defineEmits<{
|
|
|
703
703
|
* @param {object} params.event Event object
|
|
704
704
|
* @param {any} params.event.state State object config
|
|
705
705
|
*/
|
|
706
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
706
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
707
707
|
/**
|
|
708
708
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
709
709
|
* @param {string} e Event name
|
|
@@ -711,7 +711,7 @@ const emit = defineEmits<{
|
|
|
711
711
|
* @param {object} params.event Event object
|
|
712
712
|
* @param {any} params.event.state State object config
|
|
713
713
|
*/
|
|
714
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
714
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
715
715
|
/**
|
|
716
716
|
* Fires when any other event is fired from the object.
|
|
717
717
|
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#event-catchAll)
|
|
@@ -99,6 +99,15 @@ defineProps<{
|
|
|
99
99
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
100
100
|
*/
|
|
101
101
|
centered ? : Boolean
|
|
102
|
+
/**
|
|
103
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
104
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
105
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
106
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ColorField#config-checkValidity)
|
|
107
|
+
* @param {Core.widget.Field} field The field being validated
|
|
108
|
+
* @returns {void}
|
|
109
|
+
*/
|
|
110
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
102
111
|
/**
|
|
103
112
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
104
113
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -639,7 +648,7 @@ const emit = defineEmits<{
|
|
|
639
648
|
* @param {object} params.event Event object
|
|
640
649
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
641
650
|
*/
|
|
642
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
651
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
643
652
|
/**
|
|
644
653
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
645
654
|
* @param {string} e Event name
|
|
@@ -813,6 +822,7 @@ const widgetData = {
|
|
|
813
822
|
'autoSelect',
|
|
814
823
|
'bubbleEvents',
|
|
815
824
|
'centered',
|
|
825
|
+
'checkValidity',
|
|
816
826
|
'clearable',
|
|
817
827
|
'config',
|
|
818
828
|
'constrainTo',
|
|
@@ -84,6 +84,15 @@ export declare type BryntumColorFieldProps = {
|
|
|
84
84
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
85
85
|
*/
|
|
86
86
|
centered ? : Boolean
|
|
87
|
+
/**
|
|
88
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
89
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
90
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
91
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/ColorField#config-checkValidity)
|
|
92
|
+
* @param {Core.widget.Field} field The field being validated
|
|
93
|
+
* @returns {void}
|
|
94
|
+
*/
|
|
95
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
87
96
|
/**
|
|
88
97
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
89
98
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -104,6 +104,15 @@ defineProps<{
|
|
|
104
104
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
105
105
|
*/
|
|
106
106
|
centered ? : Boolean
|
|
107
|
+
/**
|
|
108
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
109
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
110
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
111
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-checkValidity)
|
|
112
|
+
* @param {Core.widget.Field} field The field being validated
|
|
113
|
+
* @returns {void}
|
|
114
|
+
*/
|
|
115
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
107
116
|
/**
|
|
108
117
|
* A config object to configure the [ChipView](https://bryntum.com/products/core/docs/api/Core/widget/ChipView) to display the
|
|
109
118
|
* selected value set when [multiSelect](https://bryntum.com/products/core/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -815,7 +824,7 @@ const emit = defineEmits<{
|
|
|
815
824
|
* @param {object} params.event Event object
|
|
816
825
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
817
826
|
*/
|
|
818
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
827
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
819
828
|
/**
|
|
820
829
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
821
830
|
* @param {string} e Event name
|
|
@@ -1003,6 +1012,7 @@ const widgetData = {
|
|
|
1003
1012
|
'cacheLastResult',
|
|
1004
1013
|
'caseSensitive',
|
|
1005
1014
|
'centered',
|
|
1015
|
+
'checkValidity',
|
|
1006
1016
|
'chipView',
|
|
1007
1017
|
'clearable',
|
|
1008
1018
|
'clearTextOnPickerHide',
|
|
@@ -89,6 +89,15 @@ export declare type BryntumComboProps = {
|
|
|
89
89
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
90
90
|
*/
|
|
91
91
|
centered ? : Boolean
|
|
92
|
+
/**
|
|
93
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
94
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
95
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
96
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-checkValidity)
|
|
97
|
+
* @param {Core.widget.Field} field The field being validated
|
|
98
|
+
* @returns {void}
|
|
99
|
+
*/
|
|
100
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
92
101
|
/**
|
|
93
102
|
* A config object to configure the [ChipView](https://bryntum.com/products/core/docs/api/Core/widget/ChipView) to display the
|
|
94
103
|
* selected value set when [multiSelect](https://bryntum.com/products/core/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -547,7 +547,7 @@ const emit = defineEmits<{
|
|
|
547
547
|
* @param {object} params.event Event object
|
|
548
548
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
549
549
|
*/
|
|
550
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
550
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
551
551
|
/**
|
|
552
552
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
553
553
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -95,6 +95,15 @@ defineProps<{
|
|
|
95
95
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
96
96
|
*/
|
|
97
97
|
centered ? : Boolean
|
|
98
|
+
/**
|
|
99
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
100
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
101
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
102
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-checkValidity)
|
|
103
|
+
* @param {Core.widget.Field} field The field being validated
|
|
104
|
+
* @returns {void}
|
|
105
|
+
*/
|
|
106
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
98
107
|
/**
|
|
99
108
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
100
109
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -700,7 +709,7 @@ const emit = defineEmits<{
|
|
|
700
709
|
* @param {object} params.event Event object
|
|
701
710
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
702
711
|
*/
|
|
703
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
712
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
704
713
|
/**
|
|
705
714
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
706
715
|
* @param {string} e Event name
|
|
@@ -874,6 +883,7 @@ const widgetData = {
|
|
|
874
883
|
'autoSelect',
|
|
875
884
|
'bubbleEvents',
|
|
876
885
|
'centered',
|
|
886
|
+
'checkValidity',
|
|
877
887
|
'clearable',
|
|
878
888
|
'color',
|
|
879
889
|
'config',
|
|
@@ -80,6 +80,15 @@ export declare type BryntumDateFieldProps = {
|
|
|
80
80
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
81
81
|
*/
|
|
82
82
|
centered ? : Boolean
|
|
83
|
+
/**
|
|
84
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
85
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
86
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
87
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateField#config-checkValidity)
|
|
88
|
+
* @param {Core.widget.Field} field The field being validated
|
|
89
|
+
* @returns {void}
|
|
90
|
+
*/
|
|
91
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
83
92
|
/**
|
|
84
93
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
85
94
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -854,7 +854,7 @@ const emit = defineEmits<{
|
|
|
854
854
|
* @param {object} params.event Event object
|
|
855
855
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
856
856
|
*/
|
|
857
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
857
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
858
858
|
/**
|
|
859
859
|
* Fires before this CalendarPanel refreshes in response to changes in its month.
|
|
860
860
|
* @param {string} e Event name
|
|
@@ -888,7 +888,7 @@ const emit = defineEmits<{
|
|
|
888
888
|
* @param {object} params.event Event object
|
|
889
889
|
* @param {any} params.event.state State object config
|
|
890
890
|
*/
|
|
891
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
891
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
892
892
|
/**
|
|
893
893
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
894
894
|
* @param {string} e Event name
|
|
@@ -896,7 +896,7 @@ const emit = defineEmits<{
|
|
|
896
896
|
* @param {object} params.event Event object
|
|
897
897
|
* @param {any} params.event.state State object config
|
|
898
898
|
*/
|
|
899
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
899
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
900
900
|
/**
|
|
901
901
|
* Fires when any other event is fired from the object.
|
|
902
902
|
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DatePicker#event-catchAll)
|
|
@@ -95,6 +95,15 @@ defineProps<{
|
|
|
95
95
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
96
96
|
*/
|
|
97
97
|
centered ? : Boolean
|
|
98
|
+
/**
|
|
99
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
100
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
101
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
102
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateRangeField#config-checkValidity)
|
|
103
|
+
* @param {Core.widget.Field} field The field being validated
|
|
104
|
+
* @returns {void}
|
|
105
|
+
*/
|
|
106
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
98
107
|
/**
|
|
99
108
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
100
109
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -688,7 +697,7 @@ const emit = defineEmits<{
|
|
|
688
697
|
* @param {object} params.event Event object
|
|
689
698
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
690
699
|
*/
|
|
691
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
700
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
692
701
|
/**
|
|
693
702
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
694
703
|
* @param {string} e Event name
|
|
@@ -862,6 +871,7 @@ const widgetData = {
|
|
|
862
871
|
'autoSelect',
|
|
863
872
|
'bubbleEvents',
|
|
864
873
|
'centered',
|
|
874
|
+
'checkValidity',
|
|
865
875
|
'clearable',
|
|
866
876
|
'color',
|
|
867
877
|
'config',
|
|
@@ -80,6 +80,15 @@ export declare type BryntumDateRangeFieldProps = {
|
|
|
80
80
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
81
81
|
*/
|
|
82
82
|
centered ? : Boolean
|
|
83
|
+
/**
|
|
84
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
85
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
86
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
87
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateRangeField#config-checkValidity)
|
|
88
|
+
* @param {Core.widget.Field} field The field being validated
|
|
89
|
+
* @returns {void}
|
|
90
|
+
*/
|
|
91
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
83
92
|
/**
|
|
84
93
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
85
94
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -86,6 +86,15 @@ defineProps<{
|
|
|
86
86
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
87
87
|
*/
|
|
88
88
|
centered ? : Boolean
|
|
89
|
+
/**
|
|
90
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
91
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
92
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
93
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateTimeField#config-checkValidity)
|
|
94
|
+
* @param {Core.widget.Field} field The field being validated
|
|
95
|
+
* @returns {void}
|
|
96
|
+
*/
|
|
97
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
89
98
|
/**
|
|
90
99
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
91
100
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -597,7 +606,7 @@ const emit = defineEmits<{
|
|
|
597
606
|
* @param {object} params.event Event object
|
|
598
607
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
599
608
|
*/
|
|
600
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
609
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
601
610
|
/**
|
|
602
611
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
603
612
|
* @param {string} e Event name
|
|
@@ -769,6 +778,7 @@ const widgetData = {
|
|
|
769
778
|
'autoSelect',
|
|
770
779
|
'bubbleEvents',
|
|
771
780
|
'centered',
|
|
781
|
+
'checkValidity',
|
|
772
782
|
'clearable',
|
|
773
783
|
'color',
|
|
774
784
|
'config',
|
|
@@ -71,6 +71,15 @@ export declare type BryntumDateTimeFieldProps = {
|
|
|
71
71
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
72
72
|
*/
|
|
73
73
|
centered ? : Boolean
|
|
74
|
+
/**
|
|
75
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
76
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
77
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
78
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DateTimeField#config-checkValidity)
|
|
79
|
+
* @param {Core.widget.Field} field The field being validated
|
|
80
|
+
* @returns {void}
|
|
81
|
+
*/
|
|
82
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
74
83
|
/**
|
|
75
84
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
76
85
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -690,7 +690,7 @@ const emit = defineEmits<{
|
|
|
690
690
|
* @param {object} params.event Event object
|
|
691
691
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
692
692
|
*/
|
|
693
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
693
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
694
694
|
/**
|
|
695
695
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
696
696
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -716,7 +716,7 @@ const emit = defineEmits<{
|
|
|
716
716
|
* @param {object} params.event Event object
|
|
717
717
|
* @param {any} params.event.state State object config
|
|
718
718
|
*/
|
|
719
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
719
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
720
720
|
/**
|
|
721
721
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
722
722
|
* @param {string} e Event name
|
|
@@ -724,7 +724,7 @@ const emit = defineEmits<{
|
|
|
724
724
|
* @param {object} params.event Event object
|
|
725
725
|
* @param {any} params.event.state State object config
|
|
726
726
|
*/
|
|
727
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
727
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
728
728
|
/**
|
|
729
729
|
* Fires when any other event is fired from the object.
|
|
730
730
|
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DemoCodeEditor#event-catchAll)
|
|
@@ -91,6 +91,15 @@ defineProps<{
|
|
|
91
91
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
92
92
|
*/
|
|
93
93
|
centered ? : Boolean
|
|
94
|
+
/**
|
|
95
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
96
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
97
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
98
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DisplayField#config-checkValidity)
|
|
99
|
+
* @param {Core.widget.Field} field The field being validated
|
|
100
|
+
* @returns {void}
|
|
101
|
+
*/
|
|
102
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
94
103
|
/**
|
|
95
104
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
96
105
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -628,7 +637,7 @@ const emit = defineEmits<{
|
|
|
628
637
|
* @param {object} params.event Event object
|
|
629
638
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
630
639
|
*/
|
|
631
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
640
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
632
641
|
/**
|
|
633
642
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
634
643
|
* @param {string} e Event name
|
|
@@ -801,6 +810,7 @@ const widgetData = {
|
|
|
801
810
|
'autoSelect',
|
|
802
811
|
'bubbleEvents',
|
|
803
812
|
'centered',
|
|
813
|
+
'checkValidity',
|
|
804
814
|
'clearable',
|
|
805
815
|
'color',
|
|
806
816
|
'config',
|
|
@@ -76,6 +76,15 @@ export declare type BryntumDisplayFieldProps = {
|
|
|
76
76
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
77
77
|
*/
|
|
78
78
|
centered ? : Boolean
|
|
79
|
+
/**
|
|
80
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
81
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
82
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
83
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DisplayField#config-checkValidity)
|
|
84
|
+
* @param {Core.widget.Field} field The field being validated
|
|
85
|
+
* @returns {void}
|
|
86
|
+
*/
|
|
87
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
79
88
|
/**
|
|
80
89
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
81
90
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -100,6 +100,15 @@ defineProps<{
|
|
|
100
100
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
101
101
|
*/
|
|
102
102
|
centered ? : Boolean
|
|
103
|
+
/**
|
|
104
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
105
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-isValid)
|
|
106
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-required) check.
|
|
107
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/DurationField#config-checkValidity)
|
|
108
|
+
* @param {Core.widget.Field} field The field being validated
|
|
109
|
+
* @returns {void}
|
|
110
|
+
*/
|
|
111
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
103
112
|
/**
|
|
104
113
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
105
114
|
* in the [triggers](https://bryntum.com/products/core/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -676,7 +685,7 @@ const emit = defineEmits<{
|
|
|
676
685
|
* @param {object} params.event Event object
|
|
677
686
|
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
678
687
|
*/
|
|
679
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
688
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
680
689
|
/**
|
|
681
690
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
682
691
|
* @param {string} e Event name
|
|
@@ -849,6 +858,7 @@ const widgetData = {
|
|
|
849
858
|
'autoSelect',
|
|
850
859
|
'bubbleEvents',
|
|
851
860
|
'centered',
|
|
861
|
+
'checkValidity',
|
|
852
862
|
'clearable',
|
|
853
863
|
'color',
|
|
854
864
|
'config',
|