mithril-materialized
    Preparing search index...

    Interface FloatingActionButtonAttrs

    interface FloatingActionButtonAttrs {
        buttons?: {
            className?: string;
            iconClass?: string;
            iconName: string;
            onclick?: (e: UIEvent) => void;
        }[];
        className?: string;
        direction?: "top"
        | "bottom"
        | "left"
        | "right";
        hoverEnabled?: boolean;
        iconClass?: string;
        iconName: string;
        position?: "left" | "right" | "inline-left" | "inline-right";
        style?: string;
        toolbarEnabled?: boolean;
    }
    Index

    Properties

    buttons?: {
        className?: string;
        iconClass?: string;
        iconName: string;
        onclick?: (e: UIEvent) => void;
    }[]

    The buttons you want to show

    Type Declaration

    • OptionalclassName?: string

      Optional classes you want to add to the main element

    • OptionaliconClass?: string

      Classes of the icon

    • iconName: string

      Name of the icon

    • Optionalonclick?: (e: UIEvent) => void

      On click function

    className?: string

    Optional classes to add to the top element

    direction?: "top" | "bottom" | "left" | "right"

    Direction to open the buttons

    hoverEnabled?: boolean

    Hover behavior

    iconClass?: string

    Optional icon class, e.g. tiny (1em), small (2em), medium (4em), large (6em), or 'tiny right'.

    large
    
    iconName: string

    Material-icons name for the main FAB,

    position?: "left" | "right" | "inline-left" | "inline-right"

    Helper option to place the FAB inline instead of the bottom right of the display

    style?: string

    Optional style to add to the top element, e.g. for positioning it inline

    toolbarEnabled?: boolean

    Whether to show the toolbar