MaestroThe UI design product. | Form Builder | 22.04 This feature was updated in 22.04.
Maestro provides the Select Language component (widget), which allows form users to select a language that they want to use on a form. You must add and configure a language or multiple languages for a form before a user can select them.
This component inherits properties and shared styles from the Dropdown component.
The following properties are available to the Select Language component:
Boolean useFormLanguages
Boolean
sortOptions
Boolean
hideSingleLanguage
List
options
Label | Value |
---|---|
Language name 1 | Locale code 1 |
Language name 2 | Locale code 2 |
Boolean
sortOptions
Icon icon
Boolean
addBlankValue
The following styles are available to this component:
form[name='form'] {
.avalon-language-selector {
width: auto;
margin-right: 20px;
.wdg-label {
display: none;
}
.av-select-overlay {
display: inline-block;
float: right;
width: 150px;
background-color: transparent;
border: 0;
border-radius: 0;
padding: 0;
min-height: 30px;
outline: none;
box-shadow: none;
cursor: pointer;
}
.wdg-input {
.av-select-value {
right: 25px;
padding: 0;
font-family: @ux-default-font-family;
font-size: @ux-default-font-size;
color: @ux-default-font-color;
}
.wdg-select-icon {
padding: 0;
}
&:hover, &:focus {
.av-select-value {
text-decoration: underline;
}
}
}
}
}
After you've configured the component, you can preview the form to switch between the available languages to verify it works as expected.
Next, learn about the Attachment Field component.