Тёмный

Detail information about Widget & Widget Instance 

Servicenow Technology
Подписаться 558
Просмотров 543
50% 1

Previous tutorial links
• Service Portal Introdu... (Introduction)
• How to create Service ... (Theme modification)
Widget technical definition
------------------------------------------
Widgets are AngularJS directives. Whenever the page is loaded, a directive is created for each widget. They consist of HTML markup, CSS, a JavaScript controller, and client-side and server-side code. To execute JavaScript code It uses the Rhino engine under the ServiceNow platform.
For example - SC Catalog Item widget, Cool clock widget , and Typehead Search widget etc.
Widget components
--------------------------------
Server Script (It will execute first to retrieve data).
HTML Template (Here we can bind controller variables to display or to perform some specific functionality).
CSS (Here you can write your CSS or sass code to define the look and feel of contents).
Client Script (It takes the server data object and maps with the client object to make use of associated variables of that server data object into HTML. It processes data before rendering it to HTML and using this client script we can pass input to the server and perform specific operations ).
Option Schema (If you want to display static content and you want to make a widget configurable means without touching a single line of code you can replace that through option inputs).
Widget Instance
--------------------------
Whenever you add a widget to the page, the instance will be created for that widget. when the widget runs on the page it uses widget contents and instance properties to display.
By default Instance record has these common fields Title, Short description, Bootstrap color, Bootstrap size, HREF/URL, and Additional options (If you are adding options).
There are different tables for widget instances that define types of instances:-
An Instance with search (sp_instance_ais)
An instance of carousel (sp_instance_carousel)
An Instance with link (sp_instance_link)
An instance with menu (sp_instance_menu)
An Instance with a table (sp_instance_table)
An Instance of a simple list (sp_instance_vlist)

Опубликовано:

 

18 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
AngularJS Introduction and configuration
7:11
GlideRecord
18:55
Просмотров 7 тыс.
ServiceNow Service Portal Self Service Capabilities
4:15
Client scripts with practical examples
1:38:36
Configured Scripted Search Source For Service Portal
22:49
Microservices explained - the What, Why and How?
18:30
Просмотров 856 тыс.
How to Create Helm Charts - The Ultimate Guide
22:26
Просмотров 106 тыс.
What are HTTP Headers in API
17:38
Просмотров 68 тыс.
ServiceNow - Import XLSX in Integration Hub
16:17