Home Reference Source
public class | source

Menu

Extends:

Queueable → Menu

Example:

menu.initMenu({"targetId":"menu1"});

Method Summary

Public Methods
public

initMenu(pid: number, json: object)

Render a template into the dom using the queues templateProcessor

Inherited Summary

From class Queueable
public

queue: *

public
public

finished(pid: *, mode: *)

Call this method after you command has finished.

public

init(queue: *)

init, override this for any promise based inits setting the self.ready=true after the promise

public

set(pid: *, value: *)

public

start(pid: *, command: *, json: *)

Called from queue, starts running the actual command

Public Methods

public initMenu(pid: number, json: object) source

Render a template into the dom using the queues templateProcessor

Params:

NameTypeAttributeDescription
pid number

Process ID

json object

queue arguments

json.targetId string

dom id of menu

Example:

menu.initMenu({"targetId":"menu1"});