UrlInput
An input field that let the user enter a URL
Provides a wrapper for Phoenix.HTML.Form's url_input/3
function.
All options passed via opts
will be sent to url_input/3
, value
and
class
can be set directly and will override anything in opts
.
# Public API
Name | Description | Type | Values | Default |
---|---|---|---|---|
opts
| Options list. |
:keyword
| — |
[]
|
class
| Class or classes to apply to the input. |
:css_class
| — | — |
value
| Value to pre-populated the input. |
:string
| — | — |
field
| An identifier for the input. |
:atom
| — | — |
form
| An identifier for the form. |
:form
| — | — |
Name | Description |
---|
Name | Description |
---|---|
keyup
|
Triggered when a button on the keyboard is released. |
keydown
|
Triggered when a button on the keyboard is pressed. |
capture_click
|
Triggered when the component receives click. |
focus
|
Triggered when the component receives focus. |
blur
|
Triggered when the component loses focus. |
Name | Description | Type |
---|
Name | Description |
---|