Enum Class AiMessageInputVariant

java.lang.Object
java.lang.Enum<AiMessageInputVariant>
io.jmix.aichat.component.messageinput.AiMessageInputVariant
All Implemented Interfaces:
com.vaadin.flow.component.shared.ThemeVariant, Serializable, Comparable<AiMessageInputVariant>, Constable

public enum AiMessageInputVariant extends Enum<AiMessageInputVariant> implements com.vaadin.flow.component.shared.ThemeVariant
Set of theme variants applicable for ai-message-input component.
  • Enum Constant Details

    • FIXED_TOOLBAR

      public static final AiMessageInputVariant FIXED_TOOLBAR
      Forces the expanded "toolbar" layout at all times: the textarea spans the top and the prefix/suffix/send controls sit in a row beneath it, even for short input. Without this variant the input is adaptive (single row when short, toolbar once the textarea grows past one line).
  • Method Details

    • values

      public static AiMessageInputVariant[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AiMessageInputVariant valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getVariantName

      public String getVariantName()
      Gets the variant name.
      Specified by:
      getVariantName in interface com.vaadin.flow.component.shared.ThemeVariant
      Returns:
      variant name