CountryConfig
class CountryConfig(val onlyShowCountryCodes: Set<String> = emptySet(), val locale: Locale = Locale.getDefault(), val tinyMode: Boolean = false, collapsedLabelMapper: (Country) -> String = { country -> country.name }, expandedLabelMapper: (Country) -> String = { country ->
"${countryCodeToEmoji(country.code.value)} ${country.name}"
}) : DropdownConfig
This is the configuration for a country dropdown.
Parameters
expandedLabelMapper
: function called to get the expanded label for the given country.
Constructors
Link copied to clipboard
fun CountryConfig(onlyShowCountryCodes: Set<String> = emptySet(), locale: Locale = Locale.getDefault(), tinyMode: Boolean = false, collapsedLabelMapper: (Country) -> String = { country -> country.name }, expandedLabelMapper: (Country) -> String = { country ->
"${countryCodeToEmoji(country.code.value)} ${country.name}"
})
Types
Functions
Link copied to clipboard
This will convert from a raw value used in the parameter map to a display value
Link copied to clipboard
The label identifying the selected item used when the dropdown menu is collapsed
Properties
Link copied to clipboard
Link copied to clipboard
: whether to display in "tiny mode" when collapsed, a smaller UI form used when the dropdown menu is inside another component, like PhoneNumberElement.