projects/aoc-client/components/aoc-grid/aoc-grid-field/aoc-grid-field.component.ts
parent form. These models can be manipulated with sub-forms that will not save the model to the database until parent form is saved or via form groups edited inline directly on the cells.
OnInit
OnDestroy
AfterContentInit
ControlValueAccessor
encapsulation | ViewEncapsulation.None |
host | { |
providers |
AocGridEditableTemplateNamePipe
|
selector | aoc-grid-field |
standalone | true |
imports |
AocGridToolbarComponent
AocUiTableComponent
AocUiTableTemplateDirective
AocUiTableRowExpanderHeaderDirective
NgIf
NgForOf
AocUiTableResizableColumnDirective
AocUiTooltipDirective
AocUiTableSortableColumnDirective
AocUiTableSelectableRowDirective
AocUiTableRowExpanderTogglerComponent
NgSwitch
AocUiButtonDirective
AocUiTableEditableCellDirective
NgStyle
NgClass
AocUiTableCellEditorComponent
AocUiTableCellEditorStatusDirective
NgTemplateOutlet
NgSwitchCase
AocUiTableRowExpanderContentDirective
AocUiDeepClone
AocUiResolveDisplayPipe
AocUiIsDisplayTemplate
AocGridFieldValidFormControlPipe
AocGridRowNgClassPipe
AocGridRowNgStylePipe
AocGridEditableTemplateNamePipe
AocUiControlErrorMessagePipe
CdkDropList
CdkDrag
|
templateUrl | ./aoc-grid-field.component.html |
constructor(ngControl: NgControl, aocRestService: AocRestService, aocFormWindowService: AocFormWindowService, aocGridEditableTemplateNamePipe: AocGridEditableTemplateNamePipe, aocIoService: AocIoService, aocMisc: AocMisc, aocUiWindowDynRef: AocUiWindowDynRef, aocFormController: AocFormController, l: AocUiLoggerDirective)
|
||||||||||||||||||||||||||||||
Parameters :
|
addAddButton |
Type : boolean
|
Default value : true
|
Whether add or not the add button (optional): if true (default) will show the add button if model config allows adding objects. if false will remove the add button overriding model configuration allow capability. |
addCloneButton |
Type : boolean
|
Default value : true
|
Whether add or not the clone button (optional): if true (default) will show the clone button if model config allows cloning objects. if false will remove the clone button overriding model configuration allow capability. |
addEditButton |
Type : boolean
|
Default value : true
|
Whether add or not the edit button (optional): if true (default) will show the edit button if model config allows editing objects. if false will remove the edit button overriding model configuration allow capability. |
autoExpand |
Type : boolean
|
Expand automatically the contents of the expansion template, defaults to false. |
buttonConfig |
Type : AocGridToolbarButtonConfig
|
Custom toolbar button config (optional). |
cloneFilter |
Type : AocGridFieldCloneFilter<T>
|
Default value : {}
|
Clone filter, fields in the object will be assigned, not cloned |
columns |
Type : AocGridColumn[]
|
The columns of the grid (mandatory). |
customSort |
Type : function
|
Custom sort, has top priority |
dragAndDropHandler |
Type : | AocDropHandler<T>
|
Function that will optionally be called when an element is dropped |
dynamicFormGroupConfig |
Type : AocDynFormGroup
|
Default value : {}
|
emptyGroupDescriptor |
Type : any
|
Default value : $localize`:@@AOC_GRID_FIELD_NO_GROUP:No group`
|
enableDragAndDrop |
Type : boolean
|
Default value : false
|
Enables drag and drop of an element within the list (useful for reordering) |
formGroupTemplate |
Type : AocGridFieldFormGroupTemplate
|
This template defines the form group of a row, a copy will be created for each model of the grid (optional). |
groupConfig |
Type : AocGridGroupConfig<any>
|
modelChangeFireInvalidValues |
Type : boolean
|
Default value : false
|
Defines whether model change events will be sent for invalid values (default is false) |
modelConfig |
Type : AocModelConfig<T>
|
The associated model configuration (mandatory). |
relationField |
Type : string
|
Default value : 'id'
|
Indicates the field that relates to parent to correctly handle the states |
relationModel |
Type : AocModel
|
If relation mode is 'pivot' we need to check the already existing relation against a relation model. If no relation model is provided, main form model will be taken via aoc form controller. |
rowNgClass |
Type : AocGridRowNgClass<AocModel>
|
rowNgStyle |
Type : AocGridRowNgStyle<AocModel>
|
sortDir |
Type : "asc" | "desc"
|
The sort direction, defaults to "asc" |
sortField |
Type : AocUiFieldPath
|
The sort field, local sort only |
modelChange |
Type : EventEmitter
|
Output event emitter for model events (@see AocGridFieldModelEventType). Any to be able to use typed AocModelEvent |
selectedChange |
Type : EventEmitter
|
class |
Type : any
|
style |
Type : literal type
|
registerOnChange | ||||||
registerOnChange(fn: any)
|
||||||
Parameters :
Returns :
void
|
registerOnTouched | ||||||
registerOnTouched(fn: any)
|
||||||
Parameters :
Returns :
void
|
writeValue | ||||||
writeValue(newModels: T[])
|
||||||
Parameters :
Returns :
void
|
aocUiToolbarTemplates |
Type : QueryList<AocUiToolbarDirective>
|
Decorators :
@ContentChildren(AocUiToolbarDirective)
|
cellTemplateDirectives |
Type : QueryList<AocGridCellDirective>
|
Decorators :
@ContentChildren(AocGridCellDirective)
|
groupTemplateDirectives |
Type : QueryList<AocGridGroupDirective>
|
Decorators :
@ContentChildren(AocGridGroupDirective)
|
Optional mobileResizedStyle |
Type : literal type
|
Decorators :
@HostBinding('style')
|
rowExpansionTemplate |
Type : AocUiTableTemplateDirective
|
Decorators :
@ContentChild(AocUiTableTemplateDirective)
|
controlClasses |
getcontrolClasses()
|
columns | ||||||
getcolumns()
|
||||||
setcolumns(cols: AocGridColumn[])
|
||||||
The columns of the grid (mandatory).
Parameters :
Returns :
void
|
autoExpand | ||||
getautoExpand()
|
||||
setautoExpand(e)
|
||||
Expand automatically the contents of the expansion template, defaults to false.
Parameters :
Returns :
void
|
groupConfig | ||||||
getgroupConfig()
|
||||||
setgroupConfig(groupConfig: AocGridGroupConfig<any>)
|
||||||
Parameters :
Returns :
void
|