### Install Dependencies and Start Development Server Source: https://docs.webix.com/desktop_jet__installing.html Navigate to the Desktop root folder, install dependencies using yarn or npm, and then start the development server. ```bash // navigate to root folder cd files // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Install Dependencies and Start Development Server Source: https://docs.webix.com/query__installing.html Navigate to the Query root folder, install necessary dependencies using yarn or npm, and then start the development server. ```bash // navigate to the root folder cd query // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Install Dependencies and Start Server Source: https://docs.webix.com/rich_text_editor__installing.html Navigate to the Rich Text Editor root folder, install dependencies using yarn or npm, and then start the development server. ```bash // navigate to the root folder cd editor // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Install Dependencies and Start Development Server Source: https://docs.webix.com/docmanager__installing_docmanager.html Navigate to the Document Manager root folder, install project dependencies using yarn or npm, and then start the development server. ```bash // navigate to the root folder cd docmanager // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Install Dependencies and Start Dev Server Source: https://docs.webix.com/desktop__install.html Navigate to the Webix root folder, install necessary dependencies using yarn or npm, and then start the development server. ```bash cd core yarn install //or npm install yarn server //or npm run server ``` -------------------------------- ### Install and Run Angular Demo Source: https://docs.webix.com/desktop__angular2.html Steps to install dependencies and start the Angular demo application. ```bash npm install npm run start ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/pivot_jet__installing.html Navigate to the Pivot root folder, install dependencies, and start the development server using these commands. ```bash // navigate to the root folder cd pivot // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Start Development Server for Diagram Samples Source: https://docs.webix.com/diagram__installing.html Use these commands to install dependencies and start a development server for modifying and running Diagram package samples locally. This allows you to see changes in real-time. ```bash // navigate to the root directory cd diagram // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/gantt__installing.html Navigate to the Gantt root folder, install dependencies using yarn or npm, and start the development server. ```bash // navigate to the root folder cd gantt // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/usermanager__installing.html Navigate to the User Manager root folder, install dependencies using yarn or npm, and start the development server. ```bash // navigate to the root folder cd users // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/scheduler__installing.html Navigate to the Scheduler root folder, install dependencies, and start the development server using yarn or npm. ```bash // navigate to the root folder cd scheduler // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/report__installing.html Navigate to the Report Manager root folder, install dependencies using yarn or npm, and start the development server. ```bash // navigate to the root folder cd reports // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/spreadsheet__spreadsheet_init.html Commands to install dependencies and start a development server for running Spreadsheet package samples locally. ```bash cd spreadsheet yarn install //or npm install yarn server //or npm run server ``` -------------------------------- ### Start NodeJS Backend Server Source: https://docs.webix.com/gantt__installing.html To use the NodeJS backend for Gantt, clone the repository and run the installation and start commands. ```bash npm install node index.js ``` -------------------------------- ### Run Development Server for Samples Source: https://docs.webix.com/kanban__kanban_init.html Install dependencies and start the development server to modify and view Kanban samples locally. Use either yarn or npm for package management and server commands. ```bash // navigate to the root directory cd kanban // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Run Package Samples Locally Source: https://docs.webix.com/chat__installing.html Navigate to the Chat root folder, install dependencies using yarn or npm, and start the development server to run package samples locally. ```bash // navigate to the root folder cd chat // install dependencies yarn install //or npm install // start dev server yarn server //or npm run server ``` -------------------------------- ### Portlet Constructor Example Source: https://docs.webix.com/api__refs__ui.portlet.html Demonstrates how to initialize a portlet with basic content and IDs. This setup allows for multiple portlets within a layout. ```javascript var portlet = webix.ui({ type:"space", rows:[ { view:"portlet", body:{template:"row 1"}, id:"p1"}, { view:"portlet", body:{template:"row 2"}, id:"p2"}, { view:"portlet", body:{template:"row 3"}, id:"p3"} ] }); ``` -------------------------------- ### Start NodeJS Backend Server Source: https://docs.webix.com/filemanager__installing_filemanager.html Install dependencies and run the local NodeJS backend server for File Manager. Provide the absolute path to the file system as an argument. ```bash npm install # windows, bash and cmd, same command npm run local D:\\apps\\some # linux npm run local /media/usr/d/apps/some ``` -------------------------------- ### Configuring Diagram Source: https://docs.webix.com/desktop__diagram.html Guides on installing and initializing the Webix Diagram widget, along with working with its configuration options. ```APIDOC #### Configuring Diagram * **Installing Diagram**: Describes how to install the Diagram widget. * **Creating Diagram on a Page**: Touches upon initializing Diagram and working with its configuration. ``` -------------------------------- ### Get the start of the week Source: https://docs.webix.com/api__date_weekstart.html Use webix.Date.weekStart to get the date object adjusted to the start of the week (Sunday). The original date object remains unchanged. ```javascript var date1 = new Date(2012,11,12,8,35); var date2 = webix.Date.weekStart(date1); console.log(date1); // -> Wed Dec 12 2012 08:35:00 GMT+0300 console.log(date2); // -> Sun Dec 09 2012 00:00:00 GMT+0300 ``` -------------------------------- ### Start Amazon S3 Backend Server Source: https://docs.webix.com/filemanager__installing_filemanager.html Install dependencies and run the local NodeJS backend server for File Manager using Amazon S3. Credentials should be set via environment variables. ```bash npm install npm run local s3://bucket-name/ ``` -------------------------------- ### Constructor Example Source: https://docs.webix.com/api__refs__ui.window.html Example of how to initialize and display a ui.window. ```APIDOC ## Constructor ```javascript var window = webix.ui({ view:"window", id:"my_win", head:"My Window", width: 200, height: 200, body:{ template:"Some text" } }).show(); ``` ``` -------------------------------- ### webix.Date.weekStart Source: https://docs.webix.com/api__date_weekstart.html Gets the start of the week for a given date. The start of the week is considered Sunday. ```APIDOC ## webix.Date.weekStart ### Description Gets the start of the week for a given date. ### Method Date.prototype.weekStart ### Parameters #### Path Parameters - **date** (Date) - Required - A date object. ### Response #### Success Response (Date) - **date** (Date) - A date object adjusted to the start of the week (Sunday 00:00:00). ### Request Example ```javascript var date1 = new Date(2012,11,12,8,35); var date2 = webix.Date.weekStart(date1); console.log(date1); // -> Wed Dec 12 2012 08:35:00 GMT+0300 console.log(date2); // -> Sun Dec 09 2012 00:00:00 GMT+0300 ``` ``` -------------------------------- ### Get Tags Response Example Source: https://docs.webix.com/docmanager__backend.html Example of the server response when retrieving tag data. ```json [ {"id":1,"name":"Review","value":"Review"}, {"id":2,"name":"Accepted","value":"Accepted"}, {"id":3,"name":"Denied","value":"Denied"}, {"id":4,"name":"Personal","value":"Personal"} ] ``` -------------------------------- ### Get Comments Response Example Source: https://docs.webix.com/docmanager__backend.html Example of the server response when retrieving comments for a file. ```json [ { "id":45,"text":"He's my patronus!!","date":"2020-04-20T07:56:49Z","user_id":1 } ] ``` -------------------------------- ### Get Users Response Example Source: https://docs.webix.com/docmanager__backend.html Example of the server response when retrieving user data. ```json [ {"id":1,"name":"Alastor Moody","email":"alastor@ya.ru", "avatar":"/users/1/avatar/1.jpg"}, {"id":2,"name":"Sirius Black","email":"sirius@gmail.com", "avatar":"/users/3/avatar/3.jpg"} ] ``` -------------------------------- ### GET Request for Modules Source: https://docs.webix.com/report__backend.html Example of a GET request to retrieve modules from the backend API. ```http GET http://localhost:3000/api/modules ``` -------------------------------- ### Server-Side Script Example Source: https://docs.webix.com/desktop__server_ajaxsave.html Example of how to access GET and POST parameters in a server-side script (PHP). ```php $id = $_GET['id']; $action = $_GET['action']; $prop1 = $_POST['prop1]; $prop2 = $_POST['prop2]; ``` -------------------------------- ### User Manager Backend GET Request Example Source: https://docs.webix.com/usermanager__backend.html Illustrates the GET request format for fetching user data from the backend. ```http GET http://localhost:3200/users ``` -------------------------------- ### Start Golang Backend Server Source: https://docs.webix.com/gantt__installing.html To use the Golang backend, clone the repository, configure the database connection in config.yml, build the project, and then run the executable. ```bash go build # bash ./wg # cmd wg ``` -------------------------------- ### Get Start of Month - JavaScript Source: https://docs.webix.com/api__date_monthstart.html Use monthStart to get the first day of the month for any given date. The time will be reset to midnight. ```javascript var date1 = new Date(2012,11,12,8,35); var date2 = webix.Date.monthStart(date1); console.log(date1); // -> Wed Dec 12 2012 08:35:00 GMT+0300 console.log(date2); // -> Sat Dec 01 2012 00:00:00 GMT+0300 ``` -------------------------------- ### Constructor Example Source: https://docs.webix.com/api__refs__ui.list.html Demonstrates how to initialize and configure a basic ui.list component with data. ```APIDOC ## Constructor ### Description Initializes a new instance of the ui.list component. ### Method ```javascript webix.ui({ view: "list", width: 250, height: 200, template: "#title#", select: true, data: [ { id: 1, title: "Item 1" }, { id: 2, title: "Item 2" }, { id: 3, title: "Item 3" } ] }); ``` ### Parameters * **view** (string) - Must be set to "list". * **width** (number) - The width of the list. * **height** (number) - The height of the list. * **template** (string|function) - Defines the template for each item in the list. * **select** (boolean|string) - Enables item selection. Can be `true` for single selection or a string for multi-selection mode. * **data** (array|object) - The data collection for the list. Can be an array of objects or a data object. ``` -------------------------------- ### ui.desktop Constructor Source: https://docs.webix.com/api__refs__ui.desktop.html Example of how to initialize the ui.desktop component with system parameters and a list of applications. ```APIDOC ## ui.desktop Constructor ### Description Initializes the ui.desktop view with system parameters and a list of applications. ### Method webix.ui ### Endpoint N/A (Constructor) ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```javascript webix.ui({ view: "desktop", systemParams: user, apps: [{ name: "spreadsheet", icon: "imgs/spreadsheet.png", pin: ["bar", "desktop"], launch: sParams => { // custom launch logic }, }, // ... other apps ] }); ``` ### Response #### Success Response (200) N/A (Constructor) #### Response Example N/A (Constructor) ``` -------------------------------- ### Get Button Value - JavaScript Source: https://docs.webix.com/api__link__ui.colorpicker_getvalue.html Retrieves the current value of a button control. This example demonstrates getting the text value of a button. ```javascript webix.ui({ view:"form", elements:[ { view:"button", id:"b1", value:"Edit", css:"webix_primary" }, { view:"button", id:"b2", value:"Back", css:"webix_primary" } ] }); $$("b1").getValue(); // returns "Edit" ``` -------------------------------- ### Get Value of a Button Source: https://docs.webix.com/api__link__ui.datepicker_getvalue.html This example demonstrates how to get the current value of a button control. The value returned is typically the text displayed on the button. ```javascript webix.ui({ view:"form", elements:[ { view:"button", id:"b1", value:"Edit", css:"webix_primary" }, { view:"button", id:"b2", value:"Back", css:"webix_primary" } ] }); $$("b1").getValue(); // returns "Edit" ``` -------------------------------- ### Constructor Example Source: https://docs.webix.com/api__refs__ui.toggle.html Example of how to initialize and configure a ui.toggle component. ```APIDOC ## Constructor ```javascript var toggle = webix.ui({ view:"toggle", type:"icon", name:"s4", offIcon:"pause", onIcon:"play", offLabel:"Disabled", onLabel:"Enabled" }); ``` ``` -------------------------------- ### Constructor Example Source: https://docs.webix.com/api__refs__ui.layout.html Demonstrates how to initialize a basic ui.layout with rows and columns. ```APIDOC ## Constructor ### Description Initializes a new instance of the ui.layout component. ### Method `webix.ui(config)` ### Endpoint N/A (Client-side JavaScript API) ### Parameters None directly for the constructor, configuration is passed as an object. ### Request Example ```javascript var layout = webix.ui({ rows:[ {template:"row 1"}, {template:"row 2"}, { cols:[ {template:"col 1"}, {template:"col 2"} ] } ] }); ``` ### Response #### Success Response (200) Returns the initialized layout instance. #### Response Example ```json { "instance": "layout_object" } ``` ``` -------------------------------- ### Basic Formula Examples Source: https://docs.webix.com/spreadsheet__math.html Formulas must start with '=', function and cell names should be in uppercase. Examples show basic arithmetic and SUM function usage. ```javascript "data": [ [ 3, 2, \"=A1+B2\",\""], [ 4, 2, \"=7+8\",\""], [ 5, 2, \"=7+B2\",\""], [ 6, 2, \"=SUM(A3+D7)\",\""] ... ] ``` -------------------------------- ### Get Parent View Example Source: https://docs.webix.com/api__link__ui.abslayout_getparentview.html This snippet demonstrates how to get the parent view of a component. It first defines a simple UI structure with a view and then retrieves its parent. ```javascript webix.ui({ rows:[ { id:"myview", template:"some" } ] }); var layout = $$("myview").getParentView(); ``` -------------------------------- ### ui.suggest Constructor Example Source: https://docs.webix.com/api__refs__ui.suggest.html Example of how to initialize a text input with a suggest list. ```APIDOC ## ui.suggest ### Description A suggest control. Can be used standalone or as an editor for other components. Check suggest documentation for more detailed description. ### Constructor ```javascript webix.ui({ view:"text", width: 300, name:"country", label:"Country", value:"Belarus", suggest:[ {id:1, value: "Albania"}, {id:2, value: "Bhutan"}, {id:3, value: "Colombia"}, {id:4, value: "Denmark"}, {id:5, value: "Germany"}, {id:6, value: "Moldova"} ] }); ``` ``` -------------------------------- ### Get Active Multiview Cell ID Source: https://docs.webix.com/api__ui.multiview_getactiveid.html Call this method on a multiview instance to get the ID of the currently displayed cell. No setup is required if the multiview is already initialized. ```javascript $$("views").getActiveId(); ``` -------------------------------- ### Get the start of the year with webix.Date.yearStart Source: https://docs.webix.com/api__date_yearstart.html Use this method to get a new date object representing the first day of the year of the input date. The time components will be set to midnight. ```javascript var date1 = new Date(2012,11,12,8,35); var date2 = webix.Date.yearStart(date1); console.log(date1); // -> Wed Dec 12 2012 08:35:00 GMT+0300 console.log(date2); // -> Sun Jan 01 2012 00:00:00 GMT+0300 ``` -------------------------------- ### Start Golang Backend Server Source: https://docs.webix.com/usermanager__installing.html Clone the Golang backend repository and build it to start the User Manager server locally. ```bash go build # bash ./usermanager #cmd usermanager ``` -------------------------------- ### Run Golang Backend with Preview Service Source: https://docs.webix.com/docmanager__installing_docmanager.html Start the Golang backend server and enable the file preview service by providing the preview service URL and data directory. ```bash #bash ./wfs-ls -preview http://localhost:3201/preview -data some/folder #cmd wfs-ls -preview http://localhost:3201/preview -data some/folder ``` -------------------------------- ### Get Time Part of a Date in Seconds Source: https://docs.webix.com/api__date_timepart.html Use timePart to get the number of seconds from the start of the day for a given date object. This function requires the Webix library to be loaded. ```javascript var date1 = new Date(2012,11,12,8,35); var date2 = webix.Date.timePart(date1); console.log(date1); // Wed Dec 12 2012 08:35:00 GMT+0300 console.log(date2); // 30900 ``` -------------------------------- ### Get HTML Input Node of a Button Source: https://docs.webix.com/api__link__ui.counter_getinputnode.html This example demonstrates how to get the HTML element of a button within a Webix form. The returned element is a standard HTML button element. ```javascript webix.ui({ container:"box", view:"form", elements:[ { view:"text", id:"f1", label:"Email" }, { view:"text", id:"f2", label:"Password", type:"password" }, { view:"button", id:"b1", value:"Login", css:"webix_primary" } ] }); $$("b1").getInputNode(); //-> ``` -------------------------------- ### Desktop Constructor Source: https://docs.webix.com/api__refs__ui.desktop.html Example of initializing the desktop view with system parameters and defining applications. ```javascript webix.ui({ view: "desktop", systemParams: user, apps: [{ name: "spreadsheet", icon: "imgs/spreadsheet.png", pin: ["bar", "desktop"], launch: sParams => { ... }, }, ... ] }); ``` -------------------------------- ### Define Custom Template Start for Pager Type Source: https://docs.webix.com/api__link__ui.pager_type_other.html Use this to define custom template start functions for view rendering. This example shows how to set a custom templateStart for the 'some' type. ```javascript some.type.templateStart = function(obj, type){ return "