How Do I Design a Component in SmartUX Studio?

2216 views

In this video, you will learn the process of designing a component. You will learn how to create a Form, add Columns, Containers, and Rows, as well as Labels and Input fields. We will also cover Data Mapping, saving your work, and viewing the designed component in SmartUX Live Preview.

For the demo purpose, we are designing a component named Form. This component has two Label controls and two Edit controls created in Magic xpa Studio:

1. Accessing UX Widegts

Once you have the Form component opened in SmartUX Studio, go to the UX Widgets option.

2. Using UX Widgets

Drag and drop the required widgets on the Canvas.

3. Creating Component Structure

First, create a structure for the Component using Card, Container, couple of Rows, and a few Columns.

4. Adding Controls on Canvas

Now that we have a structure, add Edit and Label widgets. While dragging and dropping the Widgets, the Canvas can be switched to Expanded mode.

5. Expanding Canvas

Clicking on Expand View Button on the top bar will expand the Canvas to give better view of the Component contents.

6. Mapping Controls

Toggle the view back to normal for Canvas. Now you can map the Widgets to Magic xpa controls. Select an individual Widget at a time for mapping controls.

7. Selecting a Widget

Select the first Widget named Label. 

The Property Sheet for the selected Widget is opened in the Right pane as shown below.

 

8. Opening Data Mapping Dialog

From the Property Sheet, select open Data Mapping dialogue.

9. Selecting a Control to Map

Select the required control.

The mapping of control will be visible on the Property Sheet.

We can also map a mg function for Text. 

10. Opening Dialog for Mapping mg Function

Open the dialogue for the same from the Property Sheet.

11. Selecting Data Mapping for mg Function

Select Data Mapping for mg functions. Alternatively, you can also map static values from Set Static HTML option.

12. Choosing mg Function for Control

Now choose the mg function for the control you want to map onto. Here, we consider mapping mg.getText for FirstNameLabel control.

Your mapping will be visible in the Property Sheet. 

13. Mapping Rest of Widgets

Map the remaining Widgets.

14. Viewing Live Preview

Once all widgets are mapped, go to Live Preview.

15. Viewing Components in Action

You can see the component in action.

Share this Article

How Do I Design a Component in SmartUX Studio?

Or copy link

CONTENTS