Getting started
...
Create an app from scratch
Customize the Hello-Jigx solut...

Add widgets

4min

Overview

Widgets can be customized in many ways to reflect the styling and functionality you require. Use the widget image, location, chart, and other elements for customizations. In this section, you will learn how to change your map

 with an icon to a widget.location, and add a widget.image widget to the composite.jigx file.

Hello Jigx solution with location icon
Hello Jigx solution with location icon

Widget location &
Widget location & image


Steps

Add a widget to a jig

  1. Open the Hello-
    
    solution in
    
    in
    
    , and click on the map.jigx file.
  2. Delete the icon: location entry.
  3. Add the widget.location code below. For the address you use expressions to call the city New York from the static datasource .

map.jigx


4. Open the composite.jigx file and copy the code below. Note the new widgets section using widget.image showing a source uri for the image you want displayed.

composite.jigx


5. Save and publish the Hello-

 solution. 6. Run the Hello-

solution on your mobile device to see the change to the map widget on the

.