URL
Last updated
Was this helpful?
Last updated
Was this helpful?
Similar to Email, an URL can also be passed as a string. The URL format is derived from the recommended by W3C.
URL format follows the syntax specified in the
The code snippet shows how to define an url
In the Internet Object Document.
The Email is derived from the String type, hence it shares the same as the String. However, URL enforces additional constraints with the respective url format.
The choices
can be added to member variables in the url
so that it is restricted to the fixed set of available choices. Choices must be an array of valid url
. The code snippet here shows how to add choices for the url.
User may specify pattern
for the url
by defining pattern
as,