Constructor
new HashUrl(id, paramsopt, nullable)
Creates a hash URL object.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
id |
string | The target id. |
|
params |
Object.<!jrt.FormValue> |
<optional> <nullable> |
Optional parameters object. |
Members
id :string
The URL's target id.
Type:
- string
(non-null) params :Object.<!jrt.FormValue>
The URL parameters
Type:
- Object.<!jrt.FormValue>
Methods
(static) parse(hash) → (nullable) {jrt.HashUrl}
Factory method that extracts the target id and params from the specified hash URL.
Returns null if the hash parameter is not a valid hash URL.
Parameters:
| Name | Type | Description |
|---|---|---|
hash |
string |
Returns:
- Type
- jrt.HashUrl
format() → {string}
Converts this object to a hash URL. This is a hash composed of the target id followed by the query string. If the target id is empty, the resulting URL will only contain the query string. If the query string is also empty, the result is an empty URL. Note that the returned hash is not URL-encoded.
Returns:
- Type
- string