Skip to content

Commit

Permalink
Fix onClick event for column button (DevExpress#25395)
Browse files Browse the repository at this point in the history
  • Loading branch information
dxvladislavvolkov authored and mpreyskurantov committed Sep 21, 2023
1 parent 8aab539 commit b346428
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
22 changes: 15 additions & 7 deletions js/ui/data_grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,22 @@ export type RowDraggingRemoveEvent<TRowData = any, TKey = any> = ReducedNativeEv
/** @public */
export type RowDraggingReorderEvent<TRowData = any, TKey = any> = ReducedNativeEventInfo<dxDataGrid<TRowData, TKey>> & RowDraggingEventInfo<TRowData> & DragReorderInfo;

/** @public */
/**
* @docid _ui_data_grid_ColumnButtonClickEvent
* @public
* @type object
* @inherits NativeEventInfo
*/
export type ColumnButtonClickEvent<TRowData = any, TKey = any> = NativeEventInfo<dxDataGrid<TRowData, TKey>, PointerEvent | MouseEvent> & {
/**
* @docid _ui_data_grid_ColumnButtonClickEvent.row
* @type dxDataGridRowObject
*/
row?: Row<TRowData, TKey>;
/**
* @docid _ui_data_grid_ColumnButtonClickEvent.column
* @type dxDataGridColumn
*/
column?: Column<TRowData, TKey>;
};

Expand Down Expand Up @@ -2303,12 +2316,7 @@ export interface dxDataGridColumnButton<TRowData = any, TKey = any> extends Colu
name?: DataGridPredefinedColumnButton | string;
/**
* @docid dxDataGridColumnButton.onClick
* @type_function_param1 e:object
* @type_function_param1_field component:dxDataGrid
* @type_function_param1_field model:object
* @type_function_param1_field event:event
* @type_function_param1_field row:dxDataGridRowObject
* @type_function_param1_field column:dxDataGridColumn
* @type_function_param1 e:{ui/data_grid:ColumnButtonClickEvent}
* @public
*/
onClick?: ((e: ColumnButtonClickEvent<TRowData, TKey>) => void);
Expand Down
9 changes: 9 additions & 0 deletions ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9970,14 +9970,23 @@ declare module DevExpress.ui {
* @deprecated Attention! This type is for internal purposes only. If you used it previously, please submit a ticket to our {@link https://supportcenter.devexpress.com/ticket/create Support Center}. We will check if there is an alternative solution.
*/
export type ColumnButtonBase = DevExpress.common.grids.ColumnButtonBase;
/**
* [descr:_ui_data_grid_ColumnButtonClickEvent]
*/
export type ColumnButtonClickEvent<
TRowData = any,
TKey = any
> = DevExpress.events.NativeEventInfo<
dxDataGrid<TRowData, TKey>,
PointerEvent | MouseEvent
> & {
/**
* [descr:_ui_data_grid_ColumnButtonClickEvent.row]
*/
row?: Row<TRowData, TKey>;
/**
* [descr:_ui_data_grid_ColumnButtonClickEvent.column]
*/
column?: Column<TRowData, TKey>;
};
export type ColumnButtonTemplateData<TRowData = any, TKey = any> = {
Expand Down

0 comments on commit b346428

Please sign in to comment.