divkit.dsl.Input.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.
@file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import kotlin.Any
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
* Text input element.
*
* Can be created using the method [input].
*
* Required parameters: `type, text_variable`.
*/
@Generated
class Input internal constructor(
@JsonIgnore
val properties: Properties,
) : Div {
@JsonAnyGetter
internal fun getJsonProperties(): Map = properties.mergeWith(
mapOf("type" to "input")
)
operator fun plus(additive: Properties): Input = Input(
Properties(
accessibility = additive.accessibility ?: properties.accessibility,
alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal,
alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical,
alpha = additive.alpha ?: properties.alpha,
background = additive.background ?: properties.background,
border = additive.border ?: properties.border,
columnSpan = additive.columnSpan ?: properties.columnSpan,
disappearActions = additive.disappearActions ?: properties.disappearActions,
extensions = additive.extensions ?: properties.extensions,
focus = additive.focus ?: properties.focus,
fontFamily = additive.fontFamily ?: properties.fontFamily,
fontSize = additive.fontSize ?: properties.fontSize,
fontSizeUnit = additive.fontSizeUnit ?: properties.fontSizeUnit,
fontWeight = additive.fontWeight ?: properties.fontWeight,
fontWeightValue = additive.fontWeightValue ?: properties.fontWeightValue,
height = additive.height ?: properties.height,
highlightColor = additive.highlightColor ?: properties.highlightColor,
hintColor = additive.hintColor ?: properties.hintColor,
hintText = additive.hintText ?: properties.hintText,
id = additive.id ?: properties.id,
isEnabled = additive.isEnabled ?: properties.isEnabled,
keyboardType = additive.keyboardType ?: properties.keyboardType,
layoutProvider = additive.layoutProvider ?: properties.layoutProvider,
letterSpacing = additive.letterSpacing ?: properties.letterSpacing,
lineHeight = additive.lineHeight ?: properties.lineHeight,
margins = additive.margins ?: properties.margins,
mask = additive.mask ?: properties.mask,
maxLength = additive.maxLength ?: properties.maxLength,
maxVisibleLines = additive.maxVisibleLines ?: properties.maxVisibleLines,
nativeInterface = additive.nativeInterface ?: properties.nativeInterface,
paddings = additive.paddings ?: properties.paddings,
reuseId = additive.reuseId ?: properties.reuseId,
rowSpan = additive.rowSpan ?: properties.rowSpan,
selectAllOnFocus = additive.selectAllOnFocus ?: properties.selectAllOnFocus,
selectedActions = additive.selectedActions ?: properties.selectedActions,
textAlignmentHorizontal = additive.textAlignmentHorizontal ?: properties.textAlignmentHorizontal,
textAlignmentVertical = additive.textAlignmentVertical ?: properties.textAlignmentVertical,
textColor = additive.textColor ?: properties.textColor,
textVariable = additive.textVariable ?: properties.textVariable,
tooltips = additive.tooltips ?: properties.tooltips,
transform = additive.transform ?: properties.transform,
transitionChange = additive.transitionChange ?: properties.transitionChange,
transitionIn = additive.transitionIn ?: properties.transitionIn,
transitionOut = additive.transitionOut ?: properties.transitionOut,
transitionTriggers = additive.transitionTriggers ?: properties.transitionTriggers,
validators = additive.validators ?: properties.validators,
variables = additive.variables ?: properties.variables,
visibility = additive.visibility ?: properties.visibility,
visibilityAction = additive.visibilityAction ?: properties.visibilityAction,
visibilityActions = additive.visibilityActions ?: properties.visibilityActions,
width = additive.width ?: properties.width,
)
)
class Properties internal constructor(
/**
* Accessibility settings.
*/
val accessibility: Property?,
/**
* Horizontal alignment of an element inside the parent element.
*/
val alignmentHorizontal: Property?,
/**
* Vertical alignment of an element inside the parent element.
*/
val alignmentVertical: Property?,
/**
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* Default value: `1.0`.
*/
val alpha: Property?,
/**
* Element background. It can contain multiple layers.
*/
val background: Property>?,
/**
* Element stroke.
*/
val border: Property?,
/**
* Merges cells in a column of the [grid](div-grid.md) element.
*/
val columnSpan: Property?,
/**
* Actions when an element disappears from the screen.
*/
val disappearActions: Property>?,
/**
* Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
*/
val extensions: Property>?,
/**
* Parameters when focusing on an element or losing focus.
*/
val focus: Property?,
/**
* Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
*/
val fontFamily: Property?,
/**
* Font size.
* Default value: `12`.
*/
val fontSize: Property?,
/**
* Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* Default value: `sp`.
*/
val fontSizeUnit: Property?,
/**
* Style.
* Default value: `regular`.
*/
val fontWeight: Property?,
/**
* Style. Numeric value.
*/
val fontWeightValue: Property?,
/**
* Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* Default value: `{"type": "wrap_content"}`.
*/
val height: Property?,
/**
* Text highlight color. If the value isn't set, the color set in the client will be used instead.
*/
val highlightColor: Property?,
/**
* Text color.
* Default value: `#73000000`.
*/
val hintColor: Property?,
/**
* Tooltip text.
*/
val hintText: Property?,
/**
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
*/
val id: Property?,
/**
* Indicates if the text editing is enabled.
* Default value: `true`.
*/
val isEnabled: Property?,
/**
* Keyboard type.
* Default value: `multi_line_text`.
*/
val keyboardType: Property?,
/**
* Provides element real size values after a layout cycle.
*/
val layoutProvider: Property?,
/**
* Spacing between characters.
* Default value: `0`.
*/
val letterSpacing: Property?,
/**
* Line spacing of the text. Units specified in `font_size_unit`.
*/
val lineHeight: Property?,
/**
* External margins from the element stroke.
*/
val margins: Property?,
/**
* Mask for entering text based on the specified template.
*/
val mask: Property?,
/**
* Maximum number of characters that can be entered in the input field.
*/
val maxLength: Property?,
/**
* Maximum number of lines to be displayed in the input field.
*/
val maxVisibleLines: Property?,
/**
* Text input line used in the native interface.
*/
val nativeInterface: Property?,
/**
* Internal margins from the element stroke.
*/
val paddings: Property?,
/**
* Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
*/
val reuseId: Property?,
/**
* Merges cells in a string of the [grid](div-grid.md) element.
*/
val rowSpan: Property?,
/**
* Highlighting input text when focused.
* Default value: `false`.
*/
val selectAllOnFocus: Property?,
/**
* List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
*/
val selectedActions: Property>?,
/**
* Horizontal text alignment.
* Default value: `start`.
*/
val textAlignmentHorizontal: Property?,
/**
* Vertical text alignment.
* Default value: `center`.
*/
val textAlignmentVertical: Property?,
/**
* Text color.
* Default value: `#FF000000`.
*/
val textColor: Property?,
/**
* Name of text storage variable.
*/
val textVariable: Property?,
/**
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
*/
val tooltips: Property>?,
/**
* Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
*/
val transform: Property?,
/**
* Change animation. It is played when the position or size of an element changes in the new layout.
*/
val transitionChange: Property?,
/**
* Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
*/
val transitionIn: Property?,
/**
* Disappearance animation. It is played when an element disappears in the new layout.
*/
val transitionOut: Property?,
/**
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
*/
val transitionTriggers: Property>>?,
/**
* Validator that checks that the field value meets the specified conditions.
*/
val validators: Property>?,
/**
* Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
*/
val variables: Property>?,
/**
* Element visibility.
* Default value: `visible`.
*/
val visibility: Property?,
/**
* Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
*/
val visibilityAction: Property?,
/**
* Actions when an element appears on the screen.
*/
val visibilityActions: Property>?,
/**
* Element width.
* Default value: `{"type": "match_parent"}`.
*/
val width: Property?,
) {
internal fun mergeWith(properties: Map): Map {
val result = mutableMapOf()
result.putAll(properties)
result.tryPutProperty("accessibility", accessibility)
result.tryPutProperty("alignment_horizontal", alignmentHorizontal)
result.tryPutProperty("alignment_vertical", alignmentVertical)
result.tryPutProperty("alpha", alpha)
result.tryPutProperty("background", background)
result.tryPutProperty("border", border)
result.tryPutProperty("column_span", columnSpan)
result.tryPutProperty("disappear_actions", disappearActions)
result.tryPutProperty("extensions", extensions)
result.tryPutProperty("focus", focus)
result.tryPutProperty("font_family", fontFamily)
result.tryPutProperty("font_size", fontSize)
result.tryPutProperty("font_size_unit", fontSizeUnit)
result.tryPutProperty("font_weight", fontWeight)
result.tryPutProperty("font_weight_value", fontWeightValue)
result.tryPutProperty("height", height)
result.tryPutProperty("highlight_color", highlightColor)
result.tryPutProperty("hint_color", hintColor)
result.tryPutProperty("hint_text", hintText)
result.tryPutProperty("id", id)
result.tryPutProperty("is_enabled", isEnabled)
result.tryPutProperty("keyboard_type", keyboardType)
result.tryPutProperty("layout_provider", layoutProvider)
result.tryPutProperty("letter_spacing", letterSpacing)
result.tryPutProperty("line_height", lineHeight)
result.tryPutProperty("margins", margins)
result.tryPutProperty("mask", mask)
result.tryPutProperty("max_length", maxLength)
result.tryPutProperty("max_visible_lines", maxVisibleLines)
result.tryPutProperty("native_interface", nativeInterface)
result.tryPutProperty("paddings", paddings)
result.tryPutProperty("reuse_id", reuseId)
result.tryPutProperty("row_span", rowSpan)
result.tryPutProperty("select_all_on_focus", selectAllOnFocus)
result.tryPutProperty("selected_actions", selectedActions)
result.tryPutProperty("text_alignment_horizontal", textAlignmentHorizontal)
result.tryPutProperty("text_alignment_vertical", textAlignmentVertical)
result.tryPutProperty("text_color", textColor)
result.tryPutProperty("text_variable", textVariable)
result.tryPutProperty("tooltips", tooltips)
result.tryPutProperty("transform", transform)
result.tryPutProperty("transition_change", transitionChange)
result.tryPutProperty("transition_in", transitionIn)
result.tryPutProperty("transition_out", transitionOut)
result.tryPutProperty("transition_triggers", transitionTriggers)
result.tryPutProperty("validators", validators)
result.tryPutProperty("variables", variables)
result.tryPutProperty("visibility", visibility)
result.tryPutProperty("visibility_action", visibilityAction)
result.tryPutProperty("visibility_actions", visibilityActions)
result.tryPutProperty("width", width)
return result
}
}
/**
* Keyboard type.
*
* Possible values: [single_line_text], [multi_line_text], [phone], [number], [email], [uri], [password].
*/
@Generated
sealed interface KeyboardType
/**
* Text input line used in the native interface.
*
* Can be created using the method [inputNativeInterface].
*
* Required parameters: `color`.
*/
@Generated
class NativeInterface internal constructor(
@JsonIgnore
val properties: Properties,
) {
@JsonAnyGetter
internal fun getJsonProperties(): Map = properties.mergeWith(emptyMap())
operator fun plus(additive: Properties): NativeInterface = NativeInterface(
Properties(
color = additive.color ?: properties.color,
)
)
class Properties internal constructor(
/**
* Text input line color.
*/
val color: Property?,
) {
internal fun mergeWith(properties: Map): Map {
val result = mutableMapOf()
result.putAll(properties)
result.tryPutProperty("color", color)
return result
}
}
}
}
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun DivScope.input(
`use named arguments`: Guard = Guard.instance,
accessibility: Accessibility? = null,
alignmentHorizontal: AlignmentHorizontal? = null,
alignmentVertical: AlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: Border? = null,
columnSpan: Int? = null,
disappearActions: List? = null,
extensions: List? = null,
focus: Focus? = null,
fontFamily: String? = null,
fontSize: Int? = null,
fontSizeUnit: SizeUnit? = null,
fontWeight: FontWeight? = null,
fontWeightValue: Int? = null,
height: Size? = null,
highlightColor: Color? = null,
hintColor: Color? = null,
hintText: String? = null,
id: String? = null,
isEnabled: Boolean? = null,
keyboardType: Input.KeyboardType? = null,
layoutProvider: LayoutProvider? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
margins: EdgeInsets? = null,
mask: InputMask? = null,
maxLength: Int? = null,
maxVisibleLines: Int? = null,
nativeInterface: Input.NativeInterface? = null,
paddings: EdgeInsets? = null,
reuseId: String? = null,
rowSpan: Int? = null,
selectAllOnFocus: Boolean? = null,
selectedActions: List? = null,
textAlignmentHorizontal: AlignmentHorizontal? = null,
textAlignmentVertical: AlignmentVertical? = null,
textColor: Color? = null,
textVariable: String? = null,
tooltips: List? = null,
transform: Transform? = null,
transitionChange: ChangeTransition? = null,
transitionIn: AppearanceTransition? = null,
transitionOut: AppearanceTransition? = null,
transitionTriggers: List>? = null,
validators: List? = null,
variables: List? = null,
visibility: Visibility? = null,
visibilityAction: VisibilityAction? = null,
visibilityActions: List? = null,
width: Size? = null,
): Input = Input(
Input.Properties(
accessibility = valueOrNull(accessibility),
alignmentHorizontal = valueOrNull(alignmentHorizontal),
alignmentVertical = valueOrNull(alignmentVertical),
alpha = valueOrNull(alpha),
background = valueOrNull(background),
border = valueOrNull(border),
columnSpan = valueOrNull(columnSpan),
disappearActions = valueOrNull(disappearActions),
extensions = valueOrNull(extensions),
focus = valueOrNull(focus),
fontFamily = valueOrNull(fontFamily),
fontSize = valueOrNull(fontSize),
fontSizeUnit = valueOrNull(fontSizeUnit),
fontWeight = valueOrNull(fontWeight),
fontWeightValue = valueOrNull(fontWeightValue),
height = valueOrNull(height),
highlightColor = valueOrNull(highlightColor),
hintColor = valueOrNull(hintColor),
hintText = valueOrNull(hintText),
id = valueOrNull(id),
isEnabled = valueOrNull(isEnabled),
keyboardType = valueOrNull(keyboardType),
layoutProvider = valueOrNull(layoutProvider),
letterSpacing = valueOrNull(letterSpacing),
lineHeight = valueOrNull(lineHeight),
margins = valueOrNull(margins),
mask = valueOrNull(mask),
maxLength = valueOrNull(maxLength),
maxVisibleLines = valueOrNull(maxVisibleLines),
nativeInterface = valueOrNull(nativeInterface),
paddings = valueOrNull(paddings),
reuseId = valueOrNull(reuseId),
rowSpan = valueOrNull(rowSpan),
selectAllOnFocus = valueOrNull(selectAllOnFocus),
selectedActions = valueOrNull(selectedActions),
textAlignmentHorizontal = valueOrNull(textAlignmentHorizontal),
textAlignmentVertical = valueOrNull(textAlignmentVertical),
textColor = valueOrNull(textColor),
textVariable = valueOrNull(textVariable),
tooltips = valueOrNull(tooltips),
transform = valueOrNull(transform),
transitionChange = valueOrNull(transitionChange),
transitionIn = valueOrNull(transitionIn),
transitionOut = valueOrNull(transitionOut),
transitionTriggers = valueOrNull(transitionTriggers),
validators = valueOrNull(validators),
variables = valueOrNull(variables),
visibility = valueOrNull(visibility),
visibilityAction = valueOrNull(visibilityAction),
visibilityActions = valueOrNull(visibilityActions),
width = valueOrNull(width),
)
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun DivScope.inputProps(
`use named arguments`: Guard = Guard.instance,
accessibility: Accessibility? = null,
alignmentHorizontal: AlignmentHorizontal? = null,
alignmentVertical: AlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: Border? = null,
columnSpan: Int? = null,
disappearActions: List? = null,
extensions: List? = null,
focus: Focus? = null,
fontFamily: String? = null,
fontSize: Int? = null,
fontSizeUnit: SizeUnit? = null,
fontWeight: FontWeight? = null,
fontWeightValue: Int? = null,
height: Size? = null,
highlightColor: Color? = null,
hintColor: Color? = null,
hintText: String? = null,
id: String? = null,
isEnabled: Boolean? = null,
keyboardType: Input.KeyboardType? = null,
layoutProvider: LayoutProvider? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
margins: EdgeInsets? = null,
mask: InputMask? = null,
maxLength: Int? = null,
maxVisibleLines: Int? = null,
nativeInterface: Input.NativeInterface? = null,
paddings: EdgeInsets? = null,
reuseId: String? = null,
rowSpan: Int? = null,
selectAllOnFocus: Boolean? = null,
selectedActions: List? = null,
textAlignmentHorizontal: AlignmentHorizontal? = null,
textAlignmentVertical: AlignmentVertical? = null,
textColor: Color? = null,
textVariable: String? = null,
tooltips: List? = null,
transform: Transform? = null,
transitionChange: ChangeTransition? = null,
transitionIn: AppearanceTransition? = null,
transitionOut: AppearanceTransition? = null,
transitionTriggers: List>? = null,
validators: List? = null,
variables: List? = null,
visibility: Visibility? = null,
visibilityAction: VisibilityAction? = null,
visibilityActions: List? = null,
width: Size? = null,
) = Input.Properties(
accessibility = valueOrNull(accessibility),
alignmentHorizontal = valueOrNull(alignmentHorizontal),
alignmentVertical = valueOrNull(alignmentVertical),
alpha = valueOrNull(alpha),
background = valueOrNull(background),
border = valueOrNull(border),
columnSpan = valueOrNull(columnSpan),
disappearActions = valueOrNull(disappearActions),
extensions = valueOrNull(extensions),
focus = valueOrNull(focus),
fontFamily = valueOrNull(fontFamily),
fontSize = valueOrNull(fontSize),
fontSizeUnit = valueOrNull(fontSizeUnit),
fontWeight = valueOrNull(fontWeight),
fontWeightValue = valueOrNull(fontWeightValue),
height = valueOrNull(height),
highlightColor = valueOrNull(highlightColor),
hintColor = valueOrNull(hintColor),
hintText = valueOrNull(hintText),
id = valueOrNull(id),
isEnabled = valueOrNull(isEnabled),
keyboardType = valueOrNull(keyboardType),
layoutProvider = valueOrNull(layoutProvider),
letterSpacing = valueOrNull(letterSpacing),
lineHeight = valueOrNull(lineHeight),
margins = valueOrNull(margins),
mask = valueOrNull(mask),
maxLength = valueOrNull(maxLength),
maxVisibleLines = valueOrNull(maxVisibleLines),
nativeInterface = valueOrNull(nativeInterface),
paddings = valueOrNull(paddings),
reuseId = valueOrNull(reuseId),
rowSpan = valueOrNull(rowSpan),
selectAllOnFocus = valueOrNull(selectAllOnFocus),
selectedActions = valueOrNull(selectedActions),
textAlignmentHorizontal = valueOrNull(textAlignmentHorizontal),
textAlignmentVertical = valueOrNull(textAlignmentVertical),
textColor = valueOrNull(textColor),
textVariable = valueOrNull(textVariable),
tooltips = valueOrNull(tooltips),
transform = valueOrNull(transform),
transitionChange = valueOrNull(transitionChange),
transitionIn = valueOrNull(transitionIn),
transitionOut = valueOrNull(transitionOut),
transitionTriggers = valueOrNull(transitionTriggers),
validators = valueOrNull(validators),
variables = valueOrNull(variables),
visibility = valueOrNull(visibility),
visibilityAction = valueOrNull(visibilityAction),
visibilityActions = valueOrNull(visibilityActions),
width = valueOrNull(width),
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun TemplateScope.inputRefs(
`use named arguments`: Guard = Guard.instance,
accessibility: ReferenceProperty? = null,
alignmentHorizontal: ReferenceProperty? = null,
alignmentVertical: ReferenceProperty? = null,
alpha: ReferenceProperty? = null,
background: ReferenceProperty>? = null,
border: ReferenceProperty? = null,
columnSpan: ReferenceProperty? = null,
disappearActions: ReferenceProperty>? = null,
extensions: ReferenceProperty>? = null,
focus: ReferenceProperty? = null,
fontFamily: ReferenceProperty? = null,
fontSize: ReferenceProperty? = null,
fontSizeUnit: ReferenceProperty? = null,
fontWeight: ReferenceProperty? = null,
fontWeightValue: ReferenceProperty? = null,
height: ReferenceProperty? = null,
highlightColor: ReferenceProperty? = null,
hintColor: ReferenceProperty? = null,
hintText: ReferenceProperty? = null,
id: ReferenceProperty? = null,
isEnabled: ReferenceProperty? = null,
keyboardType: ReferenceProperty? = null,
layoutProvider: ReferenceProperty? = null,
letterSpacing: ReferenceProperty? = null,
lineHeight: ReferenceProperty? = null,
margins: ReferenceProperty? = null,
mask: ReferenceProperty? = null,
maxLength: ReferenceProperty? = null,
maxVisibleLines: ReferenceProperty? = null,
nativeInterface: ReferenceProperty? = null,
paddings: ReferenceProperty? = null,
reuseId: ReferenceProperty? = null,
rowSpan: ReferenceProperty? = null,
selectAllOnFocus: ReferenceProperty? = null,
selectedActions: ReferenceProperty>? = null,
textAlignmentHorizontal: ReferenceProperty? = null,
textAlignmentVertical: ReferenceProperty? = null,
textColor: ReferenceProperty? = null,
textVariable: ReferenceProperty? = null,
tooltips: ReferenceProperty>? = null,
transform: ReferenceProperty? = null,
transitionChange: ReferenceProperty? = null,
transitionIn: ReferenceProperty? = null,
transitionOut: ReferenceProperty? = null,
transitionTriggers: ReferenceProperty>>? = null,
validators: ReferenceProperty>? = null,
variables: ReferenceProperty>? = null,
visibility: ReferenceProperty? = null,
visibilityAction: ReferenceProperty? = null,
visibilityActions: ReferenceProperty>? = null,
width: ReferenceProperty? = null,
) = Input.Properties(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnSpan = columnSpan,
disappearActions = disappearActions,
extensions = extensions,
focus = focus,
fontFamily = fontFamily,
fontSize = fontSize,
fontSizeUnit = fontSizeUnit,
fontWeight = fontWeight,
fontWeightValue = fontWeightValue,
height = height,
highlightColor = highlightColor,
hintColor = hintColor,
hintText = hintText,
id = id,
isEnabled = isEnabled,
keyboardType = keyboardType,
layoutProvider = layoutProvider,
letterSpacing = letterSpacing,
lineHeight = lineHeight,
margins = margins,
mask = mask,
maxLength = maxLength,
maxVisibleLines = maxVisibleLines,
nativeInterface = nativeInterface,
paddings = paddings,
reuseId = reuseId,
rowSpan = rowSpan,
selectAllOnFocus = selectAllOnFocus,
selectedActions = selectedActions,
textAlignmentHorizontal = textAlignmentHorizontal,
textAlignmentVertical = textAlignmentVertical,
textColor = textColor,
textVariable = textVariable,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
validators = validators,
variables = variables,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun Input.override(
`use named arguments`: Guard = Guard.instance,
accessibility: Accessibility? = null,
alignmentHorizontal: AlignmentHorizontal? = null,
alignmentVertical: AlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: Border? = null,
columnSpan: Int? = null,
disappearActions: List? = null,
extensions: List? = null,
focus: Focus? = null,
fontFamily: String? = null,
fontSize: Int? = null,
fontSizeUnit: SizeUnit? = null,
fontWeight: FontWeight? = null,
fontWeightValue: Int? = null,
height: Size? = null,
highlightColor: Color? = null,
hintColor: Color? = null,
hintText: String? = null,
id: String? = null,
isEnabled: Boolean? = null,
keyboardType: Input.KeyboardType? = null,
layoutProvider: LayoutProvider? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
margins: EdgeInsets? = null,
mask: InputMask? = null,
maxLength: Int? = null,
maxVisibleLines: Int? = null,
nativeInterface: Input.NativeInterface? = null,
paddings: EdgeInsets? = null,
reuseId: String? = null,
rowSpan: Int? = null,
selectAllOnFocus: Boolean? = null,
selectedActions: List? = null,
textAlignmentHorizontal: AlignmentHorizontal? = null,
textAlignmentVertical: AlignmentVertical? = null,
textColor: Color? = null,
textVariable: String? = null,
tooltips: List? = null,
transform: Transform? = null,
transitionChange: ChangeTransition? = null,
transitionIn: AppearanceTransition? = null,
transitionOut: AppearanceTransition? = null,
transitionTriggers: List>? = null,
validators: List? = null,
variables: List? = null,
visibility: Visibility? = null,
visibilityAction: VisibilityAction? = null,
visibilityActions: List? = null,
width: Size? = null,
): Input = Input(
Input.Properties(
accessibility = valueOrNull(accessibility) ?: properties.accessibility,
alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal,
alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical,
alpha = valueOrNull(alpha) ?: properties.alpha,
background = valueOrNull(background) ?: properties.background,
border = valueOrNull(border) ?: properties.border,
columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan,
disappearActions = valueOrNull(disappearActions) ?: properties.disappearActions,
extensions = valueOrNull(extensions) ?: properties.extensions,
focus = valueOrNull(focus) ?: properties.focus,
fontFamily = valueOrNull(fontFamily) ?: properties.fontFamily,
fontSize = valueOrNull(fontSize) ?: properties.fontSize,
fontSizeUnit = valueOrNull(fontSizeUnit) ?: properties.fontSizeUnit,
fontWeight = valueOrNull(fontWeight) ?: properties.fontWeight,
fontWeightValue = valueOrNull(fontWeightValue) ?: properties.fontWeightValue,
height = valueOrNull(height) ?: properties.height,
highlightColor = valueOrNull(highlightColor) ?: properties.highlightColor,
hintColor = valueOrNull(hintColor) ?: properties.hintColor,
hintText = valueOrNull(hintText) ?: properties.hintText,
id = valueOrNull(id) ?: properties.id,
isEnabled = valueOrNull(isEnabled) ?: properties.isEnabled,
keyboardType = valueOrNull(keyboardType) ?: properties.keyboardType,
layoutProvider = valueOrNull(layoutProvider) ?: properties.layoutProvider,
letterSpacing = valueOrNull(letterSpacing) ?: properties.letterSpacing,
lineHeight = valueOrNull(lineHeight) ?: properties.lineHeight,
margins = valueOrNull(margins) ?: properties.margins,
mask = valueOrNull(mask) ?: properties.mask,
maxLength = valueOrNull(maxLength) ?: properties.maxLength,
maxVisibleLines = valueOrNull(maxVisibleLines) ?: properties.maxVisibleLines,
nativeInterface = valueOrNull(nativeInterface) ?: properties.nativeInterface,
paddings = valueOrNull(paddings) ?: properties.paddings,
reuseId = valueOrNull(reuseId) ?: properties.reuseId,
rowSpan = valueOrNull(rowSpan) ?: properties.rowSpan,
selectAllOnFocus = valueOrNull(selectAllOnFocus) ?: properties.selectAllOnFocus,
selectedActions = valueOrNull(selectedActions) ?: properties.selectedActions,
textAlignmentHorizontal = valueOrNull(textAlignmentHorizontal) ?: properties.textAlignmentHorizontal,
textAlignmentVertical = valueOrNull(textAlignmentVertical) ?: properties.textAlignmentVertical,
textColor = valueOrNull(textColor) ?: properties.textColor,
textVariable = valueOrNull(textVariable) ?: properties.textVariable,
tooltips = valueOrNull(tooltips) ?: properties.tooltips,
transform = valueOrNull(transform) ?: properties.transform,
transitionChange = valueOrNull(transitionChange) ?: properties.transitionChange,
transitionIn = valueOrNull(transitionIn) ?: properties.transitionIn,
transitionOut = valueOrNull(transitionOut) ?: properties.transitionOut,
transitionTriggers = valueOrNull(transitionTriggers) ?: properties.transitionTriggers,
validators = valueOrNull(validators) ?: properties.validators,
variables = valueOrNull(variables) ?: properties.variables,
visibility = valueOrNull(visibility) ?: properties.visibility,
visibilityAction = valueOrNull(visibilityAction) ?: properties.visibilityAction,
visibilityActions = valueOrNull(visibilityActions) ?: properties.visibilityActions,
width = valueOrNull(width) ?: properties.width,
)
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun Input.defer(
`use named arguments`: Guard = Guard.instance,
accessibility: ReferenceProperty? = null,
alignmentHorizontal: ReferenceProperty? = null,
alignmentVertical: ReferenceProperty? = null,
alpha: ReferenceProperty? = null,
background: ReferenceProperty>? = null,
border: ReferenceProperty? = null,
columnSpan: ReferenceProperty? = null,
disappearActions: ReferenceProperty>? = null,
extensions: ReferenceProperty>? = null,
focus: ReferenceProperty? = null,
fontFamily: ReferenceProperty? = null,
fontSize: ReferenceProperty? = null,
fontSizeUnit: ReferenceProperty? = null,
fontWeight: ReferenceProperty? = null,
fontWeightValue: ReferenceProperty? = null,
height: ReferenceProperty? = null,
highlightColor: ReferenceProperty? = null,
hintColor: ReferenceProperty? = null,
hintText: ReferenceProperty? = null,
id: ReferenceProperty? = null,
isEnabled: ReferenceProperty? = null,
keyboardType: ReferenceProperty? = null,
layoutProvider: ReferenceProperty? = null,
letterSpacing: ReferenceProperty? = null,
lineHeight: ReferenceProperty? = null,
margins: ReferenceProperty? = null,
mask: ReferenceProperty? = null,
maxLength: ReferenceProperty? = null,
maxVisibleLines: ReferenceProperty? = null,
nativeInterface: ReferenceProperty? = null,
paddings: ReferenceProperty? = null,
reuseId: ReferenceProperty? = null,
rowSpan: ReferenceProperty? = null,
selectAllOnFocus: ReferenceProperty? = null,
selectedActions: ReferenceProperty>? = null,
textAlignmentHorizontal: ReferenceProperty? = null,
textAlignmentVertical: ReferenceProperty? = null,
textColor: ReferenceProperty? = null,
textVariable: ReferenceProperty? = null,
tooltips: ReferenceProperty>? = null,
transform: ReferenceProperty? = null,
transitionChange: ReferenceProperty? = null,
transitionIn: ReferenceProperty? = null,
transitionOut: ReferenceProperty? = null,
transitionTriggers: ReferenceProperty>>? = null,
validators: ReferenceProperty>? = null,
variables: ReferenceProperty>? = null,
visibility: ReferenceProperty? = null,
visibilityAction: ReferenceProperty? = null,
visibilityActions: ReferenceProperty>? = null,
width: ReferenceProperty? = null,
): Input = Input(
Input.Properties(
accessibility = accessibility ?: properties.accessibility,
alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
alpha = alpha ?: properties.alpha,
background = background ?: properties.background,
border = border ?: properties.border,
columnSpan = columnSpan ?: properties.columnSpan,
disappearActions = disappearActions ?: properties.disappearActions,
extensions = extensions ?: properties.extensions,
focus = focus ?: properties.focus,
fontFamily = fontFamily ?: properties.fontFamily,
fontSize = fontSize ?: properties.fontSize,
fontSizeUnit = fontSizeUnit ?: properties.fontSizeUnit,
fontWeight = fontWeight ?: properties.fontWeight,
fontWeightValue = fontWeightValue ?: properties.fontWeightValue,
height = height ?: properties.height,
highlightColor = highlightColor ?: properties.highlightColor,
hintColor = hintColor ?: properties.hintColor,
hintText = hintText ?: properties.hintText,
id = id ?: properties.id,
isEnabled = isEnabled ?: properties.isEnabled,
keyboardType = keyboardType ?: properties.keyboardType,
layoutProvider = layoutProvider ?: properties.layoutProvider,
letterSpacing = letterSpacing ?: properties.letterSpacing,
lineHeight = lineHeight ?: properties.lineHeight,
margins = margins ?: properties.margins,
mask = mask ?: properties.mask,
maxLength = maxLength ?: properties.maxLength,
maxVisibleLines = maxVisibleLines ?: properties.maxVisibleLines,
nativeInterface = nativeInterface ?: properties.nativeInterface,
paddings = paddings ?: properties.paddings,
reuseId = reuseId ?: properties.reuseId,
rowSpan = rowSpan ?: properties.rowSpan,
selectAllOnFocus = selectAllOnFocus ?: properties.selectAllOnFocus,
selectedActions = selectedActions ?: properties.selectedActions,
textAlignmentHorizontal = textAlignmentHorizontal ?: properties.textAlignmentHorizontal,
textAlignmentVertical = textAlignmentVertical ?: properties.textAlignmentVertical,
textColor = textColor ?: properties.textColor,
textVariable = textVariable ?: properties.textVariable,
tooltips = tooltips ?: properties.tooltips,
transform = transform ?: properties.transform,
transitionChange = transitionChange ?: properties.transitionChange,
transitionIn = transitionIn ?: properties.transitionIn,
transitionOut = transitionOut ?: properties.transitionOut,
transitionTriggers = transitionTriggers ?: properties.transitionTriggers,
validators = validators ?: properties.validators,
variables = variables ?: properties.variables,
visibility = visibility ?: properties.visibility,
visibilityAction = visibilityAction ?: properties.visibilityAction,
visibilityActions = visibilityActions ?: properties.visibilityActions,
width = width ?: properties.width,
)
)
/**
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param visibility Element visibility.
*/
@Generated
fun Input.evaluate(
`use named arguments`: Guard = Guard.instance,
alignmentHorizontal: ExpressionProperty? = null,
alignmentVertical: ExpressionProperty? = null,
alpha: ExpressionProperty? = null,
columnSpan: ExpressionProperty? = null,
fontFamily: ExpressionProperty? = null,
fontSize: ExpressionProperty? = null,
fontSizeUnit: ExpressionProperty? = null,
fontWeight: ExpressionProperty? = null,
fontWeightValue: ExpressionProperty? = null,
highlightColor: ExpressionProperty? = null,
hintColor: ExpressionProperty? = null,
hintText: ExpressionProperty? = null,
isEnabled: ExpressionProperty? = null,
keyboardType: ExpressionProperty? = null,
letterSpacing: ExpressionProperty? = null,
lineHeight: ExpressionProperty? = null,
maxLength: ExpressionProperty? = null,
maxVisibleLines: ExpressionProperty? = null,
reuseId: ExpressionProperty? = null,
rowSpan: ExpressionProperty? = null,
selectAllOnFocus: ExpressionProperty? = null,
textAlignmentHorizontal: ExpressionProperty? = null,
textAlignmentVertical: ExpressionProperty? = null,
textColor: ExpressionProperty? = null,
visibility: ExpressionProperty? = null,
): Input = Input(
Input.Properties(
accessibility = properties.accessibility,
alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal,
alignmentVertical = alignmentVertical ?: properties.alignmentVertical,
alpha = alpha ?: properties.alpha,
background = properties.background,
border = properties.border,
columnSpan = columnSpan ?: properties.columnSpan,
disappearActions = properties.disappearActions,
extensions = properties.extensions,
focus = properties.focus,
fontFamily = fontFamily ?: properties.fontFamily,
fontSize = fontSize ?: properties.fontSize,
fontSizeUnit = fontSizeUnit ?: properties.fontSizeUnit,
fontWeight = fontWeight ?: properties.fontWeight,
fontWeightValue = fontWeightValue ?: properties.fontWeightValue,
height = properties.height,
highlightColor = highlightColor ?: properties.highlightColor,
hintColor = hintColor ?: properties.hintColor,
hintText = hintText ?: properties.hintText,
id = properties.id,
isEnabled = isEnabled ?: properties.isEnabled,
keyboardType = keyboardType ?: properties.keyboardType,
layoutProvider = properties.layoutProvider,
letterSpacing = letterSpacing ?: properties.letterSpacing,
lineHeight = lineHeight ?: properties.lineHeight,
margins = properties.margins,
mask = properties.mask,
maxLength = maxLength ?: properties.maxLength,
maxVisibleLines = maxVisibleLines ?: properties.maxVisibleLines,
nativeInterface = properties.nativeInterface,
paddings = properties.paddings,
reuseId = reuseId ?: properties.reuseId,
rowSpan = rowSpan ?: properties.rowSpan,
selectAllOnFocus = selectAllOnFocus ?: properties.selectAllOnFocus,
selectedActions = properties.selectedActions,
textAlignmentHorizontal = textAlignmentHorizontal ?: properties.textAlignmentHorizontal,
textAlignmentVertical = textAlignmentVertical ?: properties.textAlignmentVertical,
textColor = textColor ?: properties.textColor,
textVariable = properties.textVariable,
tooltips = properties.tooltips,
transform = properties.transform,
transitionChange = properties.transitionChange,
transitionIn = properties.transitionIn,
transitionOut = properties.transitionOut,
transitionTriggers = properties.transitionTriggers,
validators = properties.validators,
variables = properties.variables,
visibility = visibility ?: properties.visibility,
visibilityAction = properties.visibilityAction,
visibilityActions = properties.visibilityActions,
width = properties.width,
)
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun Component.override(
`use named arguments`: Guard = Guard.instance,
accessibility: Accessibility? = null,
alignmentHorizontal: AlignmentHorizontal? = null,
alignmentVertical: AlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: Border? = null,
columnSpan: Int? = null,
disappearActions: List? = null,
extensions: List? = null,
focus: Focus? = null,
fontFamily: String? = null,
fontSize: Int? = null,
fontSizeUnit: SizeUnit? = null,
fontWeight: FontWeight? = null,
fontWeightValue: Int? = null,
height: Size? = null,
highlightColor: Color? = null,
hintColor: Color? = null,
hintText: String? = null,
id: String? = null,
isEnabled: Boolean? = null,
keyboardType: Input.KeyboardType? = null,
layoutProvider: LayoutProvider? = null,
letterSpacing: Double? = null,
lineHeight: Int? = null,
margins: EdgeInsets? = null,
mask: InputMask? = null,
maxLength: Int? = null,
maxVisibleLines: Int? = null,
nativeInterface: Input.NativeInterface? = null,
paddings: EdgeInsets? = null,
reuseId: String? = null,
rowSpan: Int? = null,
selectAllOnFocus: Boolean? = null,
selectedActions: List? = null,
textAlignmentHorizontal: AlignmentHorizontal? = null,
textAlignmentVertical: AlignmentVertical? = null,
textColor: Color? = null,
textVariable: String? = null,
tooltips: List? = null,
transform: Transform? = null,
transitionChange: ChangeTransition? = null,
transitionIn: AppearanceTransition? = null,
transitionOut: AppearanceTransition? = null,
transitionTriggers: List>? = null,
validators: List? = null,
variables: List? = null,
visibility: Visibility? = null,
visibilityAction: VisibilityAction? = null,
visibilityActions: List? = null,
width: Size? = null,
): Component = Component(
template = template,
properties = Input.Properties(
accessibility = valueOrNull(accessibility),
alignmentHorizontal = valueOrNull(alignmentHorizontal),
alignmentVertical = valueOrNull(alignmentVertical),
alpha = valueOrNull(alpha),
background = valueOrNull(background),
border = valueOrNull(border),
columnSpan = valueOrNull(columnSpan),
disappearActions = valueOrNull(disappearActions),
extensions = valueOrNull(extensions),
focus = valueOrNull(focus),
fontFamily = valueOrNull(fontFamily),
fontSize = valueOrNull(fontSize),
fontSizeUnit = valueOrNull(fontSizeUnit),
fontWeight = valueOrNull(fontWeight),
fontWeightValue = valueOrNull(fontWeightValue),
height = valueOrNull(height),
highlightColor = valueOrNull(highlightColor),
hintColor = valueOrNull(hintColor),
hintText = valueOrNull(hintText),
id = valueOrNull(id),
isEnabled = valueOrNull(isEnabled),
keyboardType = valueOrNull(keyboardType),
layoutProvider = valueOrNull(layoutProvider),
letterSpacing = valueOrNull(letterSpacing),
lineHeight = valueOrNull(lineHeight),
margins = valueOrNull(margins),
mask = valueOrNull(mask),
maxLength = valueOrNull(maxLength),
maxVisibleLines = valueOrNull(maxVisibleLines),
nativeInterface = valueOrNull(nativeInterface),
paddings = valueOrNull(paddings),
reuseId = valueOrNull(reuseId),
rowSpan = valueOrNull(rowSpan),
selectAllOnFocus = valueOrNull(selectAllOnFocus),
selectedActions = valueOrNull(selectedActions),
textAlignmentHorizontal = valueOrNull(textAlignmentHorizontal),
textAlignmentVertical = valueOrNull(textAlignmentVertical),
textColor = valueOrNull(textColor),
textVariable = valueOrNull(textVariable),
tooltips = valueOrNull(tooltips),
transform = valueOrNull(transform),
transitionChange = valueOrNull(transitionChange),
transitionIn = valueOrNull(transitionIn),
transitionOut = valueOrNull(transitionOut),
transitionTriggers = valueOrNull(transitionTriggers),
validators = valueOrNull(validators),
variables = valueOrNull(variables),
visibility = valueOrNull(visibility),
visibilityAction = valueOrNull(visibilityAction),
visibilityActions = valueOrNull(visibilityActions),
width = valueOrNull(width),
).mergeWith(properties)
)
/**
* @param accessibility Accessibility settings.
* @param alignmentHorizontal Horizontal alignment of an element inside the parent element.
* @param alignmentVertical Vertical alignment of an element inside the parent element.
* @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
* @param background Element background. It can contain multiple layers.
* @param border Element stroke.
* @param columnSpan Merges cells in a column of the [grid](div-grid.md) element.
* @param disappearActions Actions when an element disappears from the screen.
* @param extensions Extensions for additional processing of an element. The list of extensions is given in [DivExtension](../../extensions).
* @param focus Parameters when focusing on an element or losing focus.
* @param fontFamily Font family:`text` — a standard text font; `display` — a family of fonts with a large font size.
* @param fontSize Font size.
* @param fontSizeUnit Unit of measurement:`px` — a physical pixel. `dp` — a logical pixel that doesn't depend on screen density. `sp` — a logical pixel that depends on the font size on a device. Specify height in `sp`. Only available on Android.
* @param fontWeight Style.
* @param fontWeightValue Style. Numeric value.
* @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout).
* @param highlightColor Text highlight color. If the value isn't set, the color set in the client will be used instead.
* @param hintColor Text color.
* @param hintText Tooltip text.
* @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS.
* @param isEnabled Indicates if the text editing is enabled.
* @param keyboardType Keyboard type.
* @param layoutProvider Provides element real size values after a layout cycle.
* @param letterSpacing Spacing between characters.
* @param lineHeight Line spacing of the text. Units specified in `font_size_unit`.
* @param margins External margins from the element stroke.
* @param mask Mask for entering text based on the specified template.
* @param maxLength Maximum number of characters that can be entered in the input field.
* @param maxVisibleLines Maximum number of lines to be displayed in the input field.
* @param nativeInterface Text input line used in the native interface.
* @param paddings Internal margins from the element stroke.
* @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md)
* @param rowSpan Merges cells in a string of the [grid](div-grid.md) element.
* @param selectAllOnFocus Highlighting input text when focused.
* @param selectedActions List of [actions](div-action.md) to be executed when selecting an element in [pager](div-pager.md).
* @param textAlignmentHorizontal Horizontal text alignment.
* @param textAlignmentVertical Vertical text alignment.
* @param textColor Text color.
* @param textVariable Name of text storage variable.
* @param tooltips Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`, hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
* @param transform Applies the passed transformation to the element. Content that doesn't fit into the original view area is cut off.
* @param transitionChange Change animation. It is played when the position or size of an element changes in the new layout.
* @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation).
* @param transitionOut Disappearance animation. It is played when an element disappears in the new layout.
* @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`.
* @param validators Validator that checks that the field value meets the specified conditions.
* @param variables Definition of variables that can be used within this element. These variables, defined in the array, can only be used inside this element and its children.
* @param visibility Element visibility.
* @param visibilityAction Tracking visibility of a single element. Not used if the `visibility_actions` parameter is set.
* @param visibilityActions Actions when an element appears on the screen.
* @param width Element width.
*/
@Generated
fun Component.defer(
`use named arguments`: Guard = Guard.instance,
accessibility: ReferenceProperty? = null,
alignmentHorizontal: ReferenceProperty? = null,
alignmentVertical: ReferenceProperty? = null,
alpha: ReferenceProperty? = null,
background: ReferenceProperty>? = null,
border: ReferenceProperty? = null,
columnSpan: ReferenceProperty? = null,
disappearActions: ReferenceProperty>? = null,
extensions: ReferenceProperty>? = null,
focus: ReferenceProperty? = null,
fontFamily: ReferenceProperty? = null,
fontSize: ReferenceProperty? = null,
fontSizeUnit: ReferenceProperty? = null,
fontWeight: ReferenceProperty? = null,
fontWeightValue: ReferenceProperty? = null,
height: ReferenceProperty? = null,
highlightColor: ReferenceProperty? = null,
hintColor: ReferenceProperty? = null,
hintText: ReferenceProperty? = null,
id: ReferenceProperty? = null,
isEnabled: ReferenceProperty? = null,
keyboardType: ReferenceProperty? = null,
layoutProvider: ReferenceProperty? = null,
letterSpacing: ReferenceProperty? = null,
lineHeight: ReferenceProperty? = null,
margins: ReferenceProperty? = null,
mask: ReferenceProperty? = null,
maxLength: ReferenceProperty? = null,
maxVisibleLines: ReferenceProperty