In a user panel, every view draws the main window no matter it is selected from a static navigation tree or dynamically navigated. This is a set of documents to specify APS JS SDK components of a view, layout rules, widget hierarchy, widget base properties, and the ways to load widgets.
In this document:
In a screen, users need to perform various operations with objects, for example:
With the help of APS JS SDK, the typical view is built from several groups of control elements (controls).
aps/PageContainer
control is the root element in a view that contains all visual controls.
Only one PageContainer
must be defined in the view.PageContainer
. They allow a user to perform
all necessary operations with application resources.Cancel
, Previous
, Next
, and Submit
buttons, can be declared in the application metadata,
but processed by the JS code. The JS code makes decision on where to navigate and which other actions to perform preliminary,
when a control is activated.Store
manages the asynchronous communication with the APS controller. It implements the REST operations:
POST, GET, UPDATE, and DELETE.Model
, if bound to a widget, establishes the 2-way synchronization with the widget.
If the widget value is changed, it will be synced with the Model
. Usually, when navigating to another view,
the JS code takes care of syncing the Model with the Store control and saving the data in the APS database.In accordance with the list of control groups considered above, APS JS SDK provides three groups of API.
aps/Grid
allows you to present tables and toolbars. Also it can display tabulated data for which it supports
splitting into pages with navigation through them, filtering, sorting, and row selection.TextBox
, Select
, Slider
, and CheckBox
, allow users to enter or select
needed data.aps/ActiveList
, aps/Gouge
, aps/Message
, and aps/ProgressBar
, are needed to display
output data for users in a convenient way.Model
is a data model for representing APS resources. It is used for syncing resource properties with
widgets.Store
is a data store used for communicating with the APS controller.gotoView()
switches a screen to the specified view.onSubmit()
, onEdit()
, onCancel()
, and other event handlers are used by the JS code to process
activation of different navigation controls.APS JS SDK provides a set of modules for creating and using various visual interface elements of web applications. We mean such elements as an interactive button, slider, toolbar, and progress bar.
Note
For the full description of all APS JS modules refer to the JS Modules reference guide.
Before you start creating your application UI using APS JS widgets, be aware of the following general documents:
Also, for your convenience, we recommend you to get familiar with common widget properties and methods:
Depending on the user panel type, the view structure varies significantly as specified in the following documents: