Options
All
  • Public
  • Public/Protected
  • All
Menu

Host application

export
implements

{MicrofeAPI}

Hierarchy

  • Microfe

Implements

Index

Constructors

constructor

  • Create host application

    memberof

    Microfe

    Parameters

    • Default value plugins: Plugin[] = []
    • Default value globalSpace: string = GLOBAL_PATH

      Global space

    Returns Microfe

Methods

clear

  • clear(): this

exit

  • exit(): this

getChildContext

off

  • off(action: string, callback: EventListener): this
  • Remove event listener

    memberof

    Microfe

    Parameters

    • action: string

      Event name

    • callback: EventListener

      Event callback

    Returns this

on

  • on(action: string, callback: EventListener): this
  • Add event listener

    memberof

    Microfe

    Parameters

    • action: string

      Event name

    • callback: EventListener

      Event callback

    Returns this

pushState

  • pushState(pathname: string): this
  • Redirect like history.pushState

    memberof

    Microfe

    Parameters

    • pathname: string

      Target path

    Returns this

register

  • register(childApp: ChildAppData): this

replaceState

  • replaceState(pathname: string): this
  • Redirect like history.replaceState

    memberof

    Microfe

    Parameters

    • pathname: string

      Target path

    Returns this

root

  • root(dom: HTMLElement): this

setHashType

  • Hash mode type

    • false:browser history mode
    • 'slash':#/{path}
    • 'noslash':#{path}
    • 'hashbang':#!/{path}
    memberof

    Microfe

    Parameters

    Returns this

start

  • start(): this

Generated using TypeDoc