public sealed interface TextFieldLineLimits
Values that specify the text wrapping, scrolling, and height measurement behavior for text fields.
Members
SingleLine
public object SingleLine : TextFieldLineLimits
The text field is always a single line tall, ignores newlines in the text, and scrolls horizontally when the text overflows.
Functions
toString
override fun toString(): String
MultiLine
public class MultiLine(
public val minHeightInLines: Int = 1,
public val maxHeightInLines: Int = Int.MAX_VALUE,
) : TextFieldLineLimits
The text field will be at least minHeightInLines tall, if the text overflows it will wrap, and if the text ends up being more than one line the field will grow until it is maxHeightInLines tall and then start scrolling vertically.
It is required that 1 ≤ minHeightInLines ≤ maxHeightInLines.
To specify the minimum and/or maximum height of the field in non-text units, such as dps, use the heightIn modifier.
Functions
toString
override fun toString(): String
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int
Companion
public companion object
Properties
Default
public val Default: TextFieldLineLimits = MultiLine()