@IsAbsoluteUrl (JavaScript)
Specifies whether a resource name is an absolute URL.
Defined in
@Functions (Extension Library)Syntax
@IsAbsoluteUrl(url:string) : boolean
Parameter | Description |
---|---|
url:string |
A resource name. |
Attribute | Description |
---|---|
boolean |
True if the name is an absolute URL; false otherwise. |
Examples
This computed field converts a resource name to an absolute URL if necessary.return @IsAbsoluteUrl(requestScope.name) ? requestScope.name : @AbsoluteUrl(requestScope.name)