File

projects/m2-core/src/lib/shared/ui-components/value/link-value/link-value.component.ts

Implements

OnChanges

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(logger: Logger, dataEditService: DataEditService, propositionsService: PropositionsService, linkValueService: LinkValueService)
Parameters :
Name Type Optional
logger Logger No
dataEditService DataEditService No
propositionsService PropositionsService No
linkValueService LinkValueService No

Inputs

aggregateId
Type : number
attributeId
Type : number
attributeType
Type : AttributeType
deprecated
Type : boolean
editModeON
Type : boolean
isHistorical
Type : boolean
linkValue
Type : LinkAttribute
precision
Type : any
Default value : APP_SETTINGS.LINK_VALUE_DOUBLE_PRECISION
unit
Type : MeasurementUnit

Methods

ngOnChanges
ngOnChanges(changes: ComponentChanges<LinkValueComponent>)
Parameters :
Name Type Optional
changes ComponentChanges<LinkValueComponent> No
Returns : void

Properties

changeValueFn
Default value : ((newValue: string|ConstraintTableCell) => { const changeRequest = this.linkValueService.formChangeRequest(this.linkValue, newValue, this.attributeType); this.logger.debug(`LINK_VALUE_COMPONENT: newValue = [${newValue}]; change = [${changeRequest}]`, newValue, changeRequest); if (changeRequest != null) { return this.dataEditService.updatePropertyValue(changeRequest) .then(editedValue => this.handleSuccessfulEdit(<AggregationWithLinkAttributeValues> editedValue)); } return Promise.resolve(); })

Editing

currentValue
Type : string
Public isFocused
Type : boolean
maskConfig
Type : any
valueType
Type : string
Default value : 'STRING'
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""