Package-level declarations

Types

Link copied to clipboard
data class ButtonInfo(val title: String, val onClick: () -> Unit = {}, val enabled: Boolean = true)
Link copied to clipboard
data class DropDownMenuItemInfo(val title: String, val subtitle: String = "")

Functions

Link copied to clipboard
fun AppInfoSetting(@DrawableRes logoImage: Int? = null, appName: String = "AppName", appVersion: String = "", appVersionSha: String = BuildConfig.SHORT_SHA)
Link copied to clipboard
Link copied to clipboard
fun <T> ButtonToggleGroup(allValues: LinkedHashMap<T, String>, selectedValue: T, modifier: Modifier = Modifier, onSelectionChanged: (T) -> Unit = {})
fun <T> ButtonToggleGroup(allValues: LinkedHashMap<T, String>, selectedValue: T, modifier: Modifier = Modifier, title: String, onSelectionChanged: (T) -> Unit = {})
Link copied to clipboard
fun CopyButton(title: String, textToCopy: String? = null, modifier: Modifier = Modifier)
Link copied to clipboard
fun <T> DropDownList(modifier: Modifier = Modifier, allItems: Map<T, DropDownMenuItemInfo>, selectedValue: T, title: String? = null, onSelectionChanged: (T) -> Unit = {})
fun <T> DropDownList(allValues: Map<T, String>, selectedValue: T, modifier: Modifier = Modifier, title: String? = null, onSelectionChanged: (T) -> Unit = {})
Link copied to clipboard
fun LinkItem(label: String, selectedValue: String? = null, modifier: Modifier = Modifier, isEnabled: Boolean = true, enabled: Boolean = true, icon: Int = com.mapbox.dash.theming.R.drawable.ic_arrow_right, iconBackground: Color = AppTheme.colors.backgroundColors.quaternary, iconOrientation: LinkIconOrientation = LinkIconOrientation.RIGHT, onClick: () -> Unit = {})
Link copied to clipboard
fun Slider(modifier: Modifier = Modifier, value: Float = 0.5f, onValueChange: (Float) -> Unit = {}, valueRange: ClosedFloatingPointRange<Float> = 0f..1f, steps: Int = 0, enabled: Boolean = true, onValueChangeFinished: () -> Unit? = null)
fun Slider(modifier: Modifier = Modifier, title: String, value: Float = 0.5f, onValueChange: (Float) -> Unit = {}, valueRange: ClosedFloatingPointRange<Float> = 0f..1f, steps: Int = 0, onValueChangeFinished: (Float) -> Unit = {}, supportDecimal: Boolean = false, enabled: Boolean = true)