@syook/react-tabulous 4.0.5 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -70,6 +70,8 @@ interface OptionInterface {
70
70
  label: string | number;
71
71
  }
72
72
 
73
+ type ColumnAlignment = 'left' | 'center' | 'right';
74
+
73
75
  interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = any, F = V> {
74
76
  /**
75
77
  * The column identifier. It's used to map with [[GridRowModel]] values.
@@ -126,6 +128,10 @@ interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel, V = an
126
128
  * The column to show options in filter.
127
129
  */
128
130
  options?: OptionInterface[];
131
+ /**
132
+ * Align the column.
133
+ */
134
+ align?: ColumnAlignment;
129
135
  }
130
136
  interface GridActionsColDef<R extends GridValidRowModel = any, V = any, F = V> extends GridBaseColDef<R, V, F> {
131
137
  /**
@@ -163,7 +169,7 @@ interface FilterFieldProps {
163
169
  operator: string;
164
170
  value: any;
165
171
  field: string;
166
- options?: string[];
172
+ options?: string[] | OptionInterface[];
167
173
  }
168
174
 
169
175
  interface DataGridPropsWithDefaultValues {