projects/i-components/src/lib/components/xam-grid-settings/xam-grid-selection.component.ts
Placeholder for the selection settings template object
selector | wm-xam-grid-selection-settings |
template |
|
import { Component, Input } from '@angular/core';
import { XamSelectionMode, CellSelectionAction } from '@mobilize/wms-framework';
/**
* Placeholder for the selection settings template object
*
* @export
* @class XamGridSelectionSettingsComponent
*/
@Component({
selector: 'wm-xam-grid-selection-settings',
template: `<ng-content></ng-content>`,
})
export class XamGridSelectionSettingsComponent {}
/**
* Xam grid selection settings as template
*
* @export
* @class SelectionSettingsComponent
*/
@Component({
selector: 'wm-selection-settings',
template: ``,
})
export class SelectionSettingsComponent {
/**
* Xam grid row selection
*
* @type {XamSelectionMode}
* @memberof SelectionSettingsComponent
*/
@Input()
rowSelection: XamSelectionMode = XamSelectionMode.None;
/**
* Xam grid cell selection
*
* @type {XamSelectionMode}
* @memberof SelectionSettingsComponent
*/
@Input()
cellSelection: XamSelectionMode = XamSelectionMode.Multiple;
/**
* Xam grid column selection
*
* @type {XamSelectionMode}
* @memberof SelectionSettingsComponent
*/
@Input()
columnSelection: XamSelectionMode = XamSelectionMode.None;
/**
* Gets/sets the default cell click action. Either to select a cell
* or to select a row.
*
* @memberof SelectionSettingsComponent
*/
@Input()
cellClickAction = CellSelectionAction.SelectCell;
}