Flarum (v2.0.0-beta.1)
    Preparing search index...
    interface IUploadImageButtonAttrs {
        "aria-label"?: string | ChildArray;
        disabled?: boolean;
        icon?: string;
        loading?: boolean;
        name: string;
        routePath: string;
        type?: string;
        url?: string | (() => string | null) | null;
        value?: string | (() => string | null) | null;
        [property: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [property: string]: any

      Any other virtual element properties, including attributes and event handlers.

    Index

    Properties

    "aria-label"?: string | ChildArray

    Accessible text for the button. This should always be present if the button only contains an icon.

    The textual content of this attribute is passed to the DOM element as aria-label.

    disabled?: boolean

    Disables button from user input.

    Default: false

    icon?: string

    Class(es) of an optional icon to be rendered within the button.

    If provided, the button will gain a has-icon class.

    loading?: boolean

    Show a loading spinner within the button.

    If true, also disables the button.

    Default: false

    name: string
    routePath: string
    type?: string

    Button type.

    Default: "button"

    url?: string | (() => string | null) | null
    value?: string | (() => string | null) | null