{"id":298946,"date":"2020-02-19T15:00:38","date_gmt":"2020-02-19T15:00:38","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298946"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-02-19T15:00:38","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298946","title":{"rendered":"JavaScript \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 Webix \u0433\u043b\u0430\u0437\u0430\u043c\u0438 \u043d\u043e\u0432\u0438\u0447\u043a\u0430. \u0427\u0430\u0441\u0442\u044c 5. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0441\u0442\u043e\u0440\u043e\u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/489024\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fu\/hk\/d8\/fuhkd8pt6ybfjwzca4ozrxpn1u0.png\"><\/p>\n<p>  \u042f \u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 front-end \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f \u0443\u0447\u0443\u0441\u044c \u0438 \u0441\u0442\u0430\u0436\u0438\u0440\u0443\u044e\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u0439 \u043c\u0438\u043d\u0441\u043a\u043e\u0439 IT \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432 web-ui \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 JS \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Webix. \u042f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u043e\u0431\u0438\u044f \u043f\u043e \u044d\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 UI \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435.<a name=\"habracut\"><\/a><\/p>\n<h4><font color=\"#663375\">\u041f\u042f\u0422\u0410\u042f \u0417\u0410\u0414\u0410\u0427\u0410<\/font><\/h4>\n<p>  \u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, <a href=\"https:\/\/habr.com\/ru\/post\/487462\/\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438<\/a>, \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 CRUD \u044f \u043f\u0438\u0441\u0430\u043b \u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0437\u0430\u0434\u0430\u0447\u0430\u0445 \u043f\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u044f \u043f\u043e\u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0431\u043e\u043b\u0435\u0435 \u0434\u0440\u0443\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u044e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.webix.com\/datatable__filtering.html#text\" rel=\"nofollow\">\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f<\/a> \u0438 <a href=\"https:\/\/docs.webix.com\/datatable__sorting.html\" rel=\"nofollow\">\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430<\/a> \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u044b;<\/li>\n<li>\u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 API;<\/li>\n<li><a href=\"https:\/\/docs.webix.com\/desktop__grouping.html\" rel=\"nofollow\">\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/a> \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b;<\/li>\n<li><a href=\"https:\/\/docs.webix.com\/desktop__data_binding.html\" rel=\"nofollow\">\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f<\/a> \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432;<\/li>\n<\/ul>\n<p>  \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430\u043c\u0438 <a href=\"https:\/\/docs.webix.com\/desktop__list.html\" rel=\"nofollow\">List<\/a>, <a href=\"https:\/\/docs.webix.com\/desktop__treetable.html\" rel=\"nofollow\">Treetable<\/a>, <a href=\"https:\/\/docs.webix.com\/datatable__index.html\" rel=\"nofollow\">Table<\/a>.<\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u043f\u043e <a href=\"https:\/\/github.com\/sashko-web\/webix\/tree\/master\/webix%20sourses%20for%205%20article\" rel=\"nofollow\">\u0441\u0441\u044b\u043b\u043a\u0435<\/a>.<\/p>\n<p>  \u0421 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f <a href=\"https:\/\/snippet.webix.com\/njqcjz0b\" rel=\"nofollow\">\u0442\u0443\u0442<\/a>.<\/p>\n<h3>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0442\u0430\u0431\u043b\u0438\u0446 \u2014 \u0438\u0445 \u044f \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445. \u0422\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 Webix \u0438\u043c\u0435\u044e\u0442 <a href=\"https:\/\/docs.webix.com\/datatable__filtering.html\" rel=\"nofollow\">\u0440\u044f\u0434 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u0432 header \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 Table \u0438 TreeTable. \u0412 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 <a href=\"https:\/\/docs.webix.com\/api__refs__ui.datatable.html\" rel=\"nofollow\">Table<\/a> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0434\u0432\u0430 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430: \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 (<a href=\"https:\/\/docs.webix.com\/datatable__filtering.html#text\" rel=\"nofollow\">textFilter<\/a>) \u0438 \u0444\u0438\u043b\u044c\u0442\u0440 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u043e\u043f\u0446\u0438\u0439 \u0432 \u0432\u044b\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c \u0441\u043f\u0438\u0441\u043a\u0435 (<a href=\"https:\/\/docs.webix.com\/datatable__filtering.html#select\" rel=\"nofollow\">selectFilter<\/a>). \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0444\u0438\u043b\u044c\u0442\u0440\u0443 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043b\u043e\u043d\u043a\u0438. \u0421\u0434\u0435\u043b\u0430\u044e \u044d\u0442\u043e \u0434\u043b\u044f \u0434\u0432\u0443\u0445: title \u0438 year. Header \u0432 \u043d\u0438\u0445 \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438 \u0437\u0430\u0434\u0430\u043c \u043c\u0430\u0441\u0441\u0438\u0432\u043e\u043c \u2014 \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438 \u0444\u0438\u043b\u044c\u0442\u0440. \u0412\u0442\u043e\u0440\u043e\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u0430\u0441\u0441\u0438\u0432\u0430, \u044d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u0441\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c content \u0438 \u0438\u043c\u0435\u043d\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440\u0430.  <\/p>\n<blockquote><p><i>\u041a\u043e\u0434 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 Table \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 table.js \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u201cDashboard\u201d.<\/i>  <\/p><\/blockquote>\n<p>  \u041f\u0440\u0438 \u0432\u0432\u043e\u0434\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 <code>&quot;textFilter&quot;<\/code> \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u044b \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c \u043f\u043e \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0435. \u041f\u0440\u0438 \u0432\u044b\u0431\u043e\u0440\u0435 \u043e\u043f\u0446\u0438\u0438 \u0432 <code>&quot;selectFilter&quot;<\/code> \u2014 \u043f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e.<\/p>\n<pre><code class=\"javascript\">columns:[     { id:&quot;rank&quot;, header:&quot;&quot;, width:50, css:&quot;rank&quot;},     { id:&quot;title&quot;, header:[&quot;Film title&quot;, { content:&quot;textFilter&quot;}], fillspace:true },     { id:&quot;year&quot;,  header:[&quot;Released&quot;, {content:&quot;selectFilter&quot; }], width:100 },     { id:&quot;votes&quot;, header:&quot;Votes&quot;, width:100 },     { id:&quot;rating&quot;, header:&quot;Rating&quot;, width:100 },     { header:&quot;&quot;, template:&quot;&lt;span class='webix_icon wxi-close'&gt;&lt;\/span&gt;&quot;, width:35} ] <\/code><\/pre>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u043e \u043f\u043e\u0434\u0441\u0442\u0440\u043e\u043a\u0435 \u201cstar\u201d:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_8\/zj\/1j\/_8zj1junezhwzx1kwoaa9w2yc8y.png\"><\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u043e \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c\u0443 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e \u201c1991\u201d:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ij\/gj\/eo\/ijgjeokzdythqonthmc9mrdxs_q.png\"><\/p>\n<p>  <b>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/b> \u041a\u0430\u043a \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438, \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 \u0442\u0430\u043a \u0436\u0435 \u043b\u0435\u0433\u043a\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c <a href=\"https:\/\/docs.webix.com\/desktop__filter_sort.html#sorting\" rel=\"nofollow\">sort<\/a>. \u0415\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0442\u0438\u043f\u043e\u0432 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438: \u043f\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c, \u043f\u043e \u0434\u0430\u0442\u0435 \u0438 \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435. \u0421\u0442\u043e\u043b\u0431\u0446\u0430\u043c year, votes \u0438 rating \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 sort: \u201cint\u201d \u0434\u043b\u044f \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0447\u0438\u0441\u043b\u043e\u0432\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c. \u0414\u043b\u044f \u0441\u0442\u043e\u043b\u0431\u0446\u0430 title \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u201cstring\u201d.<\/p>\n<pre><code class=\"javascript\">    columns:[         { id:&quot;rank&quot;, header:&quot;&quot;, width:50, css:&quot;rank&quot;},         { id:&quot;title&quot;, header:[&quot;Film title&quot;, { content:&quot;textFilter&quot;}], fillspace:true,           sort:&quot;string&quot;},         { id:&quot;year&quot;,  header:[&quot;Released&quot;, {content:&quot;selectFilter&quot; }], width:100, sort:&quot;int&quot;},         { id:&quot;votes&quot;, header:&quot;Votes&quot;, width:100, sort:&quot;int&quot;},         { id:&quot;rating&quot;, header:&quot;Rating&quot;, width:100, sort:&quot;int&quot;},         { header:&quot;&quot;, template:&quot;&lt;span class='webix_icon wxi-close'&gt;&lt;\/span&gt;&quot;, width:35}     ] <\/code><\/pre>\n<p>  \u041f\u043e \u043a\u043b\u0438\u043a\u0443 \u043d\u0430 header \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0438\u0445 \u0442\u0438\u043f\u043e\u043c. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u043e \u0440\u0435\u0439\u0442\u0438\u043d\u0433\u0443:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/lz\/ji\/08\/lzji08a1q24xxjke5v3tal0hgaw.png\"><\/p>\n<h3>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 API<\/h3>\n<p>  \u0413\u043e\u0442\u043e\u0432\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438\u043c\u0435\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u044b. \u041d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u044d\u0442\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b API \u2014 filter \u0438 sort. \u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0443 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 API \u044f \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044e \u0443 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/docs.webix.com\/desktop__list.html\" rel=\"nofollow\">List<\/a>. <\/p>\n<blockquote><p><i>\u041a\u043e\u0434 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 List \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 users_module.js \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u201cUsers\u201d.<\/i>  <\/p><\/blockquote>\n<p>  <b>\u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f.<\/b> \u0412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <b>Users<\/b>, \u043f\u043e\u0441\u043b\u0435 \u043a\u043d\u043e\u043f\u043a\u0438 \u201cAdd new person\u201d, \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u044e \u0432\u0438\u0434\u0436\u0435\u0442 <a href=\"https:\/\/docs.webix.com\/desktop__text.html\" rel=\"nofollow\">Text<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0434\u043b\u044f \u0438\u043c\u0435\u043d \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430.<\/p>\n<pre><code class=\"javascript\">cols:[     {          view:&quot;button&quot;, id:&quot;btn_add_person&quot;,          value:&quot;Add new person&quot;, width:150, css:&quot;webix_primary&quot;,          click:addPerson     },     {          view:&quot;text&quot;, id:&quot;list_input&quot;      }, ] <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u043e\u044e \u0444\u0430\u0439\u043b script.js \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u043e\u0442\u0432\u0435\u0447\u0430\u044e\u0449\u0443\u044e \u0437\u0430 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<pre><code class=\"javascript\">$$(&quot;list_input&quot;).attachEvent(&quot;onTimedKeyPress&quot;,function(){     var value = this.getValue().toLowerCase();     $$(&quot;user_list&quot;).filter(function(obj){         return obj.name.toLowerCase().indexOf(value) !== -1;     }) }); <\/code><\/pre>\n<p>  \u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e \u0442\u0430\u043a\u043e\u043c\u0443 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443:   <\/p>\n<ul>\n<li>\u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 <a href=\"https:\/\/docs.webix.com\/api__link__ui.vscroll_attachevent.html\" rel=\"nofollow\">attachEvent<\/a> \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <a href=\"https:\/\/docs.webix.com\/api__ui.view_ontimedkeypress_event.html\" rel=\"nofollow\">onTimedKeyPress<\/a>;<\/li>\n<li>\u0441\u043e\u0431\u044b\u0442\u0438\u0435 onTimedKeyPress \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434\u043e\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u043e\u043b\u0435, \u043d\u043e \u0441 \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043a\u043b\u0430\u0432\u0438\u0448;<\/li>\n<li>\u0434\u0430\u043b\u0435\u0435 \u044f \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u043c <a href=\"https:\/\/docs.webix.com\/datatable__filtering.html\" rel=\"nofollow\">filter<\/a> \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u2014 \u043f\u043e\u0438\u0441\u043a \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 List.<\/li>\n<\/ul>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 API:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jf\/qr\/v7\/jfqrv7lbgfs4aa80gsznioiicqq.png\"><\/p>\n<p>  <b>\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430.<\/b> \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 List \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043f\u043e \u043a\u043b\u0438\u043a\u0443 \u043a\u043d\u043e\u043f\u043e\u043a <code>\u201cSort asc\u201d<\/code> \u0438 <code>\u201cSort desc\u201d<\/code>. <\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <b>Users<\/b>, \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0434\u0432\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 <a href=\"https:\/\/docs.webix.com\/desktop__button.html\" rel=\"nofollow\">Button<\/a> \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 <a href=\"https:\/\/docs.webix.com\/api__ui.button_click_config.html\" rel=\"nofollow\">click<\/a>. <\/p>\n<pre><code class=\"javascript\">cols:[     {          view:&quot;button&quot;, id:&quot;btn_add_person&quot;,          value:&quot;Add new person&quot;, width:150, css:&quot;webix_primary&quot;,          click:addPerson     },     {          view:&quot;text&quot;, id:&quot;list_input&quot;      },     { view:&quot;button&quot;, id:&quot;btn_asc&quot;, width:150, value:&quot;Sort asc&quot;, css:&quot;webix_primary&quot;,          click:()=&gt;{             $$(&quot;user_list&quot;).sort(&quot;#name#&quot;,&quot;asc&quot;)      }},     { view:&quot;button&quot;, id:&quot;btn_desc&quot;, width:150, value:&quot;Sort desc&quot;, css:&quot;webix_primary&quot;,          click:()=&gt;{             $$(&quot;user_list&quot;).sort(&quot;#name#&quot;,&quot;desc&quot;)     }}, ] <\/code><\/pre>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 click, \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/docs.webix.com\/api__link__ui.proto_sort.html\" rel=\"nofollow\">sort<\/a> \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0434\u043b\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430: \u0438\u043c\u044f \u043f\u043e\u043b\u044f, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435, \u0438 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 <code>\u201casc\u201d<\/code> (ascending) \u2014 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0430\u043d\u0438\u044e, \u0438 <code>\u201cdesc\u201d<\/code> (descending) \u2014 \u043f\u043e \u0443\u0431\u044b\u0432\u0430\u043d\u0438\u044e. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 (\u0438\u043c\u0435\u043d\u0430 \u0432 \u043b\u0438\u0441\u0442\u0435 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043f\u043e \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u0443):<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/yd\/2h\/bv\/yd2hbvgs3kestmfnceqmhoaph14.png\"><\/p>\n<h3>\u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/h3>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044e \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0434\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c.<br \/>  \u0418\u0437\u0443\u0447\u0430\u0442\u044c \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0443 \u044f \u0431\u0443\u0434\u0443 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 TreeTable. <\/p>\n<blockquote><p><i>\u041a\u043e\u0434 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 TreeTable \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 products_module.js \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u201cPoducts\u201d.<\/i>  <\/p><\/blockquote>\n<p>  \u0412 \u0441\u0442\u0430\u0442\u044c\u0435: <a href=\"https:\/\/habr.com\/ru\/post\/486050\/\">\u041c\u043e\u0434\u0443\u043b\u0438, \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u044b, \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/a> \u0438 <a href=\"https:\/\/habr.com\/ru\/post\/487462\/\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. CRUD<\/a>, \u0432 \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0438\u0445 \u0438\u0437\u043c\u0435\u043d\u0438\u043b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432. \u042f \u0438\u0437\u0431\u0430\u0432\u0438\u043b\u0441\u044f \u043e\u0442 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441 \u0438\u0437 \u043d\u0435\u0435 \u0432 \u043a\u0430\u0436\u0434\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e\u043b\u0435 <code>\u201ccategory\u201d<\/code>.<\/p>\n<pre><code class=\"javascript\">[     {&quot;id&quot;: &quot;1.1&quot;,   &quot;title&quot;: &quot;Standard Ticket&quot;,  &quot;price&quot;: 21, &quot;category&quot;:&quot;Cinema&quot;, &quot;rank&quot;:1.1},     {&quot;id&quot;: &quot;2.1&quot;,   &quot;title&quot;: &quot;Cola&quot;,  &quot;price&quot;: 10, &quot;category&quot;:&quot;Cafe&quot;, &quot;rank&quot;:2.1},     {&quot;id&quot;: &quot;3.1&quot;,   &quot;title&quot;: &quot;Flowers&quot;,  &quot;price&quot;: 10, &quot;category&quot;:&quot;Other&quot;, &quot;rank&quot;:3.1} ] <\/code><\/pre>\n<p>  \u0421\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043c\u043e\u0436\u043d\u043e \u0434\u0432\u0443\u043c\u044f \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438:<\/p>\n<ul>\n<li>\u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u0438 \u0438\u0445 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435;<\/li>\n<li>\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 <a href=\"https:\/\/docs.webix.com\/api__groupstore_group.html\" rel=\"nofollow\">group<\/a> \u0438 <a href=\"https:\/\/docs.webix.com\/api__groupstore_ungroup.html\" rel=\"nofollow\">ungroup<\/a>.<\/li>\n<\/ul>\n<p>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0443 \u044d\u0442\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0435 \u0438 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0434\u0438\u043d \u0440\u0430\u0437, \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0438 \u043f\u0440\u0438\u0448\u043b\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<br \/>  \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u0430 TreeTable \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <a href=\"https:\/\/docs.webix.com\/desktop__data_scheme.html\" rel=\"nofollow\">scheme<\/a>. \u042d\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e \u043a\u0430\u043a\u043e\u0439 \u0441\u0445\u0435\u043c\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445. \u0421\u0440\u0435\u0434\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0432 sheme \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/docs.webix.com\/api__group_group.html\" rel=\"nofollow\">$group<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<pre><code class=\"javascript\">const products = {     editable:true,     view:&quot;treetable&quot;,     scrollX:false,     columns:[         { id:&quot;rank&quot;, header:&quot;&quot;, width:50 },         { id:&quot;title&quot;, header:&quot;Title&quot;, fillspace:true, template:&quot;{common.treetable()} #title#&quot;},         { id:&quot;price&quot;, header:&quot;Price&quot;, width:200, editor:&quot;text&quot; }     ],     select:&quot;row&quot;,     url:&quot;data\/products.js&quot;,     scheme:{         $group:{             by:&quot;category&quot;,             map:{                 title:[&quot;category&quot;]             }         },         $sort:{ by:&quot;value&quot;, dir:&quot;asc&quot; }     } } <\/code><\/pre>\n<p>  \u0412\u043d\u0443\u0442\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 $group \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0434\u0432\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430:  <\/p>\n<ul>\n<li>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <b>by<\/b>, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435. \u0417\u0434\u0435\u0441\u044c \u2014 \u043e\u0434\u043d\u043e \u0438\u0437 \u043f\u043e\u043b\u0435\u0439 (\u201ccategory\u201d);<\/li>\n<li>\u043e\u0431\u044a\u0435\u043a\u0442 <b>map<\/b> \u2014 \u0437\u0434\u0435\u0441\u044c \u043e\u043f\u0438\u0448\u0435\u043c \u043f\u043e\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0433\u0440\u0443\u043f\u043f. \u0413\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430 \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0434\u043b\u044f \u043d\u0438\u0445 \u00ab\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438\u00bb. \u0427\u0435\u0440\u0435\u0437 map \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u044d\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u043e\u0432\u044b\u0435 \u043f\u043e\u043b\u044f. \u0427\u0442\u043e\u0431\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0438\u0441\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u043f\u043e\u043b\u0435 \u201ctitle\u201d. \u041f\u0435\u0440\u0435\u0434\u0430\u043c \u0432 \u043d\u0435\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0430.<\/li>\n<\/ul>\n<p>  \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0444\u0443\u043d\u043a\u0446\u0438\u044e <a href=\"https:\/\/docs.webix.com\/api__datastore_sort.html\" rel=\"nofollow\">$sort<\/a>, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0430\u043b\u0444\u0430\u0432\u0438\u0442\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435.<\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fb\/ue\/md\/fbuemdkcsin6lvdc0qrvl8ajehs.png\"><\/p>\n<h3>\u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432<\/h3>\n<p>  <\/p>\n<blockquote><p><i>\u0412 \u0437\u0430\u0434\u0430\u0447\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432\u0438\u0434\u0436\u0435\u0442\u044b Chart \u0438 List, \u043a\u043e\u0434 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435 users_module.js \u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u044b \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u201cUsers\u201d<\/i>  <\/p><\/blockquote>\n<p>  \u0412\u0438\u0434\u0436\u0435\u0442\u044b Chart \u0438 List \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u043c\u0430\u0441\u0441\u0438\u0432 JSON. \u042d\u0442\u0438 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043c\u043e\u0436\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0432\u0441\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043d\u0438\u0445 (\u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0435) \u0442\u0440\u0430\u043d\u0441\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 sync.<\/p>\n<p>  \u041c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/docs.webix.com\/desktop__data_binding.html#syncingcomponents\" rel=\"nofollow\">sync<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u0434\u0440\u0443\u0433\u043e\u043c\u0443. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0435, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435, \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0435, \u0438 \u043f\u0440., \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432 \u0434\u0440\u0443\u0433\u043e\u043c.<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 <a href=\"https:\/\/docs.webix.com\/api__refs__ui.chart.html\" rel=\"nofollow\">Chart<\/a> \u2014 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0430 \u2014 \u044f \u0443\u0434\u0430\u043b\u044e \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<pre><code class=\"javascript\">{     view:&quot;chart&quot;,     id:&quot;chart&quot;,     type:&quot;bar&quot;,     value:&quot;#age#&quot;,     label:&quot;#age#&quot;,     xAxis:{         template:&quot;#name#&quot;,         title:&quot;Age&quot;     } } <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c, \u0432 \u0444\u0430\u0439\u043b\u0435 script.js \u043c\u0435\u0442\u043e\u0434\u043e\u043c sync \u044f \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e \u0432\u0438\u0434\u0436\u0435\u0442 <i>Chart<\/i> \u0441 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u043c <i>List<\/i>.<\/p>\n<pre><code class=\"javascript\">$$(&quot;chart&quot;).sync($$(&quot;user_list&quot;)); <\/code><\/pre>\n<p>  \u0412 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <b>addPerson<\/b> \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0430 List. <\/p>\n<pre><code class=\"javascript\">let addPerson = () =&gt; {     let obj = {         name:&quot;Some name&quot;,         age:Math.floor(Math.random() * 80) + 10,          country:&quot;Some country&quot;     }     $$(&quot;user_list&quot;).add(obj); }; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438\u0437 \u0441\u043f\u0438\u0441\u043a\u0430, \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u0438 \u0432 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0435. \u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0435 List \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0442\u0440\u043e\u043d\u0435\u0442 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 Chart.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/og\/zb\/oo\/ogzbooc8vtgcjrf0b2ha4953d54.png\"><\/p>\n<h3>\u041e\u0431\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/h3>\n<p>  \u041d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f. \u041f\u043e\u043c\u0438\u043c\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 API \u0431\u044b\u043b\u0430 \u043e\u0441\u0432\u043e\u0435\u043d\u0430 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u0432 \u0432\u0438\u0434\u0436\u0435\u0442\u0430\u0445 Table \u0438 TreeTable \u043e\u0434\u043d\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439. \u0411\u044b\u043b \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d \u0441\u043f\u043e\u0441\u043e\u0431 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435, \u0430 \u043f\u0440\u0438\u043c\u0435\u0440 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>  \u0421 \u0433\u043e\u0442\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f <a href=\"https:\/\/snippet.webix.com\/njqcjz0b\" rel=\"nofollow\">\u0442\u0443\u0442<\/a>.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/489024\/\"> https:\/\/habr.com\/ru\/post\/489024\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/489024\/\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fu\/hk\/d8\/fuhkd8pt6ybfjwzca4ozrxpn1u0.png\"><\/p>\n<p>  \u042f \u2014 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0439 front-end \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a. \u0421\u0435\u0439\u0447\u0430\u0441 \u044f \u0443\u0447\u0443\u0441\u044c \u0438 \u0441\u0442\u0430\u0436\u0438\u0440\u0443\u044e\u0441\u044c \u0432 \u043e\u0434\u043d\u043e\u0439 \u043c\u0438\u043d\u0441\u043a\u043e\u0439 IT \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438. \u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043e\u0441\u043d\u043e\u0432 web-ui \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 JS \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Webix. \u042f \u0445\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0438\u043c \u0441\u043a\u0440\u043e\u043c\u043d\u044b\u043c \u043e\u043f\u044b\u0442\u043e\u043c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u0432\u0438\u0434\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u0443\u0447\u0435\u0431\u043d\u043e\u0433\u043e \u043f\u043e\u0441\u043e\u0431\u0438\u044f \u043f\u043e \u044d\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 UI \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298946","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298946"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298946\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}