update help elma
This commit is contained in:
@ -1,20 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ru">
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Системные функции виджетов</title>
|
||||
<title>System functions in widgets</title>
|
||||
<meta name="generator" content="Help+Manual" />
|
||||
<meta name="keywords" content="" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="В клиентских скриптах виджетов поддерживаются функции, которые автоматически вызываются на разных этапах функционирования виджета. Такие функции являются системными:" />
|
||||
<meta name="description" content="Client scripts in widgets support functions that are called automatically when displaying a widget or saving the form. Here is a list of system functions:" />
|
||||
<meta name="picture" content="" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Cправка по Low-code платформе ELMA365" />
|
||||
<meta property="og:url" content="https://elma365.com/ru/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<meta property="og:site_name" content="ELMA365" />
|
||||
<meta property="og:title" content="Full documentation for BRIX365 platform. Low-code developer guide. User guide. Admin guide. Developer guide." />
|
||||
<meta property="og:url" content="https://brix365.com/en/help" />
|
||||
<meta property="og:image" content="" />
|
||||
<link rel="icon" href="favicon.png" type="image/png" />
|
||||
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
|
||||
@ -24,7 +23,6 @@
|
||||
<link rel="stylesheet" href="./article.css" />
|
||||
<link rel="stylesheet" href="./glossary.css" />
|
||||
<link rel="stylesheet" href="./theme.css" />
|
||||
|
||||
<script type="text/javascript" src="jquery.js"></script>
|
||||
<script type="text/javascript" src="helpman_settings.js"></script>
|
||||
<script type="text/javascript" src="helpman_topicinit.js"></script>
|
||||
@ -36,16 +34,16 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M6ETBEC1R9"></script><script>window.dataLayer=window.dataLayer || []; function gtag(){dataLayer.push(arguments);}gtag('js', new Date()); gtag('config', 'G-M6ETBEC1R9');</script>
|
||||
|
||||
<script>!function(e,t,c,n,r,a,m){e.ym=e.ym||function(){(e.ym.a=e.ym.a||[]).push(arguments)},e.ym.l=1*new Date;for(var s=0;s<document.scripts.length;s++)if(document.scripts[s].src===n)return;a=t.createElement(c),m=t.getElementsByTagName(c)[0],a.async=1,a.src=n,m.parentNode.insertBefore(a,m)}(window,document,"script","https://mc.yandex.ru/metrika/tag.js"),ym(83179930,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce:!0,webvisor:!0})</script><noscript><div><img alt=""src=https://mc.yandex.ru/watch/83179930 style=position:absolute;left:-9999px></div></noscript>
|
||||
|
||||
<header class="header elma-365">
|
||||
<div class="container">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo.svg" alt="header logo">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-en.svg" alt="header logo">
|
||||
</a>
|
||||
<!-- <div class="hero__search-form" id="search-panel">
|
||||
<form class="search-form" onsubmit="ym(83179930,'reachGoal','poisk')">
|
||||
<form class="search-form" onsubmit="ym(83180416,'reachGoal','poisk')">
|
||||
<label class="search-form__label">
|
||||
<span id="reset-search" class="search__icon"></span>
|
||||
<input class="search-form__input" type="text">
|
||||
@ -65,7 +63,7 @@
|
||||
</div>
|
||||
<div class="header__navi">
|
||||
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a class="project-link" href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li><li><a class="project-link" href="https://elma365.com/ru/help/business_solutions/-elma365-store.html">Бизнес-решения</a></li></ul></span></li><li><a href="https://api.elma365.com/ru/"target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/"target="_blank">SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/" target="_blank">Академия</a></li><li><a href="https://elma365.com/ru/" target="_blank">Сайт ELMA365</a></li></ul>
|
||||
<ul class="header__list"><li><span class="solution-select"><span class="solution-select__selected"></span><svg width="7" height="4" viewBox="0 0 7 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L3.5 3.5L6 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/></svg><ul class="solution-select__list"><li><a class="project-link" href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a class="project-link" href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a class="project-link" href="https://brix365.com/en/help/crm/crm_overview.html">CRM</a></li><li><a class="project-link" href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a class="project-link" href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li><li><a class="project-link" href="https://brix365.com/en/help/business_solutions/-elma365-store.html">Business Solutions</a></li></ul></span></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li><li><a href="https://tssdk.brix365.com/" target="_blank">SDK</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
@ -80,8 +78,8 @@
|
||||
|
||||
<aside class="sidebar" id="sidebar">
|
||||
<div class="sidebar__header">
|
||||
<a class="header__logo" href="https://elma365.com/ru/help">
|
||||
<img src="./logo-light.svg">
|
||||
<a class="header__logo" href="https://brix365.com/en/help">
|
||||
<img src="./logo-light-en.svg">
|
||||
</a>
|
||||
<span class="sidebar__close elma-365-close" id="close"></span>
|
||||
</div>
|
||||
@ -94,15 +92,15 @@
|
||||
<div class="article-inner">
|
||||
<div class="content">
|
||||
<header class="article__header">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<div class="article__bread" style="display:flex; gap:10px;">
|
||||
<span id="subcategory" class="search-res__item-category search-res__item-category_subcategory subcategory article__badge"></span>
|
||||
|
||||
<div class="topic__breadcrumbs">
|
||||
<p>Low-code дизайнер > <a href="interface_settings.html">Создание интерфейсов</a> > <a href="client_server_scripts.html">Скрипты в виджетах</a> / Системные функции виджетов</p>
|
||||
<p>Low-code designer > <a href="interface_settings.html">Set up interfaces</a> > <a href="client_server_scripts.html">Scripts in widgets</a> / System functions in widgets</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">Системные функции виджетов</span></h1>
|
||||
<div class="topic__title"><h1 class="p_Heading1"><span class="f_Heading1">System functions in widgets</span></h1>
|
||||
</div>
|
||||
|
||||
</header>
|
||||
@ -111,100 +109,96 @@
|
||||
<a href="#h1-article" class="scroll-top"></a>
|
||||
</div>
|
||||
<!-- Placeholder for topic body. -->
|
||||
<p class="p_Normal">В клиентских скриптах виджетов поддерживаются функции, которые автоматически вызываются на разных этапах функционирования виджета. Такие функции являются системными:</p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">Client scripts in widgets support functions that are called automatically when displaying a widget or saving the <a href="create_form.html" class="topiclink">form</a>. Here is a list of system functions:</span></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">функция инициализации — вызывается при инициализации виджета, до того, как отобразится шаблон;</li><li class="p_Normal">функция проверки условий для отображения виджета — вызывается после выполнения функции инициализации и возвращает <code><b>true</b></code>, если виджет должен быть отображён, и <code><b>false</b></code>, если виджет отображать не нужно;</li><li class="p_Normal"><a id="onload" class="hmanchor"></a>функция окончания отрисовки — вызывается после того, как шаблон виджета полностью отображён на форме или странице. Если в настройках виджета включена опция <a href="common_widget_settings.html#load-asynchronously" class="topiclink">Загружать содержимое асинхронно</a>, функция вызывается при завершении отрисовки самого виджета, но до окончания отрисовки его содержимого;</li></ul>
|
||||
<li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 7px;"><span style="font-family: Inter;">The initialization function. This function is called as the widget is initialized, before the interface template is displayed.</span></li><li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 7px;"><span style="font-family: Inter;">The function checking the widget’s display settings. This function is called after the initialization function. It returns </span><code><b>true</b></code><span style="font-family: Inter;"> if the widget should be displayed and </span><code><b>false</b></code><span style="font-family: Inter;"> if it shouldn’t.</span></li><li class="p_Normal" style="line-height: 2.10;"><a id="onload" class="hmanchor"></a>The rendering completion function. This function is called after the widget template is fully rendered in the browser. If the <a href="common_widget_settings.html#load-asynchronously" class="topiclink">Load the contents asynchronously</a> option is enabled in the widget settings, the function is called upon the completion of rendering the widget itself, but before its content is rendered.</li><li class="p_Normal" style="line-height: 2.10;">The destroy function. This function is called in order to end the widget<span style="font-family: Inter;">’s work</span> and free system resources from the data associated with its operation.</li><li style="line-height: 1.20; margin-top: 7px; margin-right: 0; margin-bottom: 7px;"><span style="font-family: Inter;">The validation function. This function is called when the user tries to save the form. It checks whether the form’s fields are filled out correctly.</span></li></ul>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">These functions are optional. You can use them in the scripts and select them on the <a href="designer-tabs.html#settings" class="topiclink">Settings</a> tab in the interface designer.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">By default, the following functions are called if they are defined in the script:</span></p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">функция уничтожения — вызывается, чтобы завершить выполнение функциональности виджета и освободить ресурсы системы от связанных с его работой данных; </li></ul>
|
||||
<ul style="list-style-type:disc">
|
||||
<li class="p_Normal">функция валидации — вызывается при попытке сохранить форму и проверяет правильность заполнения её полей.</li></ul>
|
||||
<p class="p_Normal">Эти функции не являются обязательными. Вы можете использовать их в скриптах и указывать на вкладке <a href="designer-tabs.html#settings-tab" class="topiclink">Настройки</a> в дизайнере интерфейсов.</p>
|
||||
<p style="margin: 7px 0 16px 0;">По умолчанию выполняются следующие функции, если они заданы в скриптах:</p>
|
||||
<ul style="list-style-type:disc">
|
||||
<li style="margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><code><b>onInit()</b></code> — при инициализации виджета;</li><li style="margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><code><b>canRender()</b></code><span style="font-size: 13px;"> </span>— при проверке условий отображения виджета;</li><li style="margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><code><b>onLoad()</b></code> — при завершении отрисовки виджета;</li><li style="margin-top: 7px; margin-right: 0; margin-bottom: 16px;"><code><b>destroy()</b></code> — при окончании работы виджета.</li></ul>
|
||||
<p style="margin: 7px 0 16px 0;">Функция пользовательской валидации по умолчанию не задана.</p>
|
||||
<h2 class="p_Heading2"><a id="onlnit" class="hmanchor"></a><span class="f_Heading2">Функция «onInit()»</span></h2>
|
||||
<p class="p_Normal">К началу исполнения функции в контексте виджета заполнены входные данные — <code><b>Context.data.*</b></code>. В теле метода можно заполнить недостающие данные, которые будут использованы далее для отображения виджета или исполнения пользовательских функций. Также в теле метода можно обращаться к <a href="extention-api.html" class="topiclink">методам API</a> и вызывать серверные функции.</p>
|
||||
<li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><code><b>onInit()</b></code><span style="font-family: Inter;"> is called upon the widget’s initialization.</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><code><b>canRender()</b></code><span style="font-family: Inter;"> is called when conditions for displaying the widget are checked.</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><b><code>onLoad()</code></b><span style="font-family: Inter;"> is called when the widget’s rendering is completed.</span></li><li style="line-height: 1.28; margin-top: 0; margin-right: 0; margin-bottom: 11px;"><code><b>destroy()</b></code><span style="font-family: Inter;"> is called when the widget’s work ends.</span></li></ul>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">There is no default validation function.</span></p>
|
||||
<h2 class="p_Heading2"><a id="oninit" class="hmanchor"></a><span class="f_Heading2">onInit()</span></h2>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">By the time the execution of the function starts, the input data is loaded to the widget’s context, </span><code><b>Context.data.*</b></code><span style="font-family: Inter;">. You can add whatever data is missing to the function’s body, and it will be used to manage the way the widget is displayed or to execute custom functions. Also, in the function’s body you can call</span> <a href="extention-api.html" class="topiclink">API methods</a> or server functions.</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> onInit (): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-style: italic;">// </span><span class="f_CodeExample">Тело функции</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-style: italic;">// Function's body</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Пример</span></h3>
|
||||
<p class="p_Normal">Предположим, нам нужно сделать виджет, который будет выводить ФИО пользователей с датой их рождения в виде таблицы.</p>
|
||||
<p class="p_Normal">Для этого добавим в виджет переменную <code><b>users</b></code> типа <a href="360010201779.html" class="topiclink">Таблица</a>, в которой будут находиться ещё две переменные с типом <a href="360009707032.html#string" class="topiclink">Строка</a> — <code><b>name</b></code> и <code><b>birthDate</b></code>.</p>
|
||||
<p class="p_Normal">В шаблоне выносим на форму переменную <code><b>users</b></code>. В клиентских скриптах пишем функцию <code><b>onInit()</b></code>:</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> onInit (): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">const</span><span class="f_CodeExample"> users = await System.users.search().size(100).sort('__name', </span><span class="f_CodeExample" style="font-weight: bold;">true</span><span class="f_CodeExample">).all();</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">for</span><span class="f_CodeExample"> (</span><span class="f_CodeExample" style="font-weight: bold;">const</span><span class="f_CodeExample"> user of users) {</span><br />
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Example</span></h3>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">Let’s say you need to create a widget that will show a table displaying full names of users alongside with their dates of birth.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">Add the </span><code><b>users</b></code><span style="font-family: Inter;"> variable of the</span> <a href="360010201779.html" class="topiclink">Table</a> <span style="font-family: Inter;">type to the widget, as well as two </span><span style="font-family: Inter; color: #0000ff;"><a href="https://brix365.com/en/help/360009707032.html#string" target="_blank" class="weblink">String</a></span><span style="font-family: Inter;"> type variables that the table will include: </span><code><b>name</b></code><span style="font-family: Inter;"> and </span><code><b>birthDate</b></code><span style="font-family: Inter;">.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">Place the </span><code><b>users</b></code><span style="font-family: Inter;"> variable on the modeling canvas. In the client script, write the </span><code><b>onInit()</b></code><span style="font-family: Inter; font-weight: bold;"> </span><span style="font-family: Inter;">function:</span></p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function onInit (): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> const users = await System.users.search().size(100).sort('__name', true).all();</span><br />
|
||||
<span class="f_CodeExample"> for (const user of users) {</span><br />
|
||||
<span class="f_CodeExample"> let item = Context.data.users!.insert();</span><br />
|
||||
<span class="f_CodeExample"> item.name = user.data.__name;</span><br />
|
||||
<span class="f_CodeExample"> item.birthDate = user.data.birthDate ? user.data.birthDate.format('L') : '';</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> Context.data.users = Context.data.users;</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<h2 class="p_Heading2"><a id="canrender" class="hmanchor"></a><span class="f_Heading2">Функция «canRender()»</span></h2>
|
||||
<p class="p_Normal">Данная функция может быть использована, если необходимо отображать шаблон только при выполнении каких-либо условий, например, при заполнении входных данных контекста.</p>
|
||||
<h2 class="p_Heading2"><a id="canrender" class="hmanchor"></a><span class="f_Heading2">canRender()</span></h2>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">Use this function when you need to display a widget template only when a certain condition is met, for example, when certain input data is filled out in the context.</span> </p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> canRender (): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">boolean</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-style: italic;">// </span><span class="f_CodeExample">Тело функции. Должно вернуться true/false</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-style: italic;">// Function's body (must return true/false)</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<p class="p_Normal">Функция <code><b>canRender()</b></code> отличается от системного поля <a href="common_widget_settings.html" class="topiclink">Скрыть</a>. Если значение поля <span style="font-weight: bold;">Скрыть</span> равно <code><b>true</b></code>, то шаблон виджета всё равно будет отображён, поскольку его визуальное скрытие достигается за счёт установки флага в стилях веб-элемента. Если же функция <code><b>canRender()</b></code> вернула <code><b>false</b></code>, то отображение шаблона даже не начнётся. Это может быть важно, например, при использовании сложных виджетов, где отображение шаблона может вернуться с ошибкой, если не заполнены какие-либо нужные поля.</p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Пример</span></h3>
|
||||
<p class="p_Normal">Сделаем виджет, который будет отображать краткую информацию об элементе приложения <span style="font-weight: bold;">Договоры</span>.</p>
|
||||
<p class="p_Normal">Создадим переменные <code><b>date</b></code> с типом данных <a href="360009707032.html#date-time" class="topiclink">Дата</a> и <code><b>number</b></code> с типом данных <a href="360009707032.html#number" class="topiclink">Число</a>. Укажем входной параметр — переменную, хранящую <a href="360009923631.html" class="topiclink">приложение типа Документ</a>. В нашем случае элемент приложения <span style="font-weight: bold;">Договоры</span>.</p>
|
||||
<p class="p_Normal">Виджет будет переиспользован в различных бизнес-процессах или на формах приложений, имеющих в контексте переменную, хранящую <a href="360009923631.html" class="topiclink">приложение типа Документ</a>. При этом шаблон виджета не должен отображаться, если входное поле не заполнено.</p>
|
||||
<p class="p_Normal">Для этого в виджет добавляем переменную <code><b>app</b></code>, хранящую <a href="360009923631.html" class="topiclink">приложение типа Документ</a>. А также дополнительные переменные <code><b>date</b></code>, <code><b>number</b></code>, типы которых соответствуют аналогичным полям в приложении <span style="font-weight: bold;">Договоры</span>. Снимем с этих полей флажки <span style="font-weight: bold;">Входное</span> и <span style="font-weight: bold;">Выходное</span>.</p>
|
||||
<p class="p_Normal">В шаблон на форму вынесем переменные <code><b>date</b></code> и <code><b>number</b></code> с опцией <span style="font-weight: bold;">Только для чтения</span>. Для наглядности обведём виджет рамкой. Для этого в поле <span style="font-weight: bold;">HTML стили</span> укажем:</p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">The </span><code><b>canRender()</b></code><span style="font-family: Inter;"> function is different from the</span> <a href="common_widget_settings.html" class="topiclink">Hide</a> <span style="font-family: Inter;">system field. If the value of the </span><span style="font-family: Inter; font-weight: bold;">Hide</span><span style="font-family: Inter;"> field evaluates to </span><code><b>true</b></code><span style="font-family: Inter;">, the widget template is still rendered, but it’s not visible to users because it is marked as hidden in the web element’s styles. When the </span><code><b>canRender()</b></code><span style="font-family: Inter;"> function returns </span><code><b>false</b></code><span style="font-family: Inter;">, the template isn’t rendered at all. This can be important, for instance, when you create complex widgets with required fields. In this case an error can occur if certain fields on a hidden template are left empty.</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Example</span></h3>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">Let’s say you need to create a widget to display a brief overview of each item of the </span><span style="font-family: Inter; font-weight: bold;">Contracts</span><span style="font-family: Inter;"> app.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">Create two variables: one with the code </span><code><b>date</b></code><span style="font-family: Inter;">, of the</span> <a href="360009707032.html#date-time" class="topiclink">Date</a> <span style="font-family: Inter;">type, and one with the code </span><code><b>number</b></code><span style="font-family: Inter;">, of the</span> <a href="360009707032.html#number" class="topiclink">Number</a> type. <span style="font-family: Inter;">As an input parameter, specify the variable storing a</span> <a href="360009923631.html" class="topiclink">Document type app</a>. <span style="font-family: Inter;">In our case, it will be used to store an item of the </span><span style="font-family: Inter; font-weight: bold;">Contracts</span><span style="font-family: Inter;"> app. </span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">This widget will be reused in different business processes and on forms of different apps that have a</span> <a href="360009923631.html" class="topiclink">Document type app</a> <span style="font-family: Inter;">in the context. Another condition is that the widget’s template should not be displayed if the input field is empty.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">To make this possible, add an input variable with the code </span><code><b>app</b></code><span style="font-family: Inter;"> storing a</span> <a href="360009923631.html" class="topiclink">Document app</a>. <span style="font-family: Inter;">Also, create additional </span><code><b>date</b></code><span style="font-family: Inter;"> and </span><code><b>number</b></code><span style="font-family: Inter;"> variables. Their types must match the corresponding fields in the </span><span style="font-family: Inter; font-weight: bold;">Contracts</span><span style="font-family: Inter;"> app. Uncheck the </span><span style="font-family: Inter; font-weight: bold;">Input</span><span style="font-family: Inter;"> and </span><span style="font-family: Inter; font-weight: bold;">Output</span><span style="font-family: Inter;"> boxes for these variables.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">Place the </span><code><b>date</b></code><span style="font-family: Inter;"> and </span><code><b>number</b></code><span style="font-family: Inter;"> variables on the form and mark them as </span><span style="font-family: Inter; font-weight: bold;">Read only</span><span style="font-family: Inter;">. To make the widget stand out on the page, add a border to it. To do that, go to the </span><span style="font-family: Inter; font-weight: bold;">HTML styles</span><span style="font-family: Inter;"> field and enter the following:</span> </p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">border: 1px solid gray;</span></p>
|
||||
<p class="p_Normal">В клиентских скриптах пропишем функции <code><b>onInit()</b></code> и <code><b>canRender()</b></code>:</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> onInit (): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">if</span><span class="f_CodeExample"> (!await canRender()) {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">return</span><span class="f_CodeExample">;</span><br />
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">In the client script, write the </span><code><b>onInit()</b></code><span style="font-family: Inter;"> and </span><code><b>canRender()</b></code><span style="font-family: Inter; font-weight: bold;"> </span><span style="font-family: Inter;">functions:</span></p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function onInit (): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> if (!await canRender()) {</span><br />
|
||||
<span class="f_CodeExample"> return;</span><br />
|
||||
<span class="f_CodeExample"> }</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">const</span><span class="f_CodeExample"> appItem = await Context.data.app!.fetch();</span><br />
|
||||
<span class="f_CodeExample"> const appItem = await Context.data.app!.fetch();</span><br />
|
||||
<span class="f_CodeExample"> Context.data.date = appItem.date;</span><br />
|
||||
<span class="f_CodeExample"> Context.data.number = appItem.number;</span><br />
|
||||
<span class="f_CodeExample">}</span><br />
|
||||
<span class="f_CodeExample">async </span><span class="f_CodeExample" style="font-weight: bold;">function</span><span class="f_CodeExample"> canRender (): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">boolean</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">return</span><span class="f_CodeExample"> !!Context.data.app; </span><span class="f_CodeExample" style="font-style: italic;">// </span><span class="f_CodeExample">Вернётся true, если поле app заполнено</span><br />
|
||||
<span class="f_CodeExample">async function canRender (): Promise<boolean> {</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="font-weight: bold;">return</span><span class="f_CodeExample"> !!Context.data.app; </span><span class="f_CodeExample" style="font-style: italic;">// Returns true if the app field is filled in</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<p class="p_Normal">После публикации скрипта поместим виджет на форму другого приложения, где есть переменная, хранящая <a href="360009923631.html" class="topiclink">приложение типа Документ</a>, и свяжем входное поле виджета с этой переменной.</p>
|
||||
<p class="p_Normal">Таким образом в тех элементах, где поле заполнено, виджет будет отображаться. Где поле не заполнено, не выведется ничего — ни рамка, ни скрытые веб-элементы настроенного виджета.</p>
|
||||
<h2 class="p_Heading2"><a id="destroy" class="hmanchor"></a><span class="f_Heading2">Функция уничтожения</span></h2>
|
||||
<p class="p_Normal">Вы можете настроить окончание работы виджета с помощью функции уничтожения. Виджет перестанет выполнять свою функциональность, а созданные в процессе его работы данные очистятся.</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function destroy(): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> // Тело функции</span><br />
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-family: Inter;">After you publish the script, you can place the widget on the form of any other app that has a variable for a</span> <a href="360009923631.html" class="topiclink">Document type app</a> <span style="font-family: Inter;">and map this variable with the input field of the widget.</span></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-family: Inter;">Now, the widget will be displayed on pages of items that have this field filled out. If the field is empty, nothing will be shown, neither the border nor the hidden web elements of the widget.</span></p>
|
||||
<h2 class="p_Heading2"><a id="destroy" class="hmanchor"></a><span class="f_Heading2">Destroy function</span></h2>
|
||||
<p class="p_Normal">You can end the widget’s work using the destroy function The widget will stop performing its functionality, and the data created during its operation will be cleared.</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function destroy(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">></span><span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">{</span><br />
|
||||
<span class="f_CodeExample"> </span><span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample" style="font-style: italic;">// Function body</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Пример</span></h3>
|
||||
<p class="p_Normal">Допустим, на странице размещён отчёт, в котором отображаются данные из разных приложений. Для отчёта настроен скрипт автоматического обновления за определённый период времени. Когда пользователь закрывает страницу, отсчёт времени до обновления продолжается, и запрашиваются данные из приложений. Если пользователь повторно заходит на страницу, запускается новый счёт времени, что приводит к ошибке на сервере. </p>
|
||||
<p class="p_Normal">Чтобы избежать ошибок и нагрузки на систему, применим к виджету функцию уничтожения. Тогда при закрытии страницы счёт времени прекратится, и данные не будут обновляться. </p>
|
||||
<p class="p_Normal">В клиентских скриптах виджета пропишем функцию <code><b>destroy()</b></code>: </p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function onInit(): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> // await refresh();</span><br />
|
||||
<span class="f_CodeExample"> setIntervalRefresh();</span><br />
|
||||
<h3 class="p_Heading3"><span class="f_Heading3">Example</span></h3>
|
||||
<p class="p_Normal">For example, a page contains a report that displays data from different apps. A script for automatic refreshing for a certain period of time is configured for the report. When the user closes the page, the countdown to refresh continues and the data from apps is requested. If the user re-visits the page, a new time count starts, which causes an error on the server.</p>
|
||||
<p class="p_Normal">To avoid errors and prevent the system from overloading, you can apply the destroy function to the widget. Then when the page is closed, the time counting will stop and the data will not be updated.</p>
|
||||
<p class="p_Normal">Let<span style="font-family: Inter;">’</span>s write the <code><b>destroy()</b></code> function in the the widget client scripts:</p>
|
||||
<p class="p_CodeExample" style="page-break-inside: avoid;"><span class="f_CodeExample">async function onInit(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample" style="font-style: italic;">// await refresh();</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">setIntervalRefresh();</span><br />
|
||||
<span class="f_CodeExample">}</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">let intervalID: number;</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">declare const window: {</span><br />
|
||||
<span class="f_CodeExample"> setInterval: (fn: () => void, interval: number) => number;</span><br />
|
||||
<span class="f_CodeExample"> clearInterval: (clearInterval: number) => void;</span><br />
|
||||
<span class="f_CodeExample">declare </span><span class="f_CodeExample" style="font-weight: bold;">const </span><span class="f_CodeExample">window: {</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">setInterval: (fn: () => </span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">, interval: number) => number;</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">clearInterval: (clearInterval: number) => </span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">;</span><br />
|
||||
<span class="f_CodeExample">};</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">async function setIntervalRefresh () {</span><br />
|
||||
<span class="f_CodeExample"> intervalID = window.setInterval(() => {</span><br />
|
||||
<span class="f_CodeExample"> refresh();</span><br />
|
||||
<span class="f_CodeExample"> }, 3000);</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">intervalID = window.setInterval(() => {</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">refresh();</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">}, 3000);</span><br />
|
||||
<span class="f_CodeExample">}</span><br />
|
||||
<span class="f_CodeExample"> </span><br />
|
||||
<span class="f_CodeExample">async function destroy(): Promise<void> {</span><br />
|
||||
<span class="f_CodeExample"> window.clearInterval(intervalID);</span><br />
|
||||
<span class="f_CodeExample">async function destroy(): Promise<</span><span class="f_CodeExample" style="font-weight: bold;">void</span><span class="f_CodeExample">> {</span><br />
|
||||
<span class="f_CodeExample" style="color: #ffffff;"> </span><span class="f_CodeExample">window.clearInterval(intervalID);</span><br />
|
||||
<span class="f_CodeExample">}</span></p>
|
||||
<h2 class="p_Heading2"><a id="validation-function" class="hmanchor"></a><span class="f_Heading2">Функция пользовательской валидации</span></h2>
|
||||
<p class="p_Normal">Вы можете создать функцию для проверки правильности заполнения <a href="create_form.html" class="topiclink">формы</a>. В этой функции пропишите дополнительные проверки к уже существующим стандартным проверкам валидации при попытке сохранить форму. Например, задайте проверку значений полей формы.</p>
|
||||
<p class="p_Normal">Чтобы применить функцию, укажите её название на вкладке <a href="designer-tabs.html#settings-tab" class="topiclink">Настройки</a> дизайнера интерфейсов.</p>
|
||||
<p class="p_Normal">Информация о найденных ошибках валидации отобразится под неверно заполненными полями формы, а также будет показана общим списком в верхней части формы. Если найдена хотя бы одна ошибка стандартной или пользовательской валидации, сохранить форму невозможно.</p>
|
||||
<p class="p_Normal">Если на форме размещено несколько пользовательских виджетов, для которых тоже задана функция валидации, проверены будут <a href="https://tssdk.elma365.com/ru/latest/interfaces/_02_types_.validationresult.html" target="_blank" class="weblink">результаты валидации</a> всех виджетов.</p>
|
||||
<p><img alt="widget-functions-1" width="631" height="390" style="margin:0;width:631px;height:390px;border:none" src="widget-functions-1.png"/></p>
|
||||
<p class="p_Normal">Описывая функцию валидации, вы можете создавать дополнительные проверки для полей, настраивать отображение ошибок, а также управлять валидацией скрытых полей формы. Подробнее об этом читайте в статье <a href="user-validation.html" class="topiclink">«Настройка пользовательской валидации»</a>. </p>
|
||||
<h2 class="p_Heading2"><a id="customvalidation" class="hmanchor"></a><span class="f_Heading2">Custom validation function</span></h2>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter;">You can create a function that will check whether a <a href="create_form.html" class="topiclink">form</a> is filled out correctly. In this function, you can add the necessary checks that you want to apply along with the existing standard ones when a user attempts to save the form. For example, you can set validation for field values.</span></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter;">To apply the function, select it in the </span><span style="font-size: 13px; font-family: Inter; font-weight: bold;">Validation</span><span style="font-size: 13px; font-family: Inter;"> field on the <a href="designer-tabs.html#settings" class="topiclink">Settings</a> tab in the interface designer.</span></p>
|
||||
<p style="line-height: 1.20; margin: 7px 0 16px 0;"><span style="font-size: 13px; font-family: Inter;">Information about validation errors will be displayed under the fields with invalid information. Moreover, a list or all errors will be displayed at the top of the form. If at least one error is found during standard or custom validation, it is impossible to save the form.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><span style="font-size: 13px; font-family: Inter;">If several custom widgets with a validation function are placed on one form, the <a href="https://tssdk.brix365.com/en/interfaces/_02_types_.validationresult.html" target="_blank" class="weblink">validation result</a> will be checked for each function.</span></p>
|
||||
<p style="line-height: 1.28; margin: 0 0 11px 0;"><img alt="user-validation-3" width="904" height="528" style="margin:0;width:904px;height:528px;border:none" src="user-validation-3.png"/></p>
|
||||
<p class="p_Normal"><span style="font-family: 'Segoe UI',Tahoma,Verdana,Arial,sans-serif; color: #0d0d0d; background-color: #ffffff;">When describing the validation function, you can create additional checks for fields, customize error display, and manage the validation of hidden form fields. See more in the <a href="user-validation.html" class="topiclink">Set up custom validation</a> article.</span></p>
|
||||
|
||||
<div class="bottom-nav">
|
||||
|
||||
@ -221,7 +215,7 @@
|
||||
|
||||
</div>
|
||||
<!-- добавляет на страницу строку блок Была ли статья полезной? -->
|
||||
<div class="feedback-wrap"><div class="feedback" id="feedback"><span><b>Была ли статья полезной?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx">Спасибо за ваш отзыв!</div><div id="feedback-success-popup"><div class="wrap"><button type="button" class="feedback-popup-close">×</button><svg width="44" height="44" viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_212_2187)"><path d="M22 0.6875C10.2294 0.6875 0.6875 10.2294 0.6875 22C0.6875 33.7706 10.2294 43.3125 22 43.3125C33.7706 43.3125 43.3125 33.7706 43.3125 22C43.3125 10.2294 33.7706 0.6875 22 0.6875ZM22 40.5625C11.8023 40.5625 3.4375 32.3078 3.4375 22C3.4375 11.8024 11.6922 3.4375 22 3.4375C32.1977 3.4375 40.5625 11.6922 40.5625 22C40.5625 32.1976 32.3078 40.5625 22 40.5625ZM34.1713 16.933L18.6613 32.3186C18.257 32.7197 17.604 32.7171 17.203 32.3128L9.82283 24.873C9.42176 24.4686 9.42434 23.8157 9.82867 23.4146L10.5609 22.6884C10.9652 22.2873 11.6181 22.2899 12.0192 22.6942L17.9468 28.6697L31.9926 14.7366C32.3969 14.3356 33.0498 14.3382 33.4509 14.7425L34.1772 15.4747C34.5783 15.879 34.5757 16.532 34.1713 16.933Z" fill="#27AE60"></path></g><defs><clipPath id="clip0_212_2187"><rect width="44" height="44" fill="white"></rect></clipPath></defs></svg><p>Ваш отзыв успешно отправлен!</p><span>Спасибо за обратную связь.</span></div></div><div class="feedback__popup" id="feedback__popup_why"><button type="button" class="feedback-popup-close">×</button><div class="feedback__popup-header">Уточните, почему:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Рекомендации не помогли</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Текст трудно понять</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Нет ответа на мой вопрос</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Содержание статьи не соответствует заголовку</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Другая причина</label></div><div class="feedback__popup" id="feedback__popup-other"><button type="button" class="feedback-popup-close">×</button> <div class="feedback__popup-header">Расскажите, что вам не понравилось в статье:</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Отправить"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg"/><span class="feedback-form__btn-group_yes-btn">Да</span></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg"/><span class="feedback-form__btn-group_no-btn">Нет</span></label></div><select name="category"><option disabled>Выберите вариант</option><option value="bad_recommendation" selected>Рекомендации не помогли</option><option value="difficult_text">Текст трудно понять</option><option value="no_answer">Нет ответа на мой вопрос</option><option value="bad_header">Содержание статьи не соответствует заголовку</option><option value="other_reason">Другая причина</option></select><input type="submit"></form></div></div>
|
||||
<div class="feedback" id="feedback"><div class="feedback-help"><span><b>Was this helpful?</b></span><form action="" method="POST" class="feedback-form" id="feedback-form"><div class="feedback__popup feedback__popup-response" id="feedback__popup_thx" style="display: none;">Thanks for your feedback!</div><div class="feedback__popup" id="feedback__popup_why" style="display: none;"><div class="feedback__popup-header">Please specify why:</div><input type="radio" name="category" id="bad_recommendation" value="bad_recommendation"><label for="bad_recommendation">Recommendations did not help me</label><input type="radio" name="category" id="difficult_text" value="difficult_text"><label for="difficult_text">Article is hard to understand</label><input type="radio" name="category" id="no_answer" value="no_answer"><label for="no_answer">Didn`t answer my question</label><input type="radio" name="category" id="bad_header" value="bad_header"><label for="bad_header">Content does not match the topic</label><input type="radio" name="category" id="other_reason" value="other_reason"><label for="other_reason">Other</label></div><div class="feedback__popup" id="feedback__popup-other" style="display: none;"><div class="feedback__popup-header">How we can improve it?</div><textarea class="feedback__textarea" name="other" id=""></textarea><input type="submit" class="feedback__other-btn" value="Submit"></div><div class="feedback-form__btn-group"><input type="radio" name="useful" id="feedback__useful_yes" value="true"><label for="feedback__useful_yes"><img src="like.svg" class="small-img" alt="like"><spanclass="feedback-form__btn-group_yes-btn">Yes</spanclass="feedback-form__btn-group_yes-btn"></label><input type="radio" name="useful" id="feedback__useful_no" value="false"><label for="feedback__useful_no"><img src="dislike.svg" class="small-img" alt="dislike"><spanclass="feedback-form__btn-group_no-btn">No</spanclass="feedback-form__btn-group_no-btn"></label></div><select name="category"><option disabled="">Please specify why</option><option value="bad_recommendation" selected="">Recommendations did not help me</option><option value="difficult_text">Article is hard to understand</option><option value="no_answer">Didn`t answer my question</option><option value="bad_header">Content does not match the topic</option><option value="other_reason">Other</option></select><input type="submit"></form></div><div class="found_typo"><p style="margin: 0px; margin-top: 16px !important;"><span><b>Found a typo?</b></span> Select it and press <i>Ctrl+Enter</i> to send us feedback</p></div></div>
|
||||
|
||||
</section>
|
||||
</div>
|
||||
@ -229,7 +223,7 @@
|
||||
<input type="checkbox" />
|
||||
<div class="article__arrow"></div>
|
||||
<div class="table-of-contents elma365-right" id="toc2Content">
|
||||
<h3 class="h3-toc">В этой статье</h3>
|
||||
<h3 class="h3-toc">In this topic</h3>
|
||||
<nav id="toc2"></nav>
|
||||
</div>
|
||||
</aside>
|
||||
@ -240,63 +234,30 @@
|
||||
<div class="footer-container">
|
||||
<div class="footer-mobile">
|
||||
|
||||
<ul class="footer-mobile__list"><li><a href="https://api.elma365.com/ru/" target="_blank">API</a></li><li><a href="https://tssdk.elma365.com/" target="_blank">TS SDK</a></li><li><a href="https://community.elma365.com/" target="_blank">Community</a></li><li><a href="https://elma-academy.com/ru/elma365" target="_blank">Академия</a></li></ul><ul class="footer-mobile__list"><li><a href="https://elma365.com/ru/help/platform/get-trial.html">Платформа</a></li><li><a href="https://elma365.com/ru/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://elma365.com/ru/help/service/service-functions.html">Service</a></li><li><a href="https://elma365.com/ru/help/projects/projects-functions.html">Проекты</a></li></ul>
|
||||
<ul class="footer-mobile__list"><li><a href="https://brix365.com/en/" target="_blank">BRIX</a></li><li><a href="https://tssdk.brix365.com/en/latest/" target="_blank">SDK</a></li><li><a href="https://api.brix365.com/en/" target="_blank">API</a></li></ul><ul class="footer-mobile__list"><li><a href="https://brix365.com/en/help/platform/get-trial.html">Platform</a></li><li><a href="https://brix365.com/en/help/ecm/ecm-functions.html">ECM</a></li><li><a href="https://brix365.com/en/help/service/service-functions.html">Service</a></li><li><a href="https://brix365.com/en/help/projects/projects-functions.html">Projects</a></li></ul>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Отправить фидбэк</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Задать вопрос</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Отправить"></div></form><div class="hidden fade-in question-success-xs">Ваш фидбэк отправлен.</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<div class="footer-top">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
|
||||
</div>
|
||||
<div class="footer-line">
|
||||
|
||||
<div class="footer-line-copy">
|
||||
<span class="footer-copy">© 2025
|
||||
ELMA365
|
||||
|
||||
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item"><a href="https://elma365.com/ru/" target="_blank" class="footer-link" style="color: #0D4A75;"><img src="browse.svg" alt="browse icon" class="footer-img">elma365.com</a></li><li class="footer-item"><a href="https://www.youtube.com/user/ELMABPM" target="_blank" class="footer-link"><img src="yt.svg" alt="youtube icon" class="footer-img"></a></li><li class="footer-item"><a href="https://vk.com/elma_bpm" target="_blank" class="footer-link"><img src="vk.svg" alt="vk icon" class="footer-img"></a></li><li class="footer-item"><a href="https://t.me/elmaday" target="_blank" class="footer-link"><img src="tg.svg" alt="telegram icon" class="footer-img"></a></li><li class="footer-item"><a href="https://dzen.ru/elma" target="_blank" class="footer-link"><img src="dzen.svg" alt="dzen icon" class="footer-img"></a></li>
|
||||
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="https://navigator.sk.ru/orn/1122971" target="_blank">
|
||||
<img src="sk-resident.svg" alt="sk icon" class="footer-img" width="117" height="34">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-wrap">
|
||||
|
||||
<div><span class="mobile-question-popup">Send feedback</span><form method="POST" action class="question__popup question-xs" id="question__popup"><div class="question-wrap"><span class="close"></span><span class="title">Ask a question</span><label for="help_question" style="display: none;"></label><textarea name="help_question" id="help_question"></textarea><input type="submit" value="Send"></div></form><div class="hidden fade-in question-success-xs">Sent</div></div>
|
||||
|
||||
<div class="footer-flex-b">
|
||||
<span class="footer-copy">© 2025 BRIX</span>
|
||||
<ul class="footer-list">
|
||||
|
||||
<li class="footer-item">
|
||||
<a href="#" class="arrow-top" style="display: block;"></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<a href="#" class="arrow-top"></a>
|
||||
</div>
|
||||
|
||||
</footer>
|
||||
<!-- <script type="text/javascript" src="jquery1.min.js"></script>-->
|
||||
<iframe name="hmnavigation" style="display:none!important"></iframe>
|
||||
<!--<script src="./jquery-ui.js"></script> -->
|
||||
<script src="./jquery-ui.min.js"></script>
|
||||
<script src="./jquery-ui.js"></script>
|
||||
<!--script src="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.js" type="text/javascript" charset="utf-8"></script-->
|
||||
<script src="./jquery.tocify.min.js"></script>
|
||||
<script src="./TypoReporter.min.js"></script>
|
||||
|
Reference in New Issue
Block a user