Flarum (2.x)
    Preparing search index...
    interface IIconPickerAttrs {
        onclose: (reason: "escape" | "outside") => void;
        onpick: (icon: string) => void;
        toggle?: Children;
        value?: string;
        [property: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [property: string]: any

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

    Index
    onclose: (reason: "escape" | "outside") => void

    Called when the picker should close: on Escape, or a click outside it. Only Escape should move focus back to the field.

    onpick: (icon: string) => void

    Called with the full class of the icon picked.

    toggle?: Children

    Shown before the search box, such as the button that opened the picker, so the picker can stand in for the field it belongs to.

    value?: string

    The class currently chosen, e.g. fas fa-bolt.