The Interactive Type displays the contents in the form of guide messages. The highlighted feature or element in the application will be surrounded with a border and a guide message, in the form of a tool tip, which provides the description of the element in a subtle way. The guide messages with tool tips are essentially referred as "Coach Marks." The Interactive Type coach marks can be applied only for web applications and hybrid mobile applications. For detailed information on the Static Type coach marks, refer Static Type. Perform the following steps to enable the Interactive Type coach marks for web applications and hybrid mobile applications built using Canvas Technology:
For web apps, open the CT_HOME.jsp file in your project, e.g. …\CTModelHouse\src\main\jsp\CT_Home.jsp.
For hybrid mobile apps, open the m_CT_Home.jsp file in your project, e.g. …\CTModelHouse\src\main\jsp\m_CT_Home.jsp. |
For web applications, specify data-chardin-sequenced="true" inside the body element of CT_HOME.jsp file in your project, as shown in the following code snippet:
For hybrid mobile apps, you must specify data-chardin-sequenced="true" inside the body element of m_CT_HOME.jsp file in your project. |
<body data-chardin-sequenced="true"> |
In the same theme folder, in _canvas.scss and _canvas-config.scss files, specify the imported chardinjs, as shown in the following code snippet:
@import "chardinjs"; |
Specify the path of chardinjs.min.js plugin in the JQTBS_PLUGINS fileset in canvasondemandjs.xml file, as shown in the following code snippet:
<file url="/CTRIAFramework/javascript/view/jqtbs/plugins/chardinjs.min.js"/> |
Specify the path of the canvas.util.coachmarks.js file in the jqtbs_CT_VIEW_BASE fileset in canvasondemandjs.xml file, as shown in the following code snippet:
<file url="/CTRIAFramework/javascript/view/jqtbs/common/canvas.util.coachmarks.js"/> |
Specify the path of the ct.coachmarks.js file in the CT_READY fileset in ondemandjsfiles_lib.xml, as shown in the following code snippet:
<file url ="/javascript/ct.coachMarks.js"/> |
Ensure that the appropriate values and keys are provided in the ct.coachmarks.js file. The following code snippet serves as a sample reference:
var config = { "type": "interactive", // For web apps and hybrid mobile apps "coachMarks": [{ "type": "data-item-id", "selectorVal": "ct-user-details", "msg": "user details", "position": "left" }, { "type": "data-item-id", "selectorVal": "ct_logo", "msg": "Canvas logo", "position": "bottom" }, ], "bundle": "common" }; |
|
The following screen shot showcases the User Details in the form of Interactive Type coach marks in a hybrid mobile application:
The following screen shot showcases the Canvas Logo in the form of Interactive Type coach marks in a hybrid mobile application: