Skip to content

Latest commit

 

History

History
131 lines (77 loc) · 2.29 KB

Resource.md

File metadata and controls

131 lines (77 loc) · 2.29 KB

Class: Resource

Class to use when a property is using a resource from an experience.

Example

@Property({
    displayName: 'Source',
    description: 'Source of the data.',
    defaultValue: null,
    type: Resource
})
public source: Resource;

Implements

Table of contents

Methods

Methods

convertFrom

Static convertFrom(value, propertyOwner?): Resource

Convert a value to a Resource

Parameters

Name Type Description
value string value to convert
propertyOwner? any -

Returns

Resource


canConvertFrom

Static canConvertFrom(value): boolean

Check if we can convert value to Resource

Parameters

Name Type Description
value string value to convert

Returns

boolean


toString

toString(): string

Transform resource to string

Returns

string

Implementation of

IConvertibleType.toString


canConvertTo

canConvertTo(type): boolean

Check if the type can be converted

Parameters

Name Type Description
type unknown targeted type

Returns

boolean

Implementation of

IConvertibleType.canConvertTo


convertTo

convertTo(type): unknown

Function to convert a Resource to another type

Parameters

Name Type Description
type unknown targeted type

Returns

unknown

Implementation of

IConvertibleType.convertTo

Help

Found a problem, a bug? Or need some help?
Please do not create an issue in Github! Ask us via our Support page : https://support.intuiface.com/