projects/i-components/src/lib/components/xam-grid-settings/xam-grid-selection.component.ts
Xam grid selection settings as template
selector | wm-selection-settings |
Properties |
Inputs |
cellClickAction | |
Type : any
|
|
Default value : CellSelectionAction.SelectCell
|
|
Gets/sets the default cell click action. Either to select a cell or to select a row. |
cellSelection | |
Type : XamSelectionMode
|
|
Default value : XamSelectionMode.Multiple
|
|
Xam grid cell selection |
columnSelection | |
Type : XamSelectionMode
|
|
Default value : XamSelectionMode.None
|
|
Xam grid column selection |
rowSelection | |
Type : XamSelectionMode
|
|
Default value : XamSelectionMode.None
|
|
Xam grid row selection |
cellClickAction |
Default value : CellSelectionAction.SelectCell
|
Decorators :
@Input()
|
Gets/sets the default cell click action. Either to select a cell or to select a row. |
cellSelection |
Type : XamSelectionMode
|
Default value : XamSelectionMode.Multiple
|
Decorators :
@Input()
|
Xam grid cell selection |
columnSelection |
Type : XamSelectionMode
|
Default value : XamSelectionMode.None
|
Decorators :
@Input()
|
Xam grid column selection |
rowSelection |
Type : XamSelectionMode
|
Default value : XamSelectionMode.None
|
Decorators :
@Input()
|
Xam grid row selection |
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;
}