When creating a widget, define its form, fields, and their behaviour by using the template elements to specify the widget view and the way it displays with HTML and Widget Attributes. The widget template also allows end-users to input data and interact with it. Apply HTML tags and React components to add and control elements such as buttons and various types of fields.
description goes here
<activityfeed table_name="itsm_incident" sys_id="157322330317307618"></activityfeed> |
An Authorisation widget component that contains full functionality of the user authorization including form of registration.
The following attributes are applicable:
Attribute | Type | Default value | Description |
---|---|---|---|
isRegistration | Boolean | False | This attribute is responsible for specifying whether this is a new user registration or not. To register a new user, make this attribute equal to "true". |
isSwitchLang | Boolean | True | |
isRememberMe | Boolean | False | This attribute is responsible for specifying whether should user credentials be saved on this computer or not. To save the credentials, make this attribute equal to "true". |
logo | String | '' | Absolute path to the logo displayed on authorization page. For example: https://example.com/logo.png |
isResetPassword | Boolean | False |
Логотип (указание на изображения из галереи)
Настраиваемая валидация данных в строке с именем пользователя
Настраиваемая валидация данных в строке с пароле
<authfull redirectTo="/portal" isRegistration="true" isSwitchLang="true" isRememberMe="false" isResetPassword="true"></authfull> |
A part of a header that displays a user's name and avatar, or prompts them to log in if they haven't already. The following attributes are applicable:
<authheader profileURL="/portal/cabinet"> |
A Breadcrumbs widget component that displays a navigation chain trailing user activity.
This widget uses the object received from the server script to build the breadcrumbs chain with the format below:
{sys_id, title, url}.
there was text here. it's gone now. |
* img - Иконка (svg) не ссылка, а код svg
* url - Ссылка на которую перейдем при клике на карточку
* name - Заголовок
* short_description - Описание
* button_name - Текст на кнопке
<getlist table_name="sys_service_portal"> <card></card> </getlist> |
Creates a dropdown menu with menu elements on any nesting level.
The following attributes are applicable:
size - (может быть low = __ px ? / medium = __ px ? / large = __ px ?).
<dropdown_widget model="data.menu"></dropdown_widget> |
; (() => { data.menu = { "menu": { "size": "low", "event_to_display": [ "click" ], "sections": [ { "order": "1", "elements": [ { "title": "Text", "order": "1", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [ { "title": "Text22", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [ { "title": "Text2", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [] } ] } ] }, { "title": "Title", "order": "2", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [ { "title": "Text2", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [] } ] } ] }, { "order": "2", "elements": [ { "title": "Text", "order": "1", "event_to_display": ["click"], "events": { "click": "runScript()" }, "child_elements": [] } ] } ] } } })(); |
The dynamic form creating component. It requires the following arguments received from the server script:
(optional) buttons - form UI actions including buttons and other graphical elements.
Specify the way UI actions displayed on the form with the options below:
Specify these options separating them with the coma. |
<form table="name_table" view="name_view" sys_id="sys_number" buttons="header, bottom, link"> </form> |
Виджет для получения списка из АПИ и прокидывания результатов в дочерний виджет.
there was text here. it's gone now. |
This widget allows displaying table items as a list view. The following attributes are applicable:
<listitems tableName="itsm_incident" condition="" listView="Widget" choiceConditionName="state" dateConditionName="sys_created_at" perPage="25" displayColumnNumber="2"></listitems> |
Displays a newsfeed or an announcement list that is generated by the data object received from the server script.
The following attributes are applicable:
<news model="[{ "sys_id": "159038766612804355", "subject": "test subject", "announcement_type": "1", "sys_created_at": "2020-03-04 00:00:00" }, { "sys_id": "148038977612804360", "subject": "test subject 2", "announcement_type": "2", "sys_created_at": "2020-01-20 00:00:00" }]"></news> |
A Search widget component responsible for search functionality.
The following attributes are applicable:
<search search_url=‘/search’ show_title=true size=‘lg’ greeting=‘hello’ placeholder=‘Enter text here’/> |
This element adds a side-menu.
there was text here. it's gone now. |