CountryConfig

class CountryConfig(onlyShowCountryCodes: Set<String>, locale: Locale) : DropdownConfig

This is the configuration for a country dropdown.

Constructors

Link copied to clipboard
fun CountryConfig(onlyShowCountryCodes: Set<String> = emptySet(), locale: Locale = Locale.getDefault())

Functions

Link copied to clipboard
open override fun convertFromRaw(rawValue: String): String

This will convert the field to a raw value to use in the parameter map

Link copied to clipboard
open override fun convertToRaw(displayName: String): String?

This will convert from a raw value used in the parameter map to a disiplayValue

Link copied to clipboard
open override fun getDisplayItems(): List<String>

This is the list of displayable items to show in the drop down

Properties

Link copied to clipboard
open override val debugLabel: String

This is a label for debug logs

Link copied to clipboard
open override val label: Int

This is the label to describe the field

Link copied to clipboard
val locale: Locale

: this is the locale used to display the country names.

Link copied to clipboard
val onlyShowCountryCodes: Set<String>

: a list of country code that should be shown. If empty all countries will be shown.