Interface ICascader

    • Field Detail

      • DEFAULT

        static final ICascader DEFAULT
        Constant for default attributes of this immutable component.
    • Method Detail

      • getWidgetClass

        default java.lang.String getWidgetClass()
        Returns the client widget class.

        Default: "zkmax.inp.Cascader"

        Specified by:
        getWidgetClass in interface IComponent<ICascader>
        Returns:
      • getPlaceholder

        @Nullable
        java.lang.String getPlaceholder()
        Returns the placeholder text.

        Default: null

      • withPlaceholder

        ICascader withPlaceholder​(@Nullable
                                  java.lang.String placeholder)
        Returns a copy of this immutable component with the specified placeholder.

        Sets the placeholder text that is displayed when the selected item is empty.

        Parameters:
        placeholder - The placeholder text.

        Default: null.

        Returns:
        A modified copy of the this object
      • isOpen

        default boolean isOpen()
        Returns whether this cascader is open.

        Default: false.

      • withOpen

        ICascader withOpen​(boolean open)
        Returns a copy of this immutable component with the specified open.

        Sets whether to open the dropdown or closes the list of items.

        Parameters:
        open - Whether to open the dropdown or closes the list of items.

        Default: false.

        Returns:
        A modified copy of the this object
      • ofId

        static ICascader ofId​(java.lang.String id)
        Returns the instance with the given id.
        Parameters:
        id - The id to identify this component