Bookshelf Home | Contents | Index | PDF | ![]() ![]() |
Configuring Siebel Open UI > Application Programming Interface > Methods of the Siebel Open UI Application Programming Interface > Template Manager ClassThis topic describes the Template Manager Class. This topic contains the following topics:
The Template Manager class generates HTML for various controls, and uses the following method and syntax: GenerateMarkup( configObject ); The GenerateMarkup method uses only one argument, that is an object. Depending on the properties present in object, Template Manager chooses the appropriate flow for the generation of the HTML. The following list describes the different properties that you can specify via configObject:
This topic describes supported Template Manager controls. The Template Manager class provides mark-up for the many types of controls required in Siebel Open UI. Table 39 lists the supported Template Manager controls. This topic describes examples of using Template Manager. The examples in this section assume that In this example, we use the following code make the call to the Template Manager to generate markup for a normal text field: var markup = tmplMgr.GenerateMarkup({ type : consts.get( "SWE_CTRL_TEXT" ) In the this example, this is the expected HTML string begin held by the markup variable: <input type="text" class="siebui-input " /> In this example, we use the following code make the call to the Template Manager to generate markup for with an additional className: var markup = tmplMgr.GenerateMarkup({ type : consts.get( "SWE_CTRL_TEXT" ), In the this example, this is the expected HTML string begin held by the markup variable: <input type="text" class="siebui-input siebui-align-left" /> In this example, we use the following code make the call to the Template Manager to generate markup for with additional attributes: var markup = tmplMgr.GenerateMarkup({ type : consts.get( "SWE_CTRL_TEXT" ), attrs: "aria-label=\"abc\" aria-labelledby=\"xyz\" aria-describedby=\"123" In the this example, this is the expected HTML string begin held by the markup variable: <input type="text" class="siebui-input " aria-label="abc" aria-labelledby="xyz" aria-describedby="123 /> In this example, we use the following code make the call to the Template Manager to generate a combo box with multiple options, Value 1, Value 2, and Value 3: var markup = tmplMgr.GenerateMarkup({ type : consts.get( "SWE_CTRL_COMBOBOX" ), value: [ "Value 1", "Value 2", "Value 3" ], In the this example, this is the expected HTML string begin held by the markup variable: <select class="siebui-select "> <option selected> Value 2</option> In this example, we use the following code make the call to the Template Manager to generate a hyperlink: var markup = tmplMgr.GenerateMarkup({ type : consts.get( "SWE_CTRL_LINK" ), src : "http://www.oracle.com", In the this example, this is the expected HTML string begin held by the markup variable: <a class="siebui-link" src="http://www.oracle.com>Oracle HomePage</a> |
![]() ![]() |
Configuring Siebel Open UI | Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |