MCPcopy Index your code
hub / github.com/plotly/dash / getBaseTableProps

Function getBaseTableProps

components/dash-table/demo/AppMode.ts:56–112  ·  view source on GitHub ↗
(mock: IDataMock)

Source from the content-addressed store, hash-verified

54export const BasicModes = [...ReadWriteModes, AppMode.ReadOnly];
55
56function getBaseTableProps(mock: IDataMock): Partial<IProps> {
57 return {
58 id: 'table',
59 columns: mock.columns.map((col: any) =>
60 R.mergeRight(col, {
61 name: col.name || col.id,
62 on_change: {
63 action: ChangeAction.None
64 },
65 renamable: true,
66 deletable: true
67 })
68 ) as Columns,
69 dropdown: {
70 bbb: {
71 clearable: true,
72 options: ['Humid', 'Wet', 'Snowy', 'Tropical Beaches'].map(
73 i => ({
74 label: `label: ${i}`,
75 value: i
76 })
77 )
78 },
79 'bbb-readonly': {
80 clearable: true,
81 options: ['Humid', 'Wet', 'Snowy', 'Tropical Beaches'].map(
82 i => ({
83 label: `label: ${i}`,
84 value: i
85 })
86 )
87 }
88 },
89 page_action: TableAction.None,
90 style_table: {
91 maxHeight: '800px',
92 height: '800px',
93 maxWidth: '1000px',
94 width: '1000px'
95 },
96 style_cell: {
97 maxWidth: 150,
98 minWidth: 150,
99 width: 150
100 },
101 style_cell_conditional: [
102 {if: {column_id: 'rows'}, maxWidth: 60, minWidth: 60, width: 60},
103 {if: {column_id: 'bbb'}, maxWidth: 200, minWidth: 200, width: 200},
104 {
105 if: {column_id: 'bbb-readonly'},
106 maxWidth: 200,
107 minWidth: 200,
108 width: 200
109 }
110 ]
111 };
112}
113

Callers 2

getDefaultStateFunction · 0.85
getVirtualizedStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…