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

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

      Google icon name

    • Optionallabel?: string
    • Optionalonclick?: string

      currently only URLs are supported

    • Optionalpriority?: number

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

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