Skip to content

Class: ValueResolver

Resolve any value.

Hierarchy

  • ValueResolver

Summary

Methods

Methods

Static canRecursive

canRecursive(sValue: any, value: any): boolean

Parameters:

Name Type
sValue any
value any

Returns: boolean


Static canResolve

canResolve(sValue: any): boolean

Parameters:

Name Type
sValue any

Returns: boolean


Static parseBinding

parseBinding(value: string, context: IContext): any

This method is to parse binding

Parameters:

Name Type Default Description
value string - binding value to be parsed
context IContext ContextFromPage() context to be used for parsing, default is fromPage context

Returns: any

parsed binding value


Static resolveArrayOfKeyValues

resolveArrayOfKeyValues(definitionObjArray: any, context: IContext, recursive: boolean, excludedTypes?: [ValueType]): Promise‹object[]›

This method is to resolve an array of key value pair objects

Parameters:

Name Type Default Description
definitionObjArray any - array of def objects which contains key value pair where the value is to be resolved.
context IContext ContextFromPage() context to be used for parsing, default is fromPage context
recursive boolean true -
excludedTypes? [ValueType] - -

Returns: Promise‹object[]›

[] resolved array of key value pair objects


Static resolveKeyValues

resolveKeyValues(definitionObj: any, context: IContext, recursive: boolean, excludedTypes?: [ValueType]): Promise‹object›

This method is to resolve key value of a definition object

Parameters:

Name Type Default Description
definitionObj any - definition object which contains key value pair where the value is to be resolved.
context IContext ContextFromPage() context to be used for parsing, default is fromPage context
recursive boolean true -
excludedTypes? [ValueType] - -

Returns: Promise‹object›

resolved key value pairs object


Static resolveValue

resolveValue(sValue: any, context: IContext, recursive: boolean, excludedTypes?: [ValueType], style?: string): Promise‹any›

Parameters:

Name Type Default Description
sValue any - value to be resolved
context IContext ContextFromPage() context with binding object for resolve value
recursive boolean true define whether the sValue can be resolved recursively
excludedTypes? [ValueType] - define the types to be excluded during resolve process
style? string - style class to be applied to the value (currently its only for font icon)

Returns: Promise‹any›