@bryntum/core-react-thin 7.2.4 → 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/BryntumBooleanCombo.d.ts +262 -0
- package/lib/BryntumBooleanCombo.js +205 -0
- package/lib/BryntumBooleanCombo.js.map +1 -0
- package/lib/BryntumButton.d.ts +9 -17
- package/lib/BryntumButton.js +1 -2
- package/lib/BryntumButton.js.map +1 -1
- package/lib/BryntumButtonGroup.d.ts +9 -16
- package/lib/BryntumButtonGroup.js +2 -5
- package/lib/BryntumButtonGroup.js.map +1 -1
- package/lib/BryntumChatPanel.d.ts +19 -23
- package/lib/BryntumChatPanel.js +7 -6
- package/lib/BryntumChatPanel.js.map +1 -1
- package/lib/BryntumCheckbox.d.ts +10 -17
- package/lib/BryntumCheckbox.js +2 -2
- package/lib/BryntumCheckbox.js.map +1 -1
- package/lib/BryntumCheckboxGroup.d.ts +12 -24
- package/lib/BryntumCheckboxGroup.js +2 -6
- package/lib/BryntumCheckboxGroup.js.map +1 -1
- package/lib/BryntumChipView.d.ts +8 -16
- package/lib/BryntumChipView.js +1 -2
- package/lib/BryntumChipView.js.map +1 -1
- package/lib/BryntumCodeEditor.d.ts +12 -23
- package/lib/BryntumCodeEditor.js +2 -5
- package/lib/BryntumCodeEditor.js.map +1 -1
- package/lib/BryntumColorField.d.ts +9 -16
- package/lib/BryntumColorField.js +2 -2
- package/lib/BryntumColorField.js.map +1 -1
- package/lib/BryntumCombo.d.ts +12 -19
- package/lib/BryntumCombo.js +2 -2
- package/lib/BryntumCombo.js.map +1 -1
- package/lib/BryntumContainer.d.ts +8 -15
- package/lib/BryntumContainer.js +2 -5
- package/lib/BryntumContainer.js.map +1 -1
- package/lib/BryntumDateField.d.ts +9 -16
- package/lib/BryntumDateField.js +2 -2
- package/lib/BryntumDateField.js.map +1 -1
- package/lib/BryntumDatePicker.d.ts +12 -23
- package/lib/BryntumDatePicker.js +2 -5
- package/lib/BryntumDatePicker.js.map +1 -1
- package/lib/BryntumDateRangeField.d.ts +12 -19
- package/lib/BryntumDateRangeField.js +2 -2
- package/lib/BryntumDateRangeField.js.map +1 -1
- package/lib/BryntumDateTimeField.d.ts +9 -16
- package/lib/BryntumDateTimeField.js +2 -2
- package/lib/BryntumDateTimeField.js.map +1 -1
- package/lib/BryntumDemoCodeEditor.d.ts +12 -23
- package/lib/BryntumDemoCodeEditor.js +2 -5
- package/lib/BryntumDemoCodeEditor.js.map +1 -1
- package/lib/BryntumDisplayField.d.ts +9 -16
- package/lib/BryntumDisplayField.js +2 -2
- package/lib/BryntumDisplayField.js.map +1 -1
- package/lib/BryntumDurationField.d.ts +9 -16
- package/lib/BryntumDurationField.js +2 -2
- package/lib/BryntumDurationField.js.map +1 -1
- package/lib/BryntumEditor.d.ts +14 -24
- package/lib/BryntumEditor.js +2 -5
- package/lib/BryntumEditor.js.map +1 -1
- package/lib/BryntumFieldFilterPicker.d.ts +8 -15
- package/lib/BryntumFieldFilterPicker.js +2 -5
- package/lib/BryntumFieldFilterPicker.js.map +1 -1
- package/lib/BryntumFieldFilterPickerGroup.d.ts +9 -16
- package/lib/BryntumFieldFilterPickerGroup.js +2 -5
- package/lib/BryntumFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumFieldSet.d.ts +12 -24
- package/lib/BryntumFieldSet.js +2 -6
- package/lib/BryntumFieldSet.js.map +1 -1
- package/lib/BryntumFileField.d.ts +9 -16
- package/lib/BryntumFileField.js +2 -2
- package/lib/BryntumFileField.js.map +1 -1
- package/lib/BryntumFilePicker.d.ts +8 -15
- package/lib/BryntumFilePicker.js +2 -5
- package/lib/BryntumFilePicker.js.map +1 -1
- package/lib/BryntumFilterField.d.ts +9 -16
- package/lib/BryntumFilterField.js +2 -2
- package/lib/BryntumFilterField.js.map +1 -1
- package/lib/BryntumHint.d.ts +24 -33
- package/lib/BryntumHint.js +2 -5
- package/lib/BryntumHint.js.map +1 -1
- package/lib/BryntumLabel.d.ts +7 -15
- package/lib/BryntumLabel.js +1 -2
- package/lib/BryntumLabel.js.map +1 -1
- package/lib/BryntumList.d.ts +8 -16
- package/lib/BryntumList.js +1 -2
- package/lib/BryntumList.js.map +1 -1
- package/lib/BryntumMenu.d.ts +23 -28
- package/lib/BryntumMenu.js +2 -6
- package/lib/BryntumMenu.js.map +1 -1
- package/lib/BryntumMonthPicker.d.ts +12 -23
- package/lib/BryntumMonthPicker.js +2 -5
- package/lib/BryntumMonthPicker.js.map +1 -1
- package/lib/BryntumNumberField.d.ts +9 -16
- package/lib/BryntumNumberField.js +2 -2
- package/lib/BryntumNumberField.js.map +1 -1
- package/lib/BryntumPagingToolbar.d.ts +12 -19
- package/lib/BryntumPagingToolbar.js +2 -5
- package/lib/BryntumPagingToolbar.js.map +1 -1
- package/lib/BryntumPanel.d.ts +12 -23
- package/lib/BryntumPanel.js +2 -5
- package/lib/BryntumPanel.js.map +1 -1
- package/lib/BryntumPasswordField.d.ts +9 -16
- package/lib/BryntumPasswordField.js +2 -2
- package/lib/BryntumPasswordField.js.map +1 -1
- package/lib/BryntumProgressBar.d.ts +7 -15
- package/lib/BryntumProgressBar.js +1 -2
- package/lib/BryntumProgressBar.js.map +1 -1
- package/lib/BryntumRadio.d.ts +10 -17
- package/lib/BryntumRadio.js +2 -2
- package/lib/BryntumRadio.js.map +1 -1
- package/lib/BryntumRadioGroup.d.ts +12 -24
- package/lib/BryntumRadioGroup.js +2 -6
- package/lib/BryntumRadioGroup.js.map +1 -1
- package/lib/BryntumSlideToggle.d.ts +10 -17
- package/lib/BryntumSlideToggle.js +2 -2
- package/lib/BryntumSlideToggle.js.map +1 -1
- package/lib/BryntumSlider.d.ts +8 -15
- package/lib/BryntumSlider.js +2 -2
- package/lib/BryntumSlider.js.map +1 -1
- package/lib/BryntumSplitter.d.ts +7 -15
- package/lib/BryntumSplitter.js +1 -2
- package/lib/BryntumSplitter.js.map +1 -1
- package/lib/BryntumTabPanel.d.ts +13 -24
- package/lib/BryntumTabPanel.js +2 -5
- package/lib/BryntumTabPanel.js.map +1 -1
- package/lib/BryntumTextAreaField.d.ts +10 -16
- package/lib/BryntumTextAreaField.js +3 -2
- package/lib/BryntumTextAreaField.js.map +1 -1
- package/lib/BryntumTextAreaPickerField.d.ts +10 -17
- package/lib/BryntumTextAreaPickerField.js +2 -2
- package/lib/BryntumTextAreaPickerField.js.map +1 -1
- package/lib/BryntumTextField.d.ts +9 -16
- package/lib/BryntumTextField.js +2 -2
- package/lib/BryntumTextField.js.map +1 -1
- package/lib/BryntumTimeField.d.ts +10 -17
- package/lib/BryntumTimeField.js +2 -2
- package/lib/BryntumTimeField.js.map +1 -1
- package/lib/BryntumTimePicker.d.ts +8 -15
- package/lib/BryntumTimePicker.js +2 -5
- package/lib/BryntumTimePicker.js.map +1 -1
- package/lib/BryntumToolbar.d.ts +12 -19
- package/lib/BryntumToolbar.js +2 -5
- package/lib/BryntumToolbar.js.map +1 -1
- package/lib/BryntumWidget.d.ts +7 -15
- package/lib/BryntumWidget.js +1 -2
- package/lib/BryntumWidget.js.map +1 -1
- package/lib/BryntumYearPicker.d.ts +12 -23
- package/lib/BryntumYearPicker.js +2 -5
- package/lib/BryntumYearPicker.js.map +1 -1
- package/lib/WrapperHelper.js +2 -2
- package/lib/WrapperHelper.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumBooleanCombo.tsx +1190 -0
- package/src/BryntumButton.tsx +72 -118
- package/src/BryntumButtonGroup.tsx +79 -124
- package/src/BryntumChatPanel.tsx +142 -172
- package/src/BryntumCheckbox.tsx +85 -119
- package/src/BryntumCheckboxGroup.tsx +112 -182
- package/src/BryntumChipView.tsx +67 -107
- package/src/BryntumCodeEditor.tsx +109 -170
- package/src/BryntumColorField.tsx +84 -118
- package/src/BryntumCombo.tsx +103 -153
- package/src/BryntumContainer.tsx +79 -125
- package/src/BryntumDateField.tsx +91 -124
- package/src/BryntumDatePicker.tsx +122 -196
- package/src/BryntumDateRangeField.tsx +90 -127
- package/src/BryntumDateTimeField.tsx +84 -118
- package/src/BryntumDemoCodeEditor.tsx +109 -170
- package/src/BryntumDisplayField.tsx +85 -120
- package/src/BryntumDurationField.tsx +91 -126
- package/src/BryntumEditor.tsx +95 -145
- package/src/BryntumFieldFilterPicker.tsx +81 -129
- package/src/BryntumFieldFilterPickerGroup.tsx +84 -134
- package/src/BryntumFieldSet.tsx +108 -175
- package/src/BryntumFileField.tsx +84 -118
- package/src/BryntumFilePicker.tsx +79 -125
- package/src/BryntumFilterField.tsx +87 -124
- package/src/BryntumHint.tsx +136 -193
- package/src/BryntumLabel.tsx +60 -96
- package/src/BryntumList.tsx +64 -103
- package/src/BryntumMenu.tsx +131 -191
- package/src/BryntumMonthPicker.tsx +109 -170
- package/src/BryntumNumberField.tsx +88 -122
- package/src/BryntumPagingToolbar.tsx +84 -131
- package/src/BryntumPanel.tsx +109 -170
- package/src/BryntumPasswordField.tsx +84 -118
- package/src/BryntumProgressBar.tsx +59 -94
- package/src/BryntumRadio.tsx +85 -119
- package/src/BryntumRadioGroup.tsx +112 -181
- package/src/BryntumSlideToggle.tsx +85 -119
- package/src/BryntumSlider.tsx +68 -102
- package/src/BryntumSplitter.tsx +62 -100
- package/src/BryntumTabPanel.tsx +111 -173
- package/src/BryntumTextAreaField.tsx +92 -120
- package/src/BryntumTextAreaPickerField.tsx +86 -121
- package/src/BryntumTextField.tsx +85 -120
- package/src/BryntumTimeField.tsx +90 -121
- package/src/BryntumTimePicker.tsx +79 -125
- package/src/BryntumToolbar.tsx +84 -131
- package/src/BryntumWidget.tsx +60 -96
- package/src/BryntumYearPicker.tsx +110 -172
- package/src/WrapperHelper.tsx +2 -2
- package/src/index.ts +1 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, CodeEditor, CodeEditorListeners, Color, Container, CoreContainerItemConfig, CoreContainerLayoutConfig, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, Scroller, ScrollerConfig, StateProvider, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, CodeEditor, CodeEditorListeners, Color, Container, CoreContainerItemConfig, CoreContainerLayoutConfig, DomConfig, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ReactJSX, Rectangle, Scroller, ScrollerConfig, StateProvider, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -12,14 +12,12 @@ export type BryntumCodeEditorProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
14
14
|
* content will be placed inside this element.
|
|
15
|
-
* ...
|
|
16
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-adopt)
|
|
15
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-adopt)
|
|
17
16
|
*/
|
|
18
17
|
adopt? : HTMLElement|string
|
|
19
18
|
/**
|
|
20
19
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
21
|
-
* ...
|
|
22
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-align)
|
|
20
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-align)
|
|
23
21
|
*/
|
|
24
22
|
align? : AlignSpec|string
|
|
25
23
|
/**
|
|
@@ -41,15 +39,13 @@ export type BryntumCodeEditorProps = {
|
|
|
41
39
|
/**
|
|
42
40
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
43
41
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
44
|
-
* ...
|
|
45
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ariaDescription)
|
|
42
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ariaDescription)
|
|
46
43
|
*/
|
|
47
44
|
ariaDescription? : string
|
|
48
45
|
/**
|
|
49
46
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
50
47
|
* the `aria-label` attribute.
|
|
51
|
-
* ...
|
|
52
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ariaLabel)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ariaLabel)
|
|
53
49
|
*/
|
|
54
50
|
ariaLabel? : string
|
|
55
51
|
/**
|
|
@@ -59,14 +55,12 @@ export type BryntumCodeEditorProps = {
|
|
|
59
55
|
/**
|
|
60
56
|
* A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/core/docs/api/Core/widget/Toolbar),
|
|
61
57
|
* or array of config objects representing the child items of a Toolbar. Another way to add a bbar is to use [strips](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips).
|
|
62
|
-
* ...
|
|
63
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bbar)
|
|
58
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bbar)
|
|
64
59
|
*/
|
|
65
60
|
bbar? : (CoreContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
|
|
66
61
|
/**
|
|
67
62
|
* Custom CSS classes to add to the panel's body element.
|
|
68
|
-
* ...
|
|
69
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bodyCls)
|
|
63
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bodyCls)
|
|
70
64
|
*/
|
|
71
65
|
bodyCls? : string|object
|
|
72
66
|
/**
|
|
@@ -76,21 +70,18 @@ export type BryntumCodeEditorProps = {
|
|
|
76
70
|
/**
|
|
77
71
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
78
72
|
* hierarchy when triggered.
|
|
79
|
-
* ...
|
|
80
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bubbleEvents)
|
|
73
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-bubbleEvents)
|
|
81
74
|
*/
|
|
82
75
|
bubbleEvents? : object
|
|
83
76
|
/**
|
|
84
77
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
85
|
-
* ...
|
|
86
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-callOnFunctions)
|
|
78
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-callOnFunctions)
|
|
87
79
|
*/
|
|
88
80
|
callOnFunctions? : boolean
|
|
89
81
|
/**
|
|
90
82
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
91
83
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
92
|
-
* ...
|
|
93
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-catchEventHandlerExceptions)
|
|
84
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-catchEventHandlerExceptions)
|
|
94
85
|
*/
|
|
95
86
|
catchEventHandlerExceptions? : boolean
|
|
96
87
|
/**
|
|
@@ -102,14 +93,12 @@ export type BryntumCodeEditorProps = {
|
|
|
102
93
|
* Custom CSS classes to add to element.
|
|
103
94
|
* May be specified as a space separated string, or as an object in which property names
|
|
104
95
|
* with truthy values are used as the class names:
|
|
105
|
-
* ...
|
|
106
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-cls)
|
|
96
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-cls)
|
|
107
97
|
*/
|
|
108
98
|
cls? : string|object
|
|
109
99
|
/**
|
|
110
100
|
* The path from which to load the Monaco editor.
|
|
111
|
-
* ...
|
|
112
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-codePath)
|
|
101
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-codePath)
|
|
113
102
|
*/
|
|
114
103
|
codePath? : string
|
|
115
104
|
/**
|
|
@@ -119,15 +108,13 @@ export type BryntumCodeEditorProps = {
|
|
|
119
108
|
collapsed? : boolean
|
|
120
109
|
/**
|
|
121
110
|
* This config enables collapsibility for the panel. See [collapsed](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-collapsed).
|
|
122
|
-
* ...
|
|
123
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-collapsible)
|
|
111
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-collapsible)
|
|
124
112
|
*/
|
|
125
113
|
collapsible? : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig
|
|
126
114
|
/**
|
|
127
115
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
128
116
|
* `style` block.
|
|
129
|
-
* ...
|
|
130
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-color)
|
|
117
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-color)
|
|
131
118
|
*/
|
|
132
119
|
color? : Color
|
|
133
120
|
/**
|
|
@@ -151,8 +138,7 @@ export type BryntumCodeEditorProps = {
|
|
|
151
138
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
152
139
|
* May be specified as a space separated string, or as an object in which property names
|
|
153
140
|
* with truthy values are used as the class names:
|
|
154
|
-
* ...
|
|
155
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-contentElementCls)
|
|
141
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-contentElementCls)
|
|
156
142
|
*/
|
|
157
143
|
contentElementCls? : string|object
|
|
158
144
|
/**
|
|
@@ -172,8 +158,7 @@ export type BryntumCodeEditorProps = {
|
|
|
172
158
|
/**
|
|
173
159
|
* A [query](https://bryntum.com/products/core/docs/api/Core/widget/Container#function-query) selector function which can identify the descendant widget to which
|
|
174
160
|
* focus should be directed by default.
|
|
175
|
-
* ...
|
|
176
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-defaultFocus)
|
|
161
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-defaultFocus)
|
|
177
162
|
* @param {Core.widget.Widget} widget Widget passed to method
|
|
178
163
|
* @returns {boolean} truthy value if widget is the default one
|
|
179
164
|
*/
|
|
@@ -183,16 +168,15 @@ export type BryntumCodeEditorProps = {
|
|
|
183
168
|
*/
|
|
184
169
|
defaults? : CoreContainerItemConfig
|
|
185
170
|
/**
|
|
186
|
-
* Check for CSS compatibility issues
|
|
187
|
-
*
|
|
188
|
-
* [
|
|
171
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
172
|
+
* checks:
|
|
173
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-detectCSSCompatibilityIssues)
|
|
189
174
|
*/
|
|
190
175
|
detectCSSCompatibilityIssues? : boolean
|
|
191
176
|
/**
|
|
192
177
|
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
193
178
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
194
|
-
* ...
|
|
195
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-disabled)
|
|
179
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-disabled)
|
|
196
180
|
*/
|
|
197
181
|
disabled? : boolean|'inert'
|
|
198
182
|
/**
|
|
@@ -200,34 +184,30 @@ export type BryntumCodeEditorProps = {
|
|
|
200
184
|
* [strips collection](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
201
185
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
202
186
|
* body. Such widgets are called "edge strips".
|
|
203
|
-
* ...
|
|
204
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-dock)
|
|
187
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-dock)
|
|
205
188
|
*/
|
|
206
189
|
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
207
190
|
/**
|
|
208
191
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
209
192
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
210
193
|
* property which controls when a drag should start.
|
|
211
|
-
* ...
|
|
212
|
-
*
|
|
194
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-draggable)
|
|
195
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
213
196
|
*/
|
|
214
|
-
draggable? : boolean|
|
|
215
|
-
handleSelector?: string
|
|
216
|
-
}
|
|
197
|
+
draggable? : boolean|object
|
|
217
198
|
/**
|
|
218
199
|
* Make this Panel a docked drawer which slides out from one side of the browser viewport by default.
|
|
219
|
-
* ...
|
|
220
|
-
* [
|
|
221
|
-
* @param {
|
|
222
|
-
* @param {
|
|
223
|
-
* @param {boolean}
|
|
224
|
-
* @param {boolean,
|
|
225
|
-
* @param {boolean,string} autoClose.
|
|
226
|
-
* @param {
|
|
227
|
-
* @param {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
drawer? : boolean|{side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose: { mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number}
|
|
200
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-drawer)
|
|
201
|
+
* @param {'start','left','end','right','top','bottom'} [side] The side of the viewport to dock the drawer to. * `'start'` means the `inline-start` side. * `'end'` means the `inline-end` side.
|
|
202
|
+
* @param {string,number} [size] The size of the drawer in its collapsible axis.
|
|
203
|
+
* @param {boolean} [inline] If using the [appendTo](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-appendTo) config to place the drawer inside a host widget, this may be set to `true` to make the drawer inline within that host. Note that, if using this, the layout of the host element must have `flex-direction` set appropriately.
|
|
204
|
+
* @param {boolean,object} [autoClose] Specifies what user actions should automatically close the drawer. Defaults to closing when the user clicks outside of the drawer or when focus moves outside of the drawer.
|
|
205
|
+
* @param {boolean,string} [autoClose.mousedown] If the user clicks outside of the drawer, the drawer will automatically be hidden. If the value is a string, it is used as a CSS selector to filter clicks which should close the drawer.
|
|
206
|
+
* @param {boolean,string} [autoClose.focusout] If focus moves outside of the drawer, the drawer will automatically be hidden.
|
|
207
|
+
* @param {string} [autoClose.mouseout] Hides the drawer when the mouse leaves the drawer after the `autoCloseDelay` period.
|
|
208
|
+
* @param {number} [autoCloseDelay] When using `mouseout`, this is the delay in milliseconds
|
|
209
|
+
*/
|
|
210
|
+
drawer? : boolean|{ side?: 'start'|'left'|'end'|'right'|'top'|'bottom', size?: string|number, inline?: boolean, autoClose?: boolean|{ mousedown?: boolean|string, focusout?: boolean|string, mouseout?: string }, autoCloseDelay?: number }
|
|
231
211
|
/**
|
|
232
212
|
* An editor configuration object to be passed to https://microsoft.github.io/monaco-editor/docs.html#functions/editor.create.html
|
|
233
213
|
*/
|
|
@@ -235,8 +215,7 @@ export type BryntumCodeEditorProps = {
|
|
|
235
215
|
/**
|
|
236
216
|
* An object specifying attributes to assign to the root element of this widget.
|
|
237
217
|
* Set `null` value to attribute to remove it.
|
|
238
|
-
* ...
|
|
239
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-elementAttributes)
|
|
218
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-elementAttributes)
|
|
240
219
|
*/
|
|
241
220
|
elementAttributes? : Record<string, string|null>
|
|
242
221
|
extraData? : any
|
|
@@ -256,18 +235,15 @@ export type BryntumCodeEditorProps = {
|
|
|
256
235
|
/**
|
|
257
236
|
* Config object of a footer. May contain a `dock`, `html` and a `cls` property. A footer is not a widget,
|
|
258
237
|
* but rather plain HTML that follows the last element of the panel's body and [strips](https://bryntum.com/products/core/docs/api/Core/widget/Panel#config-strips).
|
|
259
|
-
* ...
|
|
260
|
-
*
|
|
238
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-footer)
|
|
239
|
+
* @property {'top','right','bottom','left','start','end'} dock Where to dock
|
|
240
|
+
* @property {string} html Html to populate the footer with
|
|
241
|
+
* @property {string} cls CSS class to add to the footer
|
|
261
242
|
*/
|
|
262
|
-
footer? :
|
|
263
|
-
dock?: 'top'|'right'|'bottom'|'left'|'start'|'end'
|
|
264
|
-
html?: string
|
|
265
|
-
cls?: string
|
|
266
|
-
}|string
|
|
243
|
+
footer? : object|string
|
|
267
244
|
/**
|
|
268
245
|
* A config [object](https://bryntum.com/products/core/docs/api/Core/widget/Panel#typedef-PanelHeader) for the panel's header or a string in place of a `title`.
|
|
269
|
-
* ...
|
|
270
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-header)
|
|
246
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-header)
|
|
271
247
|
*/
|
|
272
248
|
header? : string|boolean|PanelHeader
|
|
273
249
|
/**
|
|
@@ -282,25 +258,21 @@ export type BryntumCodeEditorProps = {
|
|
|
282
258
|
hidden? : boolean
|
|
283
259
|
/**
|
|
284
260
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
285
|
-
* ...
|
|
286
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-hideAnimation)
|
|
261
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-hideAnimation)
|
|
287
262
|
*/
|
|
288
263
|
hideAnimation? : boolean|object
|
|
289
264
|
/**
|
|
290
265
|
* Specify `true` to make this container hide when it has no visible children (Either empty
|
|
291
266
|
* or all children hidden).
|
|
292
|
-
* ...
|
|
293
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-hideWhenEmpty)
|
|
267
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-hideWhenEmpty)
|
|
294
268
|
*/
|
|
295
269
|
hideWhenEmpty? : boolean
|
|
296
270
|
/**
|
|
297
271
|
* The HTML to display initially or a function returning the markup (called at widget construction time).
|
|
298
|
-
* ...
|
|
299
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-html)
|
|
272
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-html)
|
|
300
273
|
* @param {Core.widget.Widget} widget The calling Widget
|
|
301
|
-
* @returns {string}
|
|
302
274
|
*/
|
|
303
|
-
html? : string|((widget: Widget) =>
|
|
275
|
+
html? : string|((widget: Widget) => void)|DomConfig|DomConfig[]|VueConfig|ReactJSX
|
|
304
276
|
/**
|
|
305
277
|
* The CSS class(es) to add when HTML content is being applied to this widget.
|
|
306
278
|
*/
|
|
@@ -316,16 +288,14 @@ export type BryntumCodeEditorProps = {
|
|
|
316
288
|
id? : string
|
|
317
289
|
/**
|
|
318
290
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
319
|
-
* ...
|
|
320
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ignoreParentReadOnly)
|
|
291
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ignoreParentReadOnly)
|
|
321
292
|
*/
|
|
322
293
|
ignoreParentReadOnly? : boolean
|
|
323
294
|
/**
|
|
324
295
|
* Convenience setting to align input fields of child widgets. By default, the Field input element is
|
|
325
296
|
* placed immediately following the `label`. If you prefer to have all input fields aligned to the
|
|
326
297
|
* right, set this config to `'end'`.
|
|
327
|
-
* ...
|
|
328
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-inputFieldAlign)
|
|
298
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-inputFieldAlign)
|
|
329
299
|
*/
|
|
330
300
|
inputFieldAlign? : 'start'|'end'
|
|
331
301
|
/**
|
|
@@ -343,59 +313,56 @@ export type BryntumCodeEditorProps = {
|
|
|
343
313
|
/**
|
|
344
314
|
* An object containing typed child widget config objects or Widgets. May also be specified
|
|
345
315
|
* as an array.
|
|
346
|
-
* ...
|
|
347
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-items)
|
|
316
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-items)
|
|
348
317
|
*/
|
|
349
318
|
items? : Record<string, CoreContainerItemConfig|MenuItemEntry>|(CoreContainerItemConfig|MenuItemEntry|Widget)[]
|
|
350
319
|
/**
|
|
351
320
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
352
321
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
353
322
|
* are the name of the instance method to call when the keystroke is received.
|
|
354
|
-
* ...
|
|
355
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-keyMap)
|
|
323
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-keyMap)
|
|
356
324
|
*/
|
|
357
325
|
keyMap? : Record<string, KeyMapConfig>
|
|
358
326
|
/**
|
|
359
327
|
* Convenience setting to use same label placement on all child widgets.
|
|
360
|
-
* ...
|
|
361
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-labelPosition)
|
|
328
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-labelPosition)
|
|
362
329
|
*/
|
|
363
330
|
labelPosition? : 'before'|'above'|'align-before'|'auto'|null
|
|
331
|
+
/**
|
|
332
|
+
* Sets `labelWidth´ for all children of this Container, that does not define their own `labelWidth`.
|
|
333
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-labelWidth)
|
|
334
|
+
*/
|
|
335
|
+
labelWidth? : number|null
|
|
364
336
|
/**
|
|
365
337
|
* The language being edited may be set and read using this property.
|
|
366
338
|
*/
|
|
367
339
|
language? : string
|
|
368
340
|
/**
|
|
369
341
|
* The short name of a helper class which manages rendering and styling of child items.
|
|
370
|
-
* ...
|
|
371
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-layout)
|
|
342
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-layout)
|
|
372
343
|
*/
|
|
373
344
|
layout? : string|CoreContainerLayoutConfig
|
|
374
345
|
/**
|
|
375
346
|
* The CSS style properties to apply to the [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
376
|
-
* ...
|
|
377
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-layoutStyle)
|
|
347
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-layoutStyle)
|
|
378
348
|
*/
|
|
379
349
|
layoutStyle? : object
|
|
380
350
|
/**
|
|
381
351
|
* An array of [child item](https://bryntum.com/products/core/docs/api/Core/widget/Container#config-items) *config objects* which is to be converted into
|
|
382
352
|
* instances only when this Container is rendered, rather than eagerly at construct time.
|
|
383
|
-
* ...
|
|
384
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-lazyItems)
|
|
353
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-lazyItems)
|
|
385
354
|
*/
|
|
386
355
|
lazyItems? : Record<string, CoreContainerItemConfig>|CoreContainerItemConfig[]|Widget[]
|
|
387
356
|
/**
|
|
388
357
|
* The listener set for this object.
|
|
389
|
-
* ...
|
|
390
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-listeners)
|
|
358
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-listeners)
|
|
391
359
|
*/
|
|
392
360
|
listeners? : CodeEditorListeners
|
|
393
361
|
/**
|
|
394
362
|
* A class translations of which are used for translating this entity.
|
|
395
363
|
* This is often used when translations of an item are defined on its container class.
|
|
396
364
|
* For example:
|
|
397
|
-
* ...
|
|
398
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-localeClass)
|
|
365
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-localeClass)
|
|
399
366
|
*/
|
|
400
367
|
localeClass? : typeof Base
|
|
401
368
|
/**
|
|
@@ -407,8 +374,7 @@ export type BryntumCodeEditorProps = {
|
|
|
407
374
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
408
375
|
* you could use 'localeKey' meta configuration.
|
|
409
376
|
* Example:
|
|
410
|
-
* ...
|
|
411
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-localizableProperties)
|
|
377
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-localizableProperties)
|
|
412
378
|
*/
|
|
413
379
|
localizableProperties? : string[]
|
|
414
380
|
/**
|
|
@@ -434,8 +400,7 @@ export type BryntumCodeEditorProps = {
|
|
|
434
400
|
maxHeight? : string|number
|
|
435
401
|
/**
|
|
436
402
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
437
|
-
* ...
|
|
438
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-maximizeOnMobile)
|
|
403
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-maximizeOnMobile)
|
|
439
404
|
*/
|
|
440
405
|
maximizeOnMobile? : number|string
|
|
441
406
|
/**
|
|
@@ -457,26 +422,22 @@ export type BryntumCodeEditorProps = {
|
|
|
457
422
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
458
423
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
459
424
|
* layout.
|
|
460
|
-
* ...
|
|
461
|
-
*
|
|
425
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-monitorResize)
|
|
426
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
462
427
|
*/
|
|
463
|
-
monitorResize? : boolean|
|
|
464
|
-
immediate?: boolean
|
|
465
|
-
}
|
|
428
|
+
monitorResize? : boolean|object
|
|
466
429
|
/**
|
|
467
430
|
* An object containing default config objects which may be referenced by name in the [items](https://bryntum.com/products/core/docs/api/Core/widget/Container#config-items)
|
|
468
431
|
* config. For example, a specialized [Menu](https://bryntum.com/products/core/docs/api/Core/widget/Menu) subclass may have a `namedItems` default
|
|
469
432
|
* value defined like this:
|
|
470
|
-
* ...
|
|
471
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-namedItems)
|
|
433
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-namedItems)
|
|
472
434
|
*/
|
|
473
435
|
namedItems? : Record<string, CoreContainerItemConfig>
|
|
474
436
|
/**
|
|
475
437
|
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
476
438
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
477
439
|
* widget's [contentElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-contentElement).
|
|
478
|
-
* ...
|
|
479
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-positioned)
|
|
440
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-positioned)
|
|
480
441
|
*/
|
|
481
442
|
positioned? : boolean
|
|
482
443
|
/**
|
|
@@ -491,39 +452,40 @@ export type BryntumCodeEditorProps = {
|
|
|
491
452
|
readOnly? : boolean
|
|
492
453
|
/**
|
|
493
454
|
* [Record](https://bryntum.com/products/core/docs/api/Core/data/Model) whose values will be used to populate fields in the container.
|
|
494
|
-
* ...
|
|
495
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-record)
|
|
455
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-record)
|
|
496
456
|
*/
|
|
497
457
|
record? : Model
|
|
498
458
|
relayStoreEvents? : boolean
|
|
499
459
|
/**
|
|
500
460
|
* Either a default `rendition` to apply to all child widgets, or a map of renditions keyed by child widget
|
|
501
461
|
* `type`.
|
|
502
|
-
* ...
|
|
503
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-rendition)
|
|
462
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-rendition)
|
|
504
463
|
*/
|
|
505
464
|
rendition? : string|Record<string, string>|null
|
|
506
465
|
/**
|
|
507
466
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
508
467
|
* [focusElement](https://bryntum.com/products/core/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
509
468
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
510
|
-
* ...
|
|
511
|
-
* [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
469
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ripple)
|
|
470
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
471
|
+
* @property {string} [color] A CSS color name or specification.
|
|
472
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
473
|
+
* @property {string} [clip] A string which describes how to clip the ripple if it is not to be clipped to the default element. Either the property of the widget to use as the clipping element, or a selector to allow clipping to the closest matching ancestor to the target element.
|
|
474
|
+
*/
|
|
475
|
+
ripple? : boolean|object
|
|
476
|
+
/**
|
|
477
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
478
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
479
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-role)
|
|
480
|
+
*/
|
|
481
|
+
role? : string
|
|
519
482
|
/**
|
|
520
483
|
* If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to `document.body`
|
|
521
484
|
*/
|
|
522
485
|
rootElement? : ShadowRoot|HTMLElement
|
|
523
486
|
/**
|
|
524
487
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
525
|
-
* ...
|
|
526
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-rtl)
|
|
488
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-rtl)
|
|
527
489
|
*/
|
|
528
490
|
rtl? : boolean
|
|
529
491
|
/**
|
|
@@ -531,8 +493,7 @@ export type BryntumCodeEditorProps = {
|
|
|
531
493
|
* in both axes. May be an object containing boolean `overflowX` and `overflowY` properties which are
|
|
532
494
|
* applied to CSS style properties `overflowX` and `overflowY`. If they are boolean, they are translated to
|
|
533
495
|
* CSS overflow properties thus:
|
|
534
|
-
* ...
|
|
535
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-scrollable)
|
|
496
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-scrollable)
|
|
536
497
|
*/
|
|
537
498
|
scrollable? : boolean|ScrollerConfig|Scroller
|
|
538
499
|
/**
|
|
@@ -542,8 +503,7 @@ export type BryntumCodeEditorProps = {
|
|
|
542
503
|
scrollAction? : 'hide'|'realign'|null
|
|
543
504
|
/**
|
|
544
505
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/core/docs/api/Core/widget/Widget#config-floating).*
|
|
545
|
-
* ...
|
|
546
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-showAnimation)
|
|
506
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-showAnimation)
|
|
547
507
|
*/
|
|
548
508
|
showAnimation? : boolean|object
|
|
549
509
|
/**
|
|
@@ -556,30 +516,26 @@ export type BryntumCodeEditorProps = {
|
|
|
556
516
|
span? : number
|
|
557
517
|
/**
|
|
558
518
|
* This value can be one of the following:
|
|
559
|
-
* ...
|
|
560
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateful)
|
|
519
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateful)
|
|
561
520
|
*/
|
|
562
521
|
stateful? : boolean|object|string[]
|
|
563
522
|
/**
|
|
564
523
|
* The events that, when fired by this component, should trigger it to save its state by calling
|
|
565
524
|
* [saveState](https://bryntum.com/products/core/docs/api/Core/mixin/State#function-saveState).
|
|
566
|
-
* ...
|
|
567
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-statefulEvents)
|
|
525
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-statefulEvents)
|
|
568
526
|
*/
|
|
569
527
|
statefulEvents? : object|string[]
|
|
570
528
|
/**
|
|
571
529
|
* The key to use when saving this object's state in the [stateProvider](https://bryntum.com/products/core/docs/api/Core/mixin/State#config-stateProvider). If this config is
|
|
572
530
|
* not assigned, and [stateful](https://bryntum.com/products/core/docs/api/Core/mixin/State#config-stateful) is not set to `false`, the [id](#Core/widget/Widget#config-id)
|
|
573
531
|
* (if explicitly specified) will be used as the `stateId`.
|
|
574
|
-
* ...
|
|
575
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateId)
|
|
532
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateId)
|
|
576
533
|
*/
|
|
577
534
|
stateId? : string
|
|
578
535
|
/**
|
|
579
536
|
* The `StateProvider` to use to save and restore this object's [state](https://bryntum.com/products/core/docs/api/Core/mixin/State#property-state). By default, `state`
|
|
580
537
|
* will be saved using the [default state provider](https://bryntum.com/products/core/docs/api/Core/state/StateProvider#property-instance-static).
|
|
581
|
-
* ...
|
|
582
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateProvider)
|
|
538
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-stateProvider)
|
|
583
539
|
*/
|
|
584
540
|
stateProvider? : StateProvider
|
|
585
541
|
/**
|
|
@@ -595,23 +551,20 @@ export type BryntumCodeEditorProps = {
|
|
|
595
551
|
* An object containing widgets keyed by name. By default (when no `type` is given), strips are
|
|
596
552
|
* [toolbars](https://bryntum.com/products/core/docs/api/Core/widget/Toolbar). If you want to pass an array, you can use
|
|
597
553
|
* the toolbar's [items](https://bryntum.com/products/core/docs/api/Core/widget/Container#config-items).
|
|
598
|
-
* ...
|
|
599
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-strips)
|
|
554
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-strips)
|
|
600
555
|
*/
|
|
601
556
|
strips? : Record<string, CoreContainerItemConfig>
|
|
602
557
|
/**
|
|
603
558
|
* A configuration for the [tab](https://bryntum.com/products/core/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
604
559
|
* [TabPanel](https://bryntum.com/products/core/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
605
560
|
* this widget:
|
|
606
|
-
* ...
|
|
607
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tab)
|
|
561
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tab)
|
|
608
562
|
*/
|
|
609
563
|
tab? : boolean|TabConfig
|
|
610
564
|
/**
|
|
611
565
|
* When this container is used as a tab in a TabPanel, these items are added to the
|
|
612
566
|
* [TabBar](https://bryntum.com/products/core/docs/api/Core/widget/TabBar) when this container is the active tab.
|
|
613
|
-
* ...
|
|
614
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tabBarItems)
|
|
567
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tabBarItems)
|
|
615
568
|
*/
|
|
616
569
|
tabBarItems? : ToolbarItems[]|Widget[]
|
|
617
570
|
/**
|
|
@@ -622,8 +575,7 @@ export type BryntumCodeEditorProps = {
|
|
|
622
575
|
* A Config object representing the configuration of a [Toolbar](https://bryntum.com/products/core/docs/api/Core/widget/Toolbar),
|
|
623
576
|
* or array of config objects representing the child items of a Toolbar.
|
|
624
577
|
* This creates a toolbar docked to the top of the panel immediately below the header.
|
|
625
|
-
* ...
|
|
626
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tbar)
|
|
578
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tbar)
|
|
627
579
|
*/
|
|
628
580
|
tbar? : (CoreContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null
|
|
629
581
|
/**
|
|
@@ -632,15 +584,13 @@ export type BryntumCodeEditorProps = {
|
|
|
632
584
|
text? : string
|
|
633
585
|
/**
|
|
634
586
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
635
|
-
* ...
|
|
636
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-textAlign)
|
|
587
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-textAlign)
|
|
637
588
|
*/
|
|
638
589
|
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
639
590
|
/**
|
|
640
591
|
* Specify `true` for a container used to show text markup. It will apply the CSS class `b-text-content`
|
|
641
592
|
* which specifies a default max-width that makes long text more readable.
|
|
642
|
-
* ...
|
|
643
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-textContent)
|
|
593
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-textContent)
|
|
644
594
|
*/
|
|
645
595
|
textContent? : boolean
|
|
646
596
|
/**
|
|
@@ -650,22 +600,19 @@ export type BryntumCodeEditorProps = {
|
|
|
650
600
|
/**
|
|
651
601
|
* A title to display in the header or owning TabPanel. Causes creation and docking of a header
|
|
652
602
|
* to the top if no header is configured.
|
|
653
|
-
* ...
|
|
654
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-title)
|
|
603
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-title)
|
|
655
604
|
*/
|
|
656
605
|
title? : string
|
|
657
606
|
/**
|
|
658
607
|
* The [tools](https://bryntum.com/products/core/docs/api/Core/widget/Tool) to add either before or after the `title` in the Panel header. Each
|
|
659
608
|
* property name is the reference by which an instantiated tool may be retrieved from the live
|
|
660
609
|
* `[tools](https://bryntum.com/products/core/docs/api/Core/widget/mixin/Toolable#property-tools)` property.
|
|
661
|
-
* ...
|
|
662
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tools)
|
|
610
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tools)
|
|
663
611
|
*/
|
|
664
612
|
tools? : Record<string, ToolConfig>|null
|
|
665
613
|
/**
|
|
666
614
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
667
|
-
* ...
|
|
668
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tooltip)
|
|
615
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-tooltip)
|
|
669
616
|
*/
|
|
670
617
|
tooltip? : string|TooltipConfig|null
|
|
671
618
|
/**
|
|
@@ -679,8 +626,7 @@ export type BryntumCodeEditorProps = {
|
|
|
679
626
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
680
627
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
681
628
|
* values are used as the class names.
|
|
682
|
-
* ...
|
|
683
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ui)
|
|
629
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-ui)
|
|
684
630
|
*/
|
|
685
631
|
ui? : 'plain'|'toolbar'|string|object
|
|
686
632
|
/**
|
|
@@ -696,14 +642,12 @@ export type BryntumCodeEditorProps = {
|
|
|
696
642
|
width? : string|number
|
|
697
643
|
/**
|
|
698
644
|
* The x position for the widget.
|
|
699
|
-
* ...
|
|
700
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-x)
|
|
645
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-x)
|
|
701
646
|
*/
|
|
702
647
|
x? : number
|
|
703
648
|
/**
|
|
704
649
|
* The y position for the widget.
|
|
705
|
-
* ...
|
|
706
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-y)
|
|
650
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#config-y)
|
|
707
651
|
*/
|
|
708
652
|
y? : number
|
|
709
653
|
|
|
@@ -719,7 +663,7 @@ export type BryntumCodeEditorProps = {
|
|
|
719
663
|
* @param {object} event Event object
|
|
720
664
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
721
665
|
*/
|
|
722
|
-
onBeforeHide? : ((event: { source: Widget }) =>
|
|
666
|
+
onBeforeHide? : ((event: { source: Widget }) => boolean|void)|string
|
|
723
667
|
/**
|
|
724
668
|
* Fired before this container will load record values into its child fields. This is useful if you
|
|
725
669
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
@@ -739,17 +683,16 @@ export type BryntumCodeEditorProps = {
|
|
|
739
683
|
* @param {object} event Event object
|
|
740
684
|
* @param {any} event.state State object config
|
|
741
685
|
*/
|
|
742
|
-
onBeforeStateApply? : ((event: { state: any }) =>
|
|
686
|
+
onBeforeStateApply? : ((event: { state: any }) => boolean|void)|string
|
|
743
687
|
/**
|
|
744
688
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
745
689
|
* @param {object} event Event object
|
|
746
690
|
* @param {any} event.state State object config
|
|
747
691
|
*/
|
|
748
|
-
onBeforeStateSave? : ((event: { state: any }) =>
|
|
692
|
+
onBeforeStateSave? : ((event: { state: any }) => boolean|void)|string
|
|
749
693
|
/**
|
|
750
694
|
* Fires when any other event is fired from the object.
|
|
751
|
-
* ...
|
|
752
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#event-catchAll)
|
|
695
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#event-catchAll)
|
|
753
696
|
* @param {object} event Event object
|
|
754
697
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
755
698
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -819,8 +762,7 @@ export type BryntumCodeEditorProps = {
|
|
|
819
762
|
/**
|
|
820
763
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
821
764
|
* achieves visibility.
|
|
822
|
-
* ...
|
|
823
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#event-paint)
|
|
765
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Core/widget/CodeEditor#event-paint)
|
|
824
766
|
* @param {object} event Event object
|
|
825
767
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
826
768
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -921,6 +863,7 @@ export class BryntumCodeEditor extends React.Component<BryntumCodeEditorProps> {
|
|
|
921
863
|
'preventTooltipOnTouch',
|
|
922
864
|
'relayStoreEvents',
|
|
923
865
|
'ripple',
|
|
866
|
+
'role',
|
|
924
867
|
'rootElement',
|
|
925
868
|
'scrollAction',
|
|
926
869
|
'showAnimation',
|
|
@@ -965,6 +908,7 @@ export class BryntumCodeEditor extends React.Component<BryntumCodeEditorProps> {
|
|
|
965
908
|
'items',
|
|
966
909
|
'keyMap',
|
|
967
910
|
'labelPosition',
|
|
911
|
+
'labelWidth',
|
|
968
912
|
'language',
|
|
969
913
|
'layout',
|
|
970
914
|
'layoutStyle',
|
|
@@ -1014,11 +958,6 @@ export class BryntumCodeEditor extends React.Component<BryntumCodeEditorProps> {
|
|
|
1014
958
|
];
|
|
1015
959
|
|
|
1016
960
|
static propertyNames = [
|
|
1017
|
-
'anchorSize',
|
|
1018
|
-
'focusVisible',
|
|
1019
|
-
'hasChanges',
|
|
1020
|
-
'isSettingValues',
|
|
1021
|
-
'isValid',
|
|
1022
961
|
'parent',
|
|
1023
962
|
'state',
|
|
1024
963
|
'values'
|