Type alias NeedleMenuPostMessageModel

NeedleMenuPostMessageModel: {
    button?: {
        icon?: string;
        label?: string;
        onclick?: string;
        priority?: number;
        target?: "_blank" | "_self" | "_parent" | "_top";
    };
    type: "needle:menu";
}

This is the model for the postMessage event that the needle engine will send to create menu items

Type declaration

  • Optional button?: {
        icon?: string;
        label?: string;
        onclick?: string;
        priority?: number;
        target?: "_blank" | "_self" | "_parent" | "_top";
    }
    • Optional icon?: string

      Google icon name

    • Optional label?: string
    • Optional onclick?: string

      currently only URLs are supported

    • Optional priority?: number

      Low priority is icon is on the left, high priority is icon is on the right. Default is 0

    • Optional target?: "_blank" | "_self" | "_parent" | "_top"
  • type: "needle:menu"

Generated using TypeDoc