@coolon/angular-ui-powerups 2.0.0-alpha.7 → 2.0.0-alpha.8
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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +13 -3
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/column-model.js +13 -3
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm5/lib/components/table/column-model.js +13 -3
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +13 -3
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +13 -3
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/table/column-model.d.ts +9 -1
- package/package.json +1 -1
|
@@ -50,13 +50,21 @@ export interface CellEditorOptions<V, C> {
|
|
|
50
50
|
validators?: Validator<V>[];
|
|
51
51
|
initialiseComponent?(component: C): any;
|
|
52
52
|
}
|
|
53
|
+
export declare type OnComponentInit<C> = (component: C) => void;
|
|
54
|
+
export interface CellRendererOptions<Row, E> {
|
|
55
|
+
onComponentInit?: (component: E) => void;
|
|
56
|
+
onRowUpdate?: (component: E, row: Row) => void;
|
|
57
|
+
}
|
|
53
58
|
export declare class PropertyColumnModel<Row, P extends Types.ValuePropertiesOf<Row>> extends ColumnModel<Row> {
|
|
54
59
|
readonly property: P;
|
|
55
60
|
private _format;
|
|
56
61
|
constructor(id: string, property: P, defaults: ColumnModel.Defaults);
|
|
57
62
|
cellRenderer<E extends {
|
|
58
63
|
value: Row[P];
|
|
59
|
-
}>(componentType: ComponentType<E>,
|
|
64
|
+
}>(componentType: ComponentType<E>, options?: CellRendererOptions<Row, E>): this;
|
|
65
|
+
cellRenderer<E extends {
|
|
66
|
+
value: Row[P];
|
|
67
|
+
}>(componentType: ComponentType<E>, onComponentInit?: OnComponentInit<E>): this;
|
|
60
68
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, validators?: Validator<Row[P]>[], initialiseComponent?: (component: E) => void): this;
|
|
61
69
|
cellEditor<E extends CellEditorComponent<Row[P]>>(editor: ComponentType<E>, initialiseComponent?: (component: E) => void): this;
|
|
62
70
|
format(formatter: (value: Row[P]) => any): this;
|