Widgets are the building blocks of a screen (form) in a digital application, and each one has a specific purpose, such as user interaction or animation. Kony Visualizer provides you with built-in widgets that help you achieve your required functionality. You can configure every widget based on your needs.
This topic covers widgets for the Mobile, Tablet, and Desktop channels. For information regarding Watch widgets, see Add Watch Widgets.
Kony Visualizer provides three types of widgets: Container, Basic, and Advanced.
Click a topic for more information.
Access widgets from the Widget Tab
Occupy the Parent Widget’s Entire Area
Convert Flex Container Widgets
Group Widgets into a Container Widget
The widgets are located on the Widget tab of the Kony Library pane. To add widgets to a form, simply drag and drop them into place. As you do so, alignment guides display to guide your positioning of the widget.
Kony Visualizer provides you with three types of widgets.
Container Widgets act as containers to group other widgets. Using the container widgets you can group two or more widgets so that you can position them as a unit. Following are the Container Widgets available in Kony Visualizer:
Widget |
Description | Image |
---|---|---|
FlexContainer | A Container Widget with flexible properties. Flexible properties allow you to place widgets anywhere in the form and configure alignment properties such as Left, Right, Top, and Bottom. You can set the properties of the FlexContainer in three units of measurement: dp(device independent pixels, dip = dp); px (actual picture elements [i.e. pixels] on screen); and percentage. If you want, you can convert a FlexContainer to a FlexScrollContainer. For more information, see Convert Flex Container Widgets. |
A FlexContainer Widget with a Button Widget inside. |
FlexScrollContainer | A Container Widget that works as a FlexContainer but scrolls horizontally or vertically. If you want, you can convert a FlexScrollContainer to a FlexContainer. For more information, see Convert Flex Container Widgets. |
A FlexScrollContainer Widget with button widgets inside, arranged vertically with the Scroll Direction property. |
TabPane | A Container Widget in which you can group widgets in tabs. Each tab can have its own set of widgets, and you can add a new tab by using the Tab Widget. | |
Tab | A Container Widget to be used only with the TabPane Widget. Drag-and-drop this widget onto a TabPane Widget to create a new tab. |
Basic Widgets help you build the user interface in your application. Along with designing the application, you can also configure events to these widgets or write code snippets to achieve a functionality.
Widget |
Description | Image |
---|---|---|
Button | A Button Widget enables you to provide input to an application or to trigger an event. For example, you can navigate to a form, interact with a dialog box, or confirm an action. | |
Calendar | Calendar Widget allows you to select a date from a graphical calendar. The Calendar Widget appears as a label with a small calendar icon (icon does not appear on Mobile Web platforms) and displays the date or the date format you specified. Click the Calendar Widget to interact. | |
CheckBoxGroup | The CheckBoxGroup Widget allows you to make selections from a group of check boxes. When you select a check box, a check mark appears inside the check box, to indicate the selection. | |
DataGrid | The DataGrid Widget allows you to present a collection of data in rows and columns (tabular format). | |
Image2 | The Image widget is a non-interactive widget that you can use to display a graphic (local or remote). You can use an Image Widget in scenarios such as displaying your company's logo, displaying a snapshot, and providing an illustration. | |
Label | The Label Widget displays non-editable text on the Form and is non-interactive. | |
ListBox | The ListBox Widget displays a list of items such as a drop-down box and allows you to select a single item at a time. | |
RadioButtonGroup | The RadioButtonGroup is a widget that allows you to define a set of radio buttons, and a user can choose one of the buttons as an option. | |
RichText | The RichText Widget displays non-editable and formatted text on the Form. HTML formatting tags in the RichText Widget to display text with styles (bold, underlined and so on), links, and images. | |
Slider | The Slider Widget allows you to select a value from a defined range of values by moving the thumb (an indicator) in a horizontal direction. | |
TextArea2 | The TextArea2 Widget provides a means by which the user can enter text. | |
TextBox2 | The TextBox2 Widget is used to capture input from the user. |
Advanced widgets provide you the capability to achieve the most commonly used functionality in your application. These Widgets are developed by Kony. Also, the option to configure properties of the widgets is provided.
Widget |
Description | Image |
---|---|---|
Browser | Use the Browser Widget to display HTML content of your application without navigating away from the application or opening the native browser. | |
Cordova Browser |
Use the Cordova Browser Widget to make the content of a Cordova application accessible to the user. For more information, see Create Cordova Applications. |
|
Camera | Uses the device's native camera and its functionality for image and video capture. | |
Map | A Map Widget displays locations defined by latitude and longitude on an on-screen map. | |
Phone | Accesses the native phone dialer and initiate a voice call to the number that appears on the widget. | |
PickerView | A PickerView Widget uses either a spinning wheel control or flat view picker to display multiple sets of values and allows you to select a combination of values. | |
Segment2 | A Segment2 Widget consists of multiple segments (rows or records), and each segment (row or record) can have multiple child widgets. | |
Switch | The Switch Widget presents two mutually exclusive choices or states. | |
Video | Used for displaying a video as referenced by a URL or the video user upload. |
Using the following options you can populate a form with widgets:
Note: You cannot place a Tab widget directly on a form. You can drop a Tab widget only inside a TabPane container widget.
Important: You cannot create new VBox(deprecated) forms, but you can import VBox forms from your previous projects into your latest projects and continue to work with them seamlessly.
When you create a new template in a project in Kony Visualizer from V8 SP2 onwards, the top-level FlexContainer automatically is created along with your template. You can delete the FlexContainer and add a VBox(deprecated) form if needed.
Note: The Duplicate feature and Copy and Paste feature differ in that you can duplicate a widget within the same form whereas you can copy a widget and then paste the widget within the same form, a different form, or a different channel.
You can fit a widget to its parent such that it occupies the parent widget’s entire area.
To fit a widget to its parent, do the following:
After adding a flex container to a form and populating it with widgets, you might decide that your app would be better served by having a flex scroll container—a container that allows the user to scroll vertically or horizontally. Or you might find yourself in the opposite situation. You may have a flex scroll container that you want to convert to a non-scrolling flex container. You can convert any flex container to a flex scroll container—and vice versa—with a couple of clicks.
To convert a flex container widget to its alternate, do the following:
You can re-size and reposition widgets, either individually or as part of a multiple selection, in two ways: by dragging their boundary handles, or by changing the Flex properties located on the Look tab of the Properties pane.
To re size and reposition widgets, do the following:
The Flex properties on the Look tab of the Properties pane are as follows:
With Kony Visualizer, you can group widgets together under a single container widget so that you can manipulate them as a single unit, including moving and duplicating them.
To group widgets into a container widget, do the following:
If you need to make reference to a particular widget in a module, you can copy the widget
FormName.ContainerName.WidgetName
To copy the
You can now paste the widget
You can make a widget into a parent and then add widgets under it so that they are grouped together.
To parent or unparent widgets, do the following:
For every type of widget, Kony Visualizer has its own generic default style, but you may want to set your own default widget style to simplify the process of formatting new widgets.
To set the default widget style, do the following:
For information on common properties of widgets, see Widget Look Properties.
Rev | Author | Edits |
7.0 | NMK | NMK |
Copyright © 2013 Kony, Inc. All rights reserved. |