Namespace: WebJS

webjs-server~ WebJS

WebJS server utility
Source:

Members

<static, constant> CLIENT_SCRIPTS :Array

Default WebJS client scripts added to generated web pages
Type:
  • Array
Source:

<static, constant> CSS :Array

Default WebJS CSSs added to generated web pages
Type:
  • Array
Source:

Methods

<static> appendHtmlFile(node, htmlFile)

Appends a static HTML file into a given node
Parameters:
Name Type Description
node Object jQuery Node to be appended
htmlFile String HTML filename
Source:

<static> checkBindings(bindNames, callbackExists, callbackNotExists)

Tests the existence of bind variables
Parameters:
Name Type Description
bindNames Array List of bind variables names
callbackExists function Function executed if the bindings exist
callbackNotExists function Function executed if the bindings not exist
Source:

<static> escape(selector) → {String}

Escapes a selector
Parameters:
Name Type Description
selector String The selector to be escaped
Source:
To Do:
  • To be completed
Returns:
The escaped selector
Type
String

<static> escapeClass(clazz) → {String}

Escapes an HTML class
Parameters:
Name Type Description
clazz String The class to be escaped
Source:
Returns:
The escaped class
Type
String

<static> escapeId(id) → {String}

Escapes an HTML id
Parameters:
Name Type Description
id String The id to be escaped
Source:
Returns:
The escaped id
Type
String

<static> getTheme() → {String}

Return the used theme
Source:
To Do:
  • Parameterize theme for the user
Returns:
The theme name
Type
String

<static> isWholePageRendered()

Returns true if the whole page is rendered
Source: