typograph-editor-documentation
    Preparing search index...

    Class SVGcontrol

    Index
    • Parameters

      • type: string
      • id: string
      • svg: string
      • width: number
      • height: number
      • label: boolean = true
      • control: boolean = true
      • return_event: boolean = false

      Returns SVGcontrol

    control: boolean = true
    element: HTMLDivElement
    enabeled: boolean = true
    height: number
    id: string
    label: boolean = true
    return_event: boolean = false
    svg: string
    type: string
    width: number
    • The control's name, for its tooltip and a screen reader. An icon names nothing itself: its SVG carries no title element, which would show instead of this one (TYP-1307). Call it after getHTMLElement(), with the text in the user's language.

      Parameters

      • name: string

      Returns void

    • A toggle's state, for a screen reader: the class shows it, this says it.

      Parameters

      • on: boolean

      Returns void