> For the complete documentation index, see [llms.txt](https://webix.gitbook.io/webix-jet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://webix.gitbook.io/webix-jet/api/jetview-api.md).

# JetView API

## Methods

The JetView class has the following methods:

| Method                                                                                | Use                                                                         |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [contains()](/webix-jet/api/jetview-api/jetview-methods.md#this-contains)             | checks if a view contains a subview                                         |
| [getParam()](/webix-jet/api/jetview-api/jetview-methods.md#this-getparam)             | returns a URL parameter                                                     |
| [getParentView()](/webix-jet/api/jetview-api/jetview-methods.md#this-getparentview)   | returns the parent view                                                     |
| [getRoot()](/webix-jet/api/jetview-api/jetview-methods.md#this-getroot)               | returns the top Webix widget in the view                                    |
| [getSubView()](/webix-jet/api/jetview-api/jetview-methods.md#this-getsubview)         | returns a subview of the view                                               |
| [getSubViewInfo()](/webix-jet/api/jetview-api/jetview-methods.md#this-getsubviewinfo) | returns the object with the info on the subview and a pointer to its parent |
| [getUrl()](/webix-jet/api/jetview-api/jetview-methods.md#this-geturl)                 | returns an array of the URL segments related to a view                      |
| [getUrlString()](/webix-jet/api/jetview-api/jetview-methods.md#this-geturlstring)     | returns the URL as a string                                                 |
| [on()](/webix-jet/api/jetview-api/jetview-methods.md#this-on)                         | attaches an event listener                                                  |
| [refresh()](/webix-jet/api/jetview-api/jetview-methods.md#this-refresh)               | repaints the view and its subviews                                          |
| [setParam()](/webix-jet/api/jetview-api/jetview-methods.md#this-setparam)             | sets the URL parameters                                                     |
| [show()](/webix-jet/api/jetview-api/jetview-methods.md#this-show)                     | shows a subview                                                             |
| [ui()](/webix-jet/api/jetview-api/jetview-methods.md#this-ui)                         | creates a popup or a window                                                 |
| [use()](/webix-jet/api/jetview-api/jetview-methods.md#this-use)                       | enables a plugin                                                            |
| [$$()](/webix-jet/api/jetview-api/jetview-methods.md#this-usdusd)                     | returns a Webix widget by its ID                                            |

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

| Method                                                                  | Use                                                                   |
| ----------------------------------------------------------------------- | --------------------------------------------------------------------- |
| [config()](/webix-jet/api/jetview-api/jetview-handlers.md#config)       | is called when the UI of a view is created                            |
| [init()](/webix-jet/api/jetview-api/jetview-handlers.md#init)           | is called when a view is initialized                                  |
| [urlChange()](/webix-jet/api/jetview-api/jetview-handlers.md#urlchange) | is called when the app URL is changing for this view                  |
| [ready()](/webix-jet/api/jetview-api/jetview-handlers.md#ready)         | is called when the view and all its inner views are fully initialized |
| [destroy()](/webix-jet/api/jetview-api/jetview-handlers.md#destroy)     | is called when a view is destroyed                                    |

## Properties

| Property                                                    | Use               |
| ----------------------------------------------------------- | ----------------- |
| [app](/webix-jet/api/jetview-api/jetview-properties.md#app) | refers to the app |
