Url Field

<sw-url-field> extends <sw-text-field>

ready
Url field component which supports a switch for https and http.

Usage

Loading...
<sw-field type="url" label="Name" placeholder="Placeholder"
switchLabel="My shop uses https"></sw-field>

Methods

Method name Parameters
createdComponent No parameters
onInput event
onChange event
checkInput inputValue
changeMode disabled

Imports

  • ./sw-url-field.html.twig
  • ./sw-url-field.scss

Watcher

  • value

SASS variables

Variable name Value
$sw-field-color-secure $color-emerald ($color-emerald-500)

Twig blocks

  • sw_url_field
  • sw_text_field