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;
▸ Static
convertFrom(value
, propertyOwner?
): Resource
Convert a value to a Resource
Name | Type | Description |
---|---|---|
value |
string |
value to convert |
propertyOwner? |
any |
- |
▸ Static
canConvertFrom(value
): boolean
Check if we can convert value to Resource
Name | Type | Description |
---|---|---|
value |
string |
value to convert |
boolean
▸ toString(): string
Transform resource to string
string
▸ canConvertTo(type
): boolean
Check if the type can be converted
Name | Type | Description |
---|---|---|
type |
unknown |
targeted type |
boolean
▸ convertTo(type
): unknown
Function to convert a Resource to another type
Name | Type | Description |
---|---|---|
type |
unknown |
targeted type |
unknown
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/