Guest User

Server Side Response

a guest
Nov 14th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     (function() {
  2.         webix.ready(function() {
  3.             webix.ui({
  4.                 view: "window",
  5.                 id: "window",
  6.                 autowidth: true,
  7.                 height: window.innerHeight - 10,
  8.                 position: "center",
  9.                 modal: true,
  10.                 animate: {
  11.                     slide: "in",
  12.                     direction: "top"
  13.                 },
  14.                 head: {
  15.                     view: "toolbar",
  16.                     margin: -4,
  17.                     cols: [{
  18.                         view: "label",
  19.                         label: "Form Details"
  20.                     }, {
  21.                         click: "$$('window').close();"
  22.                     }, ]
  23.                 },
  24.                 body: {
  25.                     view: "scrollview",
  26.                     scroll: "y",
  27.                     height: window.innerHeight - 50,
  28.                     body: {
  29.                         rows: [{
  30.                             view: "form",
  31.                             margin: 0,
  32.                             padding: 0,
  33.                             autoheight: true,
  34.                             elementsConfig: {
  35.                                 labelPosition: "top",
  36.                             },
  37.                             elements: [{
  38.                                 view: "accordion",
  39.                                 id: "window_items",
  40.                                 multi: true,
  41.                                 margin: 0,
  42.                                 rows: [{
  43.                                     header: "When",
  44.                                     view: "accordionitem",
  45.                                     css: "accordionitem-header",
  46.                                     body: {
  47.                                         cols: [{
  48.                                             view: "combo",
  49.                                             label: "Label 1",
  50.                                             id: "label_1_combo",
  51.                                             options: []
  52.                                         }, {
  53.                                             view: "combo",
  54.                                             label: "Label 2",
  55.                                             id: "label_2_combo",
  56.                                             options: []
  57.                                         }, {
  58.                                             view: "combo",
  59.                                             label: "Label 3",
  60.                                             id: "label_3_combo",
  61.                                             options: []
  62.                                         }]
  63.                                     },
  64.                                 }],
  65.                             }, {
  66.                                 view: "toolbar",
  67.                                 css: "footer_toolbar",
  68.                                 cols: [{}, {
  69.                                     view: "button",
  70.                                     value: "Save",
  71.                                     id: "button_save",
  72.                                     width: 150
  73.                                 }, {
  74.                                     view: "button",
  75.                                     value: "Cancel",
  76.                                     id: "button_cancel",
  77.                                     width: 150,
  78.                                     align: "right"
  79.                                 }]
  80.                             }]
  81.                         }]
  82.                     }
  83.                 }
  84.             }).show();
  85.         });
  86.     })();
Add Comment
Please, Sign In to add comment