Directive page

Includes a library of functions or strings.

Syntax

<%@ page import="lib1, ..." %> <%@ page stringGroup="groupName" %>

Description

Importing a library of strings exposes a global JavaScript object whose name starts with sg_ followed by the name of the library whose special characters have been replaced with '_'. For example, including nms:campaign will create the sg_nms_campaign variable.

Example


      <%@ page import="xtk:shared/nl.js,nms:campaign.js" %>
<%@ page stringGroup="nms:campaign" %>
...
<%= sg_nms_campaign.stateLabel() %>
...