@@ -1149,7 +1149,13 @@ export type dxTreeListOptions<TRowData = any, TKey = any> = Omit<GridBaseOptions
1149
1149
* @deprecated Use Editing instead
1150
1150
*/
1151
1151
export type dxTreeListEditing < TRowData = any , TKey = any > = Editing < TRowData , TKey > ;
1152
-
1152
+ /**
1153
+ * @public
1154
+ */
1155
+ export type TreeListEditingOptions < TRowData , TKey > = {
1156
+ component ?: dxTreeList < TRowData , TKey > ;
1157
+ row ?: Row < TRowData , TKey > ;
1158
+ } ;
1153
1159
/**
1154
1160
* @docid dxTreeListEditing
1155
1161
* @public
@@ -1164,7 +1170,7 @@ export interface Editing<TRowData = any, TKey = any> extends EditingBase<TRowDat
1164
1170
* @type_function_param 1_field row:dxTreeListRowObject
1165
1171
* @public
1166
1172
*/
1167
- allowAdding ?: boolean | ( ( options : { readonly component : dxTreeList < TRowData , TKey > ; readonly row ?: Row < TRowData , TKey > } ) => boolean ) ;
1173
+ allowAdding ?: boolean | ( ( options : TreeListEditingOptions < TRowData , TKey > ) => boolean ) ;
1168
1174
/**
1169
1175
* @docid dxTreeListOptions.editing.allowDeleting
1170
1176
* @default false
@@ -1173,7 +1179,7 @@ export interface Editing<TRowData = any, TKey = any> extends EditingBase<TRowDat
1173
1179
* @type_function_param 1_field row:dxTreeListRowObject
1174
1180
* @public
1175
1181
*/
1176
- allowDeleting ?: boolean | ( ( options : { readonly component : dxTreeList < TRowData , TKey > ; readonly row ?: Row < TRowData , TKey > } ) => boolean ) ;
1182
+ allowDeleting ?: boolean | ( ( options : TreeListEditingOptions < TRowData , TKey > ) => boolean ) ;
1177
1183
/**
1178
1184
* @docid dxTreeListOptions.editing.allowUpdating
1179
1185
* @default false
@@ -1182,7 +1188,7 @@ export interface Editing<TRowData = any, TKey = any> extends EditingBase<TRowDat
1182
1188
* @type_function_param 1_field row:dxTreeListRowObject
1183
1189
* @public
1184
1190
*/
1185
- allowUpdating ?: boolean | ( ( options : { readonly component : dxTreeList < TRowData , TKey > ; readonly row ?: Row < TRowData , TKey > } ) => boolean ) ;
1191
+ allowUpdating ?: boolean | ( ( options : TreeListEditingOptions < TRowData , TKey > ) => boolean ) ;
1186
1192
/**
1187
1193
* @docid dxTreeListOptions.editing.texts
1188
1194
* @type object
@@ -1589,7 +1595,14 @@ export interface dxTreeListColumn<TRowData = any, TKey = any> extends ColumnBase
1589
1595
* @public
1590
1596
*/
1591
1597
export type ColumnButton < TRowData = any , TKey = any > = dxTreeListColumnButton < TRowData , TKey > ;
1592
-
1598
+ /**
1599
+ * @public
1600
+ */
1601
+ export type TreeListColumnButtonOptions < TRowData , TKey > = {
1602
+ component ?: dxTreeList < TRowData , TKey > ;
1603
+ row ?: Row < TRowData , TKey > ;
1604
+ column ?: Column < TRowData , TKey > ;
1605
+ } ;
1593
1606
/**
1594
1607
* @namespace DevExpress.ui
1595
1608
* @deprecated Use the TreeList's ColumnButton type instead
@@ -1625,12 +1638,13 @@ export interface dxTreeListColumnButton<TRowData = any, TKey = any> extends Colu
1625
1638
* @docid dxTreeListColumnButton.visible
1626
1639
* @default true
1627
1640
* @type boolean | function
1628
- * @type_function_param 1_field component:dxTreeList
1629
- * @type_function_param 1_field row:dxTreeListRowObject
1630
- * @type_function_param 1_field column:dxTreeListColumn
1641
+ * @type_function_param 1 options: TreeListColumnButtonOptions<TRowData, TKey>
1642
+ * @type_function_param 1_field component: dxTreeList
1643
+ * @type_function_param 1_field row: dxTreeListRowObject
1644
+ * @type_function_param 1_field column: dxTreeListColumn
1631
1645
* @public
1632
1646
*/
1633
- visible ?: boolean | ( ( options : { readonly component : dxTreeList < TRowData , TKey > ; readonly row ?: Row < TRowData , TKey > ; readonly column : Column < TRowData , TKey > } ) => boolean ) ;
1647
+ visible ?: boolean | ( ( options : TreeListColumnButtonOptions < TRowData , TKey > ) => boolean ) ;
1634
1648
/**
1635
1649
* @docid dxTreeListColumnButton.disabled
1636
1650
* @default false
@@ -1640,7 +1654,7 @@ export interface dxTreeListColumnButton<TRowData = any, TKey = any> extends Colu
1640
1654
* @type_function_param 1_field column:dxTreeListColumn
1641
1655
* @public
1642
1656
*/
1643
- disabled ?: boolean | ( ( options : { readonly component : dxTreeList < TRowData , TKey > ; readonly row ?: Row < TRowData , TKey > ; readonly column : Column < TRowData , TKey > } ) => boolean ) ;
1657
+ disabled ?: boolean | ( ( options : TreeListColumnButtonOptions < TRowData , TKey > ) => boolean ) ;
1644
1658
}
1645
1659
1646
1660
/**
0 commit comments