typograph-editor-documentation
    Preparing search index...

    Class Popupmenu_svg

    A popupmenu whose title shows the selected option's SVG icon and whose dropdown lists the options as clickable SVG rows. Used for text justification and vertical alignment. Reuses the base #menulayer dropdown plumbing (selectmenu/hidemenu).

    Hierarchy (View Summary)

    Index
    • Parameters

      • type: string
      • id: string
      • width: number
      • items: { id: string; svg: string }[]
      • current_id: string

      Returns Popupmenu_svg

    _hidemenu: any = ...
    _selectmenu: any = ...
    active: boolean
    arrow: HTMLElement
    container: HTMLElement
    current_id: string
    dialog: Dialog = null
    element: HTMLElement
    id: string
    menucontoler: MenuControler
    menuitems: menuitemdata[]
    on_select: (id: string) => void = null
    popupmenuwidth: number = 200
    removeunderscore: boolean = true
    svg_items: { id: string; svg: string }[]
    title: string
    title_holder: HTMLElement
    type: string
    width: number
    • Parameters

      • cb: (id: string) => void

      Returns void