projects/i-components/src/lib/components/xam-grid-settings/xam-grid-add-row.component.ts
Placeholder for the add new row template object
selector | wm-xam-grid-add-new-row-settings |
template |
|
import { Component, Input } from '@angular/core';
/**
* Placeholder for the add new row template object
*
* @export
* @class XamGridAddRowComponent
*/
@Component({
selector: 'wm-xam-grid-add-new-row-settings',
template: '<ng-content></ng-content>',
})
export class XamGridAddNewRowSettingsComponent {}
/**
* Xam grid add new row settings as template
*
* @export
* @class AddNewRowSettingsComponent
*/
@Component({
selector: 'wm-add-new-row-settings',
template: ``,
})
export class AddNewRowSettingsComponent {
/**
* Defines where the new row will be added
*
* @type {('Top' | 'Bottom')}
* @memberof AddNewRowSettingsComponent
*/
@Input()
allowAddNewRow: 'Top' | 'Bottom' = 'Top';
/**
* Enables/Disables Add new row button
*
* @type {boolean}
* @memberof AddNewRowSettingsComponent
*/
@Input()
disableAddNewRow = false;
}