Home Reference Source
public class | source

Templates

Extends:

Queueable → Templates

Example:

templates.render({"targetId":"content","template":"basic"});

Method Summary

Public Methods
public

render(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 render(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.template string

dom id of template to use

json.target string
  • optional

dom id of render target

json.mode string
  • optional

"insert|append"

json.quiet boolean
  • optional

true|false

Example:

templates.render({"targetId":"content","template":"basic"});