Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.02 KB

jetview-api.md

File metadata and controls

40 lines (32 loc) · 2.02 KB

JetView API

Methods

The JetView class has the following methods:

Method Use
contains() checks if a view contains a subview
getParam() returns a URL parameter
getParentView() returns the parent view
getRoot() returns the top Webix widget in the view
getSubView() returns a subview of the view
getSubViewInfo() returns the object with the info on the subview and a pointer to its parent
getUrl() returns an array of the URL segments related to a view
getUrlString() returns the URL as a string
on() attaches an event listener
refresh() repaints the view and its subviews
setParam() sets the URL parameters
show() shows a subview
ui() creates a popup or a window
use() enables a plugin
$$() returns a Webix widget by its ID

JetView also has life-time handlers that are called automatically:

Method Use
config() is called when the UI of a view is created
init() is called when a view is initialized
urlChange() is called when the app URL is changing for this view
ready() is called when the view and all its inner views are fully initialized
destroy() is called when a view is destroyed

Properties

Property Use
app refers to the app