@omnigrid/selection-plugin 0.1.8 → 0.1.9
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/dist/index.js +2 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export class SelectionPlugin {
|
|
|
25
25
|
this.checkboxRenderer = options.checkboxRenderer ?? defaultCheckboxRenderer;
|
|
26
26
|
this.onSelectionChange = options.onSelectionChange;
|
|
27
27
|
this.selectionColumnId = options.selectionColumnId ?? CHECKBOX_COLUMN_DEFAULT_ID;
|
|
28
|
-
this.selectionColumnWidth = options.selectionColumnWidth ??
|
|
28
|
+
this.selectionColumnWidth = options.selectionColumnWidth ?? 36;
|
|
29
29
|
}
|
|
30
30
|
register(api) {
|
|
31
31
|
this.api = api;
|
|
@@ -312,6 +312,7 @@ export class SelectionPlugin {
|
|
|
312
312
|
width: this.selectionColumnWidth,
|
|
313
313
|
minWidth: this.selectionColumnWidth,
|
|
314
314
|
maxWidth: this.selectionColumnWidth,
|
|
315
|
+
align: "center",
|
|
315
316
|
sortable: false,
|
|
316
317
|
stopHeaderClick: true,
|
|
317
318
|
stopRowClick: true,
|
package/dist/types.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export interface SelectionPluginOptions<T> {
|
|
|
40
40
|
onSelectionChange?: (state: SelectionState<T>) => void;
|
|
41
41
|
/** ID for the automatically inserted checkbox column. @default "__omnigrid_selection__" */
|
|
42
42
|
selectionColumnId?: string;
|
|
43
|
-
/** Width in pixels of the automatically inserted checkbox column. @default
|
|
43
|
+
/** Width in pixels of the automatically inserted checkbox column. @default 36 */
|
|
44
44
|
selectionColumnWidth?: number;
|
|
45
45
|
}
|
|
46
46
|
/** Selected row identifiers and their corresponding row data. */
|