Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HTMLElement

Extend the HTMLElement interface with some utility function need by AFX API

interface

HTMLElement

Hierarchy

Index

Properties

mozRequestFullScreen

mozRequestFullScreen: any
memberof

HTMLElement

msRequestFullscreen

msRequestFullscreen: any
memberof

HTMLElement

webkitRequestFullscreen

webkitRequestFullscreen: any
memberof

HTMLElement

Methods

afxml

  • This action allows to generated all the DOM nodes defined by all AFX tags in its hierarchy. It performs two operations, one top-down operation to generate all the necessary DOM nodes, another bottom-up operation to init all the AFX tag in the current element DOM hierarchy

    memberof

    HTMLElement

    Parameters

    Returns void

contextmenuHandle

  • contextmenuHandle(e: MouseEventBase, m: MenuTag): void
  • AFX will automatically bind the context menu on an HTMLElement if this function is defined on that element. The function should define the content of the context menu and its action

    Once the context menu is bound to the element, all context menu handle defined on any child of this element will be ignored.

    memberof

    HTMLElement

    Parameters

    • e: MouseEventBase

      a mouse event

    • m: MenuTag

      The context menu element MenuTag

    Returns void

sync

  • sync(): void
  • Mount the element and all the children on its DOM subtree. This action is performed in a top-down manner

    memberof

    HTMLElement

    Returns void

uify

  • Perform DOM generation (afxml) then mount (sync) all the elements.

    memberof

    HTMLElement

    Parameters

    • o: Announcer

      an AntOS observable object

    • Optional flag: boolean

    Returns void

update

  • update(d?: any): void
  • Recursively update a tag and all its children

    memberof

    HTMLElement

    Parameters

    • Optional d: any

    Returns void