GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.webix.com — Start Coding with Webix, Getting Started Webix Docs Beginner
Start Coding with WebixBefore you proceed to the main principles of Webix, make sure that you know how to:
And do not forget about the Interactive Tutorials that cover practical steps for mastering Webix. ComponentsWebix includes over 100 widgets aka views:
All of them inherit from base View and can be created by providing JSON configuration within webix.ui function:
There are also view-less Data and Tree Collections for storing and manipulating data on the client-side:
Related sample: Data Syncing: Collections and Widgets Creating ViewsTo create a component on the page, provide its name and other necessary settings as a JSON object:
View Instances Once the component is created, you can get its instance by passing its ID to the $$ method:
If you need to access the instance of the topmost view, you can get it as a webix.ui return value:
From view instance you can call component methods, read settings, listen to events, e.g:
Combining views Webix offers several layout types to arrange components:
It is recommended to describe UI parts in variables and combine them into a single JSON structure initialized by a single webix.ui call: Vertical layout
Note that Windows and Popup lie above layout, so you will need to use separate webix.ui calls for them. View ContainersWebix views are rendered in the document body, unless an existing HTML element is specified as a container for it. To achieve this, create and set IDs to a div element and provide this ID as the value of the component's container.
However, there are some limitations regarding HTML containers for Webix views:
So, if you develop a single-page application with Webix, avoid putting it into an HTML container to preserve responsiveness. View APIEach component has its own set of methods, properties and events that can be shared or specific ones:
All available API per component is located in the API reference section of the documentation. HelpersApart from view layer, Webix offers helpers for:
In case of a really big app with lots of components, controls and functions, consider Webix Jet, the proprietary MV framework that can help you organize your Webix code wisely and efficiently. It offers:
Using Webix Jet is not necessary, you can still develop with pure Webix, but you will need to think of the app structure yourself. Back to topJoin Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.
Webix
© XB Software Ltd
2013-2026 |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |