Home Reference Source
public class | source

W3Menu

Extends:

Queueable → W3Menu

Example:

	w3menu.initMenu({"targetId":"#menubutton1"});

Method Summary

Public Methods
public

initMenu(pid: number, json: object)

Start the menu on assigned targetId

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

Start the menu on assigned targetId

Params:

NameTypeAttributeDescription
pid number

Process ID

json object

queue arguments

json.targetId string

Dom target of the w3c menu html

Example:

w3menu.initMenu({"targetId":"#menubutton1"});