com.yandex.div.dsl.model.DivTabs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivTabs internal constructor(
@JsonIgnore override val accessibility: Property?,
@JsonIgnore override val alignmentHorizontal: Property?,
@JsonIgnore override val alignmentVertical: Property?,
@JsonIgnore override val alpha: Property?,
@JsonIgnore override val background: Property>?,
@JsonIgnore override val border: Property?,
@JsonIgnore override val columnSpan: Property?,
@JsonIgnore val dynamicHeight: Property?,
@JsonIgnore override val extensions: Property>?,
@JsonIgnore override val focus: Property?,
@JsonIgnore val hasSeparator: Property?,
@JsonIgnore override val height: Property?,
@JsonIgnore override val id: Property?,
@JsonIgnore val items: Property>?,
@JsonIgnore override val margins: Property?,
@JsonIgnore override val paddings: Property?,
@JsonIgnore val restrictParentScroll: Property?,
@JsonIgnore override val rowSpan: Property?,
@JsonIgnore override val selectedActions: Property>?,
@JsonIgnore val selectedTab: Property?,
@JsonIgnore val separatorColor: Property?,
@JsonIgnore val separatorPaddings: Property?,
@JsonIgnore val switchTabsByContentSwipeEnabled: Property?,
@JsonIgnore val tabTitleStyle: Property?,
@JsonIgnore val titlePaddings: Property?,
@JsonIgnore override val tooltips: Property>?,
@JsonIgnore override val transform: Property?,
@JsonIgnore override val transitionChange: Property?,
@JsonIgnore override val transitionIn: Property?,
@JsonIgnore override val transitionOut: Property?,
@JsonIgnore override val transitionTriggers: Property>?,
@JsonIgnore override val visibility: Property?,
@JsonIgnore override val visibilityAction: Property?,
@JsonIgnore override val visibilityActions: Property>?,
@JsonIgnore override val width: Property?,
) : Div, DivBase {
@JsonProperty("type") override val type = "tabs"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"accessibility" to accessibility,
"alignment_horizontal" to alignmentHorizontal,
"alignment_vertical" to alignmentVertical,
"alpha" to alpha,
"background" to background,
"border" to border,
"column_span" to columnSpan,
"dynamic_height" to dynamicHeight,
"extensions" to extensions,
"focus" to focus,
"has_separator" to hasSeparator,
"height" to height,
"id" to id,
"items" to items,
"margins" to margins,
"paddings" to paddings,
"restrict_parent_scroll" to restrictParentScroll,
"row_span" to rowSpan,
"selected_actions" to selectedActions,
"selected_tab" to selectedTab,
"separator_color" to separatorColor,
"separator_paddings" to separatorPaddings,
"switch_tabs_by_content_swipe_enabled" to switchTabsByContentSwipeEnabled,
"tab_title_style" to tabTitleStyle,
"title_paddings" to titlePaddings,
"tooltips" to tooltips,
"transform" to transform,
"transition_change" to transitionChange,
"transition_in" to transitionIn,
"transition_out" to transitionOut,
"transition_triggers" to transitionTriggers,
"visibility" to visibility,
"visibility_action" to visibilityAction,
"visibility_actions" to visibilityActions,
"width" to width,
)
}
class Item internal constructor(
@JsonIgnore val div: Property?,
@JsonIgnore val title: Property?,
@JsonIgnore val titleClickAction: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"div" to div,
"title" to title,
"title_click_action" to titleClickAction,
)
}
}
class TabTitleStyle internal constructor(
@JsonIgnore val activeBackgroundColor: Property?,
@JsonIgnore val activeFontWeight: Property?,
@JsonIgnore val activeTextColor: Property?,
@JsonIgnore val animationDuration: Property?,
@JsonIgnore val animationType: Property?,
@JsonIgnore val cornerRadius: Property?,
@JsonIgnore val cornersRadius: Property?,
@JsonIgnore val fontFamily: Property?,
@JsonIgnore val fontSize: Property?,
@JsonIgnore val fontSizeUnit: Property?,
@JsonIgnore val fontWeight: Property?,
@JsonIgnore val inactiveBackgroundColor: Property?,
@JsonIgnore val inactiveFontWeight: Property?,
@JsonIgnore val inactiveTextColor: Property?,
@JsonIgnore val itemSpacing: Property?,
@JsonIgnore val letterSpacing: Property?,
@JsonIgnore val lineHeight: Property?,
@JsonIgnore val paddings: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"active_background_color" to activeBackgroundColor,
"active_font_weight" to activeFontWeight,
"active_text_color" to activeTextColor,
"animation_duration" to animationDuration,
"animation_type" to animationType,
"corner_radius" to cornerRadius,
"corners_radius" to cornersRadius,
"font_family" to fontFamily,
"font_size" to fontSize,
"font_size_unit" to fontSizeUnit,
"font_weight" to fontWeight,
"inactive_background_color" to inactiveBackgroundColor,
"inactive_font_weight" to inactiveFontWeight,
"inactive_text_color" to inactiveTextColor,
"item_spacing" to itemSpacing,
"letter_spacing" to letterSpacing,
"line_height" to lineHeight,
"paddings" to paddings,
)
}
enum class AnimationType(@JsonValue val value: String) {
SLIDE("slide"),
FADE("fade"),
NONE("none"),
}
}
}
fun TemplateContext.divTabs(): LiteralProperty {
return value(DivTabs(
accessibility = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
background = null,
border = null,
columnSpan = null,
dynamicHeight = null,
extensions = null,
focus = null,
hasSeparator = null,
height = null,
id = null,
items = null,
margins = null,
paddings = null,
restrictParentScroll = null,
rowSpan = null,
selectedActions = null,
selectedTab = null,
separatorColor = null,
separatorPaddings = null,
switchTabsByContentSwipeEnabled = null,
tabTitleStyle = null,
titlePaddings = null,
tooltips = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
))
}
fun TemplateContext.divTabs(
items: Property>? = null,
accessibility: Property? = null,
alignmentHorizontal: Property? = null,
alignmentVertical: Property? = null,
alpha: Property? = null,
background: Property>? = null,
border: Property? = null,
columnSpan: Property? = null,
dynamicHeight: Property? = null,
extensions: Property>? = null,
focus: Property? = null,
hasSeparator: Property? = null,
height: Property? = null,
id: Property? = null,
margins: Property? = null,
paddings: Property? = null,
restrictParentScroll: Property? = null,
rowSpan: Property? = null,
selectedActions: Property>? = null,
selectedTab: Property? = null,
separatorColor: Property? = null,
separatorPaddings: Property? = null,
switchTabsByContentSwipeEnabled: Property? = null,
tabTitleStyle: Property? = null,
titlePaddings: Property? = null,
tooltips: Property>? = null,
transform: Property? = null,
transitionChange: Property? = null,
transitionIn: Property? = null,
transitionOut: Property? = null,
transitionTriggers: Property>? = null,
visibility: Property? = null,
visibilityAction: Property? = null,
visibilityActions: Property>? = null,
width: Property? = null,
): LiteralProperty {
return value(DivTabs(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnSpan = columnSpan,
dynamicHeight = dynamicHeight,
extensions = extensions,
focus = focus,
hasSeparator = hasSeparator,
height = height,
id = id,
items = items,
margins = margins,
paddings = paddings,
restrictParentScroll = restrictParentScroll,
rowSpan = rowSpan,
selectedActions = selectedActions,
selectedTab = selectedTab,
separatorColor = separatorColor,
separatorPaddings = separatorPaddings,
switchTabsByContentSwipeEnabled = switchTabsByContentSwipeEnabled,
tabTitleStyle = tabTitleStyle,
titlePaddings = titlePaddings,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
))
}
fun TemplateContext.divTabs(
items: List? = null,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
dynamicHeight: BoolInt? = null,
extensions: List? = null,
focus: DivFocus? = null,
hasSeparator: BoolInt? = null,
height: DivSize? = null,
id: String? = null,
margins: DivEdgeInsets? = null,
paddings: DivEdgeInsets? = null,
restrictParentScroll: BoolInt? = null,
rowSpan: Int? = null,
selectedActions: List? = null,
selectedTab: Int? = null,
separatorColor: Color? = null,
separatorPaddings: DivEdgeInsets? = null,
switchTabsByContentSwipeEnabled: BoolInt? = null,
tabTitleStyle: DivTabs.TabTitleStyle? = null,
titlePaddings: DivEdgeInsets? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): LiteralProperty {
return value(DivTabs(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
dynamicHeight = optionalValue(dynamicHeight),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
hasSeparator = optionalValue(hasSeparator),
height = optionalValue(height),
id = optionalValue(id),
items = optionalValue(items),
margins = optionalValue(margins),
paddings = optionalValue(paddings),
restrictParentScroll = optionalValue(restrictParentScroll),
rowSpan = optionalValue(rowSpan),
selectedActions = optionalValue(selectedActions),
selectedTab = optionalValue(selectedTab),
separatorColor = optionalValue(separatorColor),
separatorPaddings = optionalValue(separatorPaddings),
switchTabsByContentSwipeEnabled = optionalValue(switchTabsByContentSwipeEnabled),
tabTitleStyle = optionalValue(tabTitleStyle),
titlePaddings = optionalValue(titlePaddings),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
))
}
fun TemplateContext.item(): LiteralProperty {
return value(DivTabs.Item(
div = null,
title = null,
titleClickAction = null,
))
}
fun TemplateContext.item(
div: Property? = null,
title: Property? = null,
titleClickAction: Property? = null,
): LiteralProperty {
return value(DivTabs.Item(
div = div,
title = title,
titleClickAction = titleClickAction,
))
}
fun TemplateContext.item(
div: Div? = null,
title: String? = null,
titleClickAction: DivAction? = null,
): LiteralProperty {
return value(DivTabs.Item(
div = optionalValue(div),
title = optionalValue(title),
titleClickAction = optionalValue(titleClickAction),
))
}
fun TemplateContext.tabTitleStyle(): LiteralProperty {
return value(DivTabs.TabTitleStyle(
activeBackgroundColor = null,
activeFontWeight = null,
activeTextColor = null,
animationDuration = null,
animationType = null,
cornerRadius = null,
cornersRadius = null,
fontFamily = null,
fontSize = null,
fontSizeUnit = null,
fontWeight = null,
inactiveBackgroundColor = null,
inactiveFontWeight = null,
inactiveTextColor = null,
itemSpacing = null,
letterSpacing = null,
lineHeight = null,
paddings = null,
))
}
fun TemplateContext.tabTitleStyle(
activeBackgroundColor: Property? = null,
activeFontWeight: Property? = null,
activeTextColor: Property? = null,
animationDuration: Property? = null,
animationType: Property? = null,
cornerRadius: Property? = null,
cornersRadius: Property? = null,
fontFamily: Property? = null,
fontSize: Property? = null,
fontSizeUnit: Property? = null,
fontWeight: Property? = null,
inactiveBackgroundColor: Property? = null,
inactiveFontWeight: Property? = null,
inactiveTextColor: Property? = null,
itemSpacing: Property? = null,
letterSpacing: Property? = null,
lineHeight: Property? = null,
paddings: Property? = null,
): LiteralProperty {
return value(DivTabs.TabTitleStyle(
activeBackgroundColor = activeBackgroundColor,
activeFontWeight = activeFontWeight,
activeTextColor = activeTextColor,
animationDuration = animationDuration,
animationType = animationType,
cornerRadius = cornerRadius,
cornersRadius = cornersRadius,
fontFamily = fontFamily,
fontSize = fontSize,
fontSizeUnit = fontSizeUnit,
fontWeight = fontWeight,
inactiveBackgroundColor = inactiveBackgroundColor,
inactiveFontWeight = inactiveFontWeight,
inactiveTextColor = inactiveTextColor,
itemSpacing = itemSpacing,
letterSpacing = letterSpacing,
lineHeight = lineHeight,
paddings = paddings,
))
}
fun TemplateContext.tabTitleStyle(
activeBackgroundColor: Color? = null,
activeFontWeight: DivFontWeight? = null,
activeTextColor: Color? = null,
animationDuration: Int? = null,
animationType: DivTabs.TabTitleStyle.AnimationType? = null,
cornerRadius: Int? = null,
cornersRadius: DivCornersRadius? = null,
fontFamily: DivFontFamily? = null,
fontSize: Int? = null,
fontSizeUnit: DivSizeUnit? = null,
fontWeight: DivFontWeight? = null,
inactiveBackgroundColor: Color? = null,
inactiveFontWeight: DivFontWeight? = null,
inactiveTextColor: Color? = null,
itemSpacing: Int? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
paddings: DivEdgeInsets? = null,
): LiteralProperty {
return value(DivTabs.TabTitleStyle(
activeBackgroundColor = optionalValue(activeBackgroundColor),
activeFontWeight = optionalValue(activeFontWeight),
activeTextColor = optionalValue(activeTextColor),
animationDuration = optionalValue(animationDuration),
animationType = optionalValue(animationType),
cornerRadius = optionalValue(cornerRadius),
cornersRadius = optionalValue(cornersRadius),
fontFamily = optionalValue(fontFamily),
fontSize = optionalValue(fontSize),
fontSizeUnit = optionalValue(fontSizeUnit),
fontWeight = optionalValue(fontWeight),
inactiveBackgroundColor = optionalValue(inactiveBackgroundColor),
inactiveFontWeight = optionalValue(inactiveFontWeight),
inactiveTextColor = optionalValue(inactiveTextColor),
itemSpacing = optionalValue(itemSpacing),
letterSpacing = optionalValue(letterSpacing),
lineHeight = optionalValue(lineHeight),
paddings = optionalValue(paddings),
))
}
fun CardContext.divTabs(
items: ValueProperty>,
accessibility: ValueProperty? = null,
alignmentHorizontal: ValueProperty? = null,
alignmentVertical: ValueProperty? = null,
alpha: ValueProperty? = null,
background: ValueProperty>? = null,
border: ValueProperty? = null,
columnSpan: ValueProperty? = null,
dynamicHeight: ValueProperty? = null,
extensions: ValueProperty>? = null,
focus: ValueProperty? = null,
hasSeparator: ValueProperty? = null,
height: ValueProperty? = null,
id: ValueProperty? = null,
margins: ValueProperty? = null,
paddings: ValueProperty? = null,
restrictParentScroll: ValueProperty? = null,
rowSpan: ValueProperty? = null,
selectedActions: ValueProperty>? = null,
selectedTab: ValueProperty? = null,
separatorColor: ValueProperty? = null,
separatorPaddings: ValueProperty? = null,
switchTabsByContentSwipeEnabled: ValueProperty? = null,
tabTitleStyle: ValueProperty? = null,
titlePaddings: ValueProperty? = null,
tooltips: ValueProperty>? = null,
transform: ValueProperty? = null,
transitionChange: ValueProperty? = null,
transitionIn: ValueProperty? = null,
transitionOut: ValueProperty? = null,
transitionTriggers: ValueProperty>? = null,
visibility: ValueProperty? = null,
visibilityAction: ValueProperty? = null,
visibilityActions: ValueProperty>? = null,
width: ValueProperty? = null,
): DivTabs {
return DivTabs(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnSpan = columnSpan,
dynamicHeight = dynamicHeight,
extensions = extensions,
focus = focus,
hasSeparator = hasSeparator,
height = height,
id = id,
items = items,
margins = margins,
paddings = paddings,
restrictParentScroll = restrictParentScroll,
rowSpan = rowSpan,
selectedActions = selectedActions,
selectedTab = selectedTab,
separatorColor = separatorColor,
separatorPaddings = separatorPaddings,
switchTabsByContentSwipeEnabled = switchTabsByContentSwipeEnabled,
tabTitleStyle = tabTitleStyle,
titlePaddings = titlePaddings,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
}
fun CardContext.divTabs(
items: List,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
dynamicHeight: BoolInt? = null,
extensions: List? = null,
focus: DivFocus? = null,
hasSeparator: BoolInt? = null,
height: DivSize? = null,
id: String? = null,
margins: DivEdgeInsets? = null,
paddings: DivEdgeInsets? = null,
restrictParentScroll: BoolInt? = null,
rowSpan: Int? = null,
selectedActions: List? = null,
selectedTab: Int? = null,
separatorColor: Color? = null,
separatorPaddings: DivEdgeInsets? = null,
switchTabsByContentSwipeEnabled: BoolInt? = null,
tabTitleStyle: DivTabs.TabTitleStyle? = null,
titlePaddings: DivEdgeInsets? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): DivTabs {
return DivTabs(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
dynamicHeight = optionalValue(dynamicHeight),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
hasSeparator = optionalValue(hasSeparator),
height = optionalValue(height),
id = optionalValue(id),
items = value(items),
margins = optionalValue(margins),
paddings = optionalValue(paddings),
restrictParentScroll = optionalValue(restrictParentScroll),
rowSpan = optionalValue(rowSpan),
selectedActions = optionalValue(selectedActions),
selectedTab = optionalValue(selectedTab),
separatorColor = optionalValue(separatorColor),
separatorPaddings = optionalValue(separatorPaddings),
switchTabsByContentSwipeEnabled = optionalValue(switchTabsByContentSwipeEnabled),
tabTitleStyle = optionalValue(tabTitleStyle),
titlePaddings = optionalValue(titlePaddings),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
)
}
fun CardContext.item(
div: ValueProperty,
title: ValueProperty,
titleClickAction: ValueProperty? = null,
): DivTabs.Item {
return DivTabs.Item(
div = div,
title = title,
titleClickAction = titleClickAction,
)
}
fun CardContext.item(
div: Div,
title: String,
titleClickAction: DivAction? = null,
): DivTabs.Item {
return DivTabs.Item(
div = value(div),
title = value(title),
titleClickAction = optionalValue(titleClickAction),
)
}
fun CardContext.tabTitleStyle(): DivTabs.TabTitleStyle {
return DivTabs.TabTitleStyle(
activeBackgroundColor = null,
activeFontWeight = null,
activeTextColor = null,
animationDuration = null,
animationType = null,
cornerRadius = null,
cornersRadius = null,
fontFamily = null,
fontSize = null,
fontSizeUnit = null,
fontWeight = null,
inactiveBackgroundColor = null,
inactiveFontWeight = null,
inactiveTextColor = null,
itemSpacing = null,
letterSpacing = null,
lineHeight = null,
paddings = null,
)
}
fun CardContext.tabTitleStyle(
activeBackgroundColor: ValueProperty? = null,
activeFontWeight: ValueProperty? = null,
activeTextColor: ValueProperty? = null,
animationDuration: ValueProperty? = null,
animationType: ValueProperty? = null,
cornerRadius: ValueProperty? = null,
cornersRadius: ValueProperty? = null,
fontFamily: ValueProperty? = null,
fontSize: ValueProperty? = null,
fontSizeUnit: ValueProperty? = null,
fontWeight: ValueProperty? = null,
inactiveBackgroundColor: ValueProperty? = null,
inactiveFontWeight: ValueProperty? = null,
inactiveTextColor: ValueProperty? = null,
itemSpacing: ValueProperty? = null,
letterSpacing: ValueProperty? = null,
lineHeight: ValueProperty? = null,
paddings: ValueProperty? = null,
): DivTabs.TabTitleStyle {
return DivTabs.TabTitleStyle(
activeBackgroundColor = activeBackgroundColor,
activeFontWeight = activeFontWeight,
activeTextColor = activeTextColor,
animationDuration = animationDuration,
animationType = animationType,
cornerRadius = cornerRadius,
cornersRadius = cornersRadius,
fontFamily = fontFamily,
fontSize = fontSize,
fontSizeUnit = fontSizeUnit,
fontWeight = fontWeight,
inactiveBackgroundColor = inactiveBackgroundColor,
inactiveFontWeight = inactiveFontWeight,
inactiveTextColor = inactiveTextColor,
itemSpacing = itemSpacing,
letterSpacing = letterSpacing,
lineHeight = lineHeight,
paddings = paddings,
)
}
fun CardContext.tabTitleStyle(
activeBackgroundColor: Color? = null,
activeFontWeight: DivFontWeight? = null,
activeTextColor: Color? = null,
animationDuration: Int? = null,
animationType: DivTabs.TabTitleStyle.AnimationType? = null,
cornerRadius: Int? = null,
cornersRadius: DivCornersRadius? = null,
fontFamily: DivFontFamily? = null,
fontSize: Int? = null,
fontSizeUnit: DivSizeUnit? = null,
fontWeight: DivFontWeight? = null,
inactiveBackgroundColor: Color? = null,
inactiveFontWeight: DivFontWeight? = null,
inactiveTextColor: Color? = null,
itemSpacing: Int? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
paddings: DivEdgeInsets? = null,
): DivTabs.TabTitleStyle {
return DivTabs.TabTitleStyle(
activeBackgroundColor = optionalValue(activeBackgroundColor),
activeFontWeight = optionalValue(activeFontWeight),
activeTextColor = optionalValue(activeTextColor),
animationDuration = optionalValue(animationDuration),
animationType = optionalValue(animationType),
cornerRadius = optionalValue(cornerRadius),
cornersRadius = optionalValue(cornersRadius),
fontFamily = optionalValue(fontFamily),
fontSize = optionalValue(fontSize),
fontSizeUnit = optionalValue(fontSizeUnit),
fontWeight = optionalValue(fontWeight),
inactiveBackgroundColor = optionalValue(inactiveBackgroundColor),
inactiveFontWeight = optionalValue(inactiveFontWeight),
inactiveTextColor = optionalValue(inactiveTextColor),
itemSpacing = optionalValue(itemSpacing),
letterSpacing = optionalValue(letterSpacing),
lineHeight = optionalValue(lineHeight),
paddings = optionalValue(paddings),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy