Skip to content

Commit 2254ac9

Browse files
committed
Sync and apply grid_style traitlet when changed
Signed-off-by: Itay Dafna <[email protected]>
1 parent f3b8e0e commit 2254ac9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

js/datagrid.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,9 @@ export class DataGridView extends DOMWidgetView {
424424
this.model.on_some_change(
425425
['header_renderer', 'default_renderer', 'renderers', 'grid_style'],
426426
() => {
427-
this.updateRenderers().then(this.updateGridRenderers.bind(this));
427+
this.updateRenderers()
428+
.then(this.updateGridStyle.bind(this))
429+
.then(this.updateGridRenderers.bind(this));
428430
},
429431
this,
430432
);

js/feathergrid.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,7 @@ export class FeatherGrid extends Widget {
10121012
}
10131013

10141014
grid: DataGrid;
1015+
backboneModel: BackBoneModel;
10151016
contextMenu: FeatherGridContextMenu;
10161017
private _filterDialog: InteractiveFilterDialog;
10171018
private _baseRowSize = 20;
@@ -1031,7 +1032,6 @@ export class FeatherGrid extends Widget {
10311032
private _cellClicked = new Signal<this, FeatherGrid.ICellClickedEvent>(this);
10321033
private _columnsResized = new Signal<this, void>(this);
10331034
private _isLightTheme = true;
1034-
backboneModel: BackBoneModel;
10351035
}
10361036

10371037
/**

0 commit comments

Comments
 (0)