You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: accordion/accordion.d.ts
+61-56Lines changed: 61 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -27,123 +27,123 @@ export declare class Accordion extends React.Component<React.HTMLAttributes<Elem
27
27
privatenativeElement;
28
28
privatecomponentRef;
29
29
getid(): string;
30
-
/** Sets or gets the animation mode. Animation is disabled when the property is set to 'none'
30
+
/** Configures or retrieves the current animation mode. When set to 'none', all animations are disabled, resulting in instant transitions without animated effects. Setting this property to other supported values enables different animation behaviors.
31
31
* Property type: Animation | string
32
32
*/
33
33
getanimation(): Animation|string;
34
34
setanimation(value: Animation|string);
35
-
/** Determines the data source that will be loaded to the Accordion.
35
+
/** Specifies the data source to be loaded and displayed within the Accordion component. This property defines the collection of items or structured data that populates each section or panel of the Accordion, enabling dynamic rendering of its contents. The data source can typically be provided as an array of objects, JSON data, or via a remote endpoint depending on configuration.
36
36
* Property type: any
37
37
*/
38
38
getdataSource(): any;
39
39
setdataSource(value: any);
40
-
/** Enables or disables the accordion. Disabled elements can not be interacted with.
40
+
/** Controls whether the accordion component is enabled or disabled. When set to disabled, all interactive functionality is turned off—users cannot expand, collapse, or interact with any accordion sections. Disabled accordions appear visually inactive to indicate their non-interactive state.
41
41
* Property type: boolean
42
42
*/
43
43
getdisabled(): boolean;
44
44
setdisabled(value: boolean);
45
-
/** Sets or gets the expanded item indexes. Using this propertyitemscan be expanded by passing in their indexes. The number of expanded items is limited by the expandMode.
45
+
/** Sets or retrieves the indexes of currently expanded items. By assigning an array of item indexes to this property, you can programmatically expand those specific items. The maximum number of items that can be expanded at once depends on the value specified in the expandMode property (for example, single or multiple expansion modes). When getting this property, it returns an array of the indexes of all expanded items.
46
46
* Property type: number[]
47
47
*/
48
48
getexpandedIndexes(): number[];
49
49
setexpandedIndexes(value: number[]);
50
-
/** Sets or gets the expand mode. Expand mode determines how the items will expand or collapse.
50
+
/** Sets or retrieves the current expand mode. The expand mode specifies how list or group items behave when expanding or collapsing—such as allowing multiple items to expand simultaneously or restricting expansion to a single item at a time.
51
51
* Property type: AccordionExpandMode | string
52
52
*/
53
53
getexpandMode(): AccordionExpandMode|string;
54
54
setexpandMode(value: AccordionExpandMode|string);
55
-
/** Sets or gets the unlockKeywhich unlocks the product.
55
+
/** Retrieves or assigns the 'unlockKey' property, which serves as the access credential required to unlock and activate the product's full features.
56
56
* Property type: string
57
57
*/
58
58
getunlockKey(): string;
59
59
setunlockKey(value: string);
60
-
/** Sets or gets the language. Used in conjunction with the property messages.
60
+
/** Sets or retrieves the current language code (e.g., "en", "fr") for the component. This property works together with the messages property to determine which language-specific messages or translations are displayed. Use this to localize your application content based on user preference or locale.
61
61
* Property type: string
62
62
*/
63
63
getlocale(): string;
64
64
setlocale(value: string);
65
-
/** Callback used to customize the format of the messages that are returned from the Localization Module.
65
+
/** A callback function that allows you to customize the formatting of messages returned by the Localization Module. Use this to modify or enhance localized message output—such as applying dynamic content, adjusting text structure, or handling language-specific variations—before the messages are delivered to the client application.
66
66
* Property type: any
67
67
*/
68
68
getlocalizeFormatFunction(): any;
69
69
setlocalizeFormatFunction(value: any);
70
-
/** Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the property locale.
70
+
/** Specifies or retrieves an object containing the localized strings used throughout the widget interface. This allows you to define custom translations for various UI elements in different languages. Used together with the locale property to enable localization and internationalization support within the widget.
71
71
* Property type: any
72
72
*/
73
73
getmessages(): any;
74
74
setmessages(value: any);
75
-
/** Determines if the element is readonly or not. If the element true, users cannot interact with it.
75
+
/** Indicates whether the element is read-only. When set to true, the element cannot be modified or interacted with by users; its value is fixed and user input is disabled. If false, the element remains editable and interactive.
76
76
* Property type: boolean
77
77
*/
78
78
getreadonly(): boolean;
79
79
setreadonly(value: boolean);
80
-
/** Enables or disables accordion reordering.
80
+
/** Controls whether users can reorder accordion items by dragging and dropping them. When enabled, items within the accordion component can be rearranged interactively; when disabled, the order of items remains fixed.
81
81
* Property type: boolean
82
82
*/
83
83
getreorder(): boolean;
84
84
setreorder(value: boolean);
85
-
/** Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
85
+
/** Specifies or retrieves a value that determines whether the element is aligned to accommodate right-to-left (RTL) languages and scripts, such as Arabic or Hebrew. This property ensures the element’s layout and text direction are properly adjusted to support RTL localization.
86
86
* Property type: boolean
87
87
*/
88
88
getrightToLeft(): boolean;
89
89
setrightToLeft(value: boolean);
90
-
/** Determines the theme. Theme defines the look of the element
90
+
/** Specifies the theme to be applied, which controls the overall appearance and visual style of the element, including aspects such as colors, fonts, and background.
91
91
* Property type: string
92
92
*/
93
93
gettheme(): string;
94
94
settheme(value: string);
95
-
/** Determines whether the element can be focused or not.
95
+
/** Specifies whether the element is capable of receiving keyboard focus, allowing users to navigate to it using the keyboard (such as the Tab key) and interact with it through assistive technologies.
96
96
* Property type: boolean
97
97
*/
98
98
getunfocusable(): boolean;
99
99
setunfocusable(value: boolean);
100
100
getproperties(): string[];
101
-
/** This event is triggered when an item is collapsed.
101
+
/** Triggered when an item has completed its collapse animation and is no longer expanded or visible. This event occurs only after the item is fully collapsed, ensuring that any associated transitions or content hiding have finished.
102
102
* @param event. The custom event. Custom event was created with: event.detail( content, index, label)
103
-
* content - The content of the item.
104
-
* index - The index of the item.
105
-
* label - The label of the item
103
+
* content - The collapsed item's content.
104
+
* index - The index of the collapsed item.
105
+
* label - The label of the collapsed item.
106
106
*/
107
107
onCollapse?: ((event?: Event)=>void)|undefined;
108
-
/** This event is triggered when an item is going to be collapsed.
108
+
/** Fires immediately before an item begins its collapse animation, allowing you to perform actions or prevent the collapse from occurring.
109
109
* @param event. The custom event. Custom event was created with: event.detail( content, index, label)
110
-
* content - The content of the item.
111
-
* index - The index of the item.
112
-
* label - The label of the item
110
+
* content - The item content.
111
+
* index - The item's index.
112
+
* label - The item's label.
113
113
*/
114
114
onCollapsing?: ((event?: Event)=>void)|undefined;
115
-
/** This event is triggered when a reordering operation is completed.
115
+
/** Triggered when a user completes a drag-and-drop action to reorder items, indicating that the new order has been finalized and can be processed (e.g., saved or updated in the UI or backend).
116
116
* @param event. The custom event. Custom event was created with: event.detail( position, target, content, index, label)
117
-
* position - The current top and left position of the item that was dragged.
118
-
* target - The item that was dragged.
119
-
* content - The content of the item.
120
-
* index - The index of the item.
121
-
* label - The label of the item.
117
+
* position - Current top and left coordinates of the dragged item.
118
+
* target - The dragged item element.
119
+
* content - The dragged item's content.
120
+
* index - The dragged item's index.
121
+
* label - The dragged item's label.
122
122
*/
123
123
onDragEnd?: ((event?: Event)=>void)|undefined;
124
-
/** This event is triggered when a reordering operation is started.
124
+
/** Fires when the user initiates a drag-and-drop reorder action, signaling the start of an item being moved within a sortable list or container. This event provides an opportunity to perform setup tasks, such as highlighting the item being dragged or preparing the UI for reordering.
125
125
* @param event. The custom event. Custom event was created with: event.detail( position, target, content, index, label)
126
-
* position - The current top and left position of the item that is about to be dragged.
127
-
* target - The item that is about to be dragged.
128
-
* content - The content of the item.
129
-
* index - The index of the item.
130
-
* label - The label of the item.
126
+
* position - Initial top and left coordinates of the item being dragged.
127
+
* target - The item element being dragged.
128
+
* content - The dragged item's content.
129
+
* index - The dragged item's index.
130
+
* label - The dragged item's label.
131
131
*/
132
132
onDragStart?: ((event?: Event)=>void)|undefined;
133
-
/** This event is triggered when an item is expanded.
133
+
/** Triggered when an item has completed its expansion and is fully visible to the user. This event occurs after any expansion animations or transitions have finished, ensuring that the item's contents are now accessible for interaction.
134
134
* @param event. The custom event. Custom event was created with: event.detail( position, target, content, index, label)
135
-
* position - The current top and left position of the item.
136
-
* target - The item that was dragged.
137
-
* content - The content of the item.
138
-
* index - The index of the item.
139
-
* label - The label of the item.
135
+
* position - Current top and left coordinates of the expanded item.
136
+
* target - The expanded item element.
137
+
* content - The expanded item's content.
138
+
* index - The expanded item's index.
139
+
* label - The expanded item's label.
140
140
*/
141
141
onExpand?: ((event?: Event)=>void)|undefined;
142
-
/** This event is triggered when an item is going to be expanded.
142
+
/** Fires immediately before an item begins its expansion process, allowing you to perform actions or modify data right before the expansion occurs. This event provides an opportunity to prevent the expansion or make adjustments as needed.
143
143
* @param event. The custom event. Custom event was created with: event.detail( content, index, label)
144
-
* content - The content of the item.
145
-
* index - The index of the item.
146
-
* label - The label of the item
144
+
* content - The content of the item being expanded.
145
+
* index - The index of the item being expanded.
146
+
* label - The label of the item being expanded.
147
147
*/
148
148
onExpanding?: ((event?: Event)=>void)|undefined;
149
149
/** This event occurs, when the React component is created.
@@ -153,28 +153,33 @@ export declare class Accordion extends React.Component<React.HTMLAttributes<Elem
153
153
* @param event. The custom event. */
154
154
onReady?: ((event?: Event)=>void)|undefined;
155
155
geteventListeners(): string[];
156
-
/** Collapses an item at a specified index.
157
-
* @param {number} position. The index of the collapsed item.
156
+
/** Collapses the item located at the specified index, hiding its associated content or details from view. This action typically updates the user interface to indicate that the item is no longer expanded.
157
+
* @param {number} position. Index of the item to collapse.
158
158
*/
159
159
collapse(position: number): void;
160
-
/** Expands an item at a specified index.
161
-
* @param {number} position. The index of the expanded item.
160
+
/** Expands the item located at the specified index in the collection, making its detailed content visible or accessible to the user.
161
+
* @param {number} position. Index of the item to expand.
162
162
*/
163
163
expand(position: number): void;
164
-
/** Inserts a new item at a specified index.
165
-
* @param {number} index. The index where the item must be inserted.
166
-
* @param {any} item. An object containing the values for the properties of the new item to be inserted.
164
+
/** Inserts a new item into the array at the specified index, shifting existing elements to the right to accommodate the new entry. If the specified index is out of range, the operation will either append the item to the end or return an error, depending on the implementation.
165
+
* @param {number} index. Index where the new item will be inserted.
166
+
* @param {any} item. Object representing the new item's properties.
167
167
*/
168
168
insert(index: number,item: any): void;
169
-
/** Removes an item at a specified index.
170
-
* @param {number} position. The index of the item to be removed.
169
+
/** Removes the item located at the specified index from the array, shifting subsequent items one position to the left. The array's length is reduced by one, and the removed item is no longer accessible.
170
+
* @param {number} position. Index of the item to remove.
171
171
*/
172
172
removeAt(position: number): void;
173
-
/** Updates an item from the element.
174
-
* @param {number} index. The index of the item to be updated.
175
-
* @param {any} settings. An object containing the values for the properties of the item that will be updated.
173
+
/** Replaces the item at the given index in the collection with an updated version, incorporating the specified new property values while preserving any unchanged properties.
174
+
* @param {number} index. Index of the item to update.
175
+
* @param {any} settings. Object containing updated property values for the item.
176
176
*/
177
177
update(index: number,settings: any): void;
178
+
/** Sets the locale of a component.
179
+
* @param {string} locale. The locale abbreviation. For example: 'de'.
180
+
* @param {any} messages?. Object containing the locale messages.
0 commit comments