Your Very First Gadget

Navigation:  Knowledge Base > User Console > Applications > Application Manager > Resource Manager > Gadgets > Gadget Editor >

Your Very First Gadget

Previous pageReturn to chapter overviewNext page

Your Very first Gadget is a simple Gadget used to set Text in a TextField.

Gadget UI Parts:

TextField

RoundButton

 

Gadget Action:

Set Text in the TextField On clicking on RoundButton.

 

 

To Create your Very first Gadget , Create a Project. Open your Project and follow the steps as given below.

 

Create

Step1: Click on Resource Manager on the Application Manager Page as shown below.

mobilous_appexe_myproject_gadget_simple_step1

 

Step2: Resource Manager Page Opens. Select "Gadgets" from "Filter by" options.

mobilous_appexe_myproject_gadget_simple_step3

 

Step3: Click on "Add Gadget" to create a new Gadget.

mobilous_appexe_myproject_gadget_simple_step4

 

Step4: Following Pop up opens to create a Gadget. Enter the parameters as shown below and click "Create".

mobilous_appexe_myproject_gadget_simple_step5           mobilous_appexe_myproject_gadget_simple_step6

 

Parameter

Description

Gadget Name

Enter the name of the Gadget.

View Type

View Type is the type of the page used in Gadget i.e FreeLayout.

Category

Category of the Gadget is UI Parts as Gadget is used as a UI Part in Page Editor.

Prefix Name

Enter the Prefix name for the Gadget which is used for reference in Page Editor.

 

Step5: Gadget is listed as shown below. Click on "Gadget Editor".

mobilous_appexe_myproject_gadget_simple_step7

 

Step6: Gadget Editor window opens as shown below.

mobilous_appexe_myproject_gadget_simple_step8

 

Step7: Drag and Drop UI parts to the Gadget Page for e.g TextField and RoundButton.

mobilous_appexe_myproject_gadget_simple_step9

 

Step8: Set Properties of TextField and RoundButton. Click on Edit(0) button corresponding to "On tap" Function of RoundButton to add action.

mobilous_appexe_myproject_gadget_simple_step10

 

Step9: Click on "Add" button, select "Property Control" Category and "Set Value" action.

mobilous_appexe_myproject_gadget_simple_step11

 

Parameter

Description

Page Name

Set the Gadget Page on which UI part is present e.g "My Gadget".

Target UI Part

Select the UI Part whose value needs to be set e.g "TextField_0".

Target UI Property

Enter the key for the UI part where key is any common property of the UI Part.To know more about the keys Click Here. e.g "text".

Value

Set the value for the key as shown in image. e.g "Welcome".

 

 

Step10: Select "Main Object Name" and click on File Menu and Save option to save the Gadget.

mobilous_appexe_myproject_gadget_simple_step12

 

Step11:  Resource Page opens. Gadget is created. Click on "Open Page Editor" to open Page Editor.

mobilous_appexe_myproject_gadget_simple_step13

 

Step12: Page Editor appears as shown below. The new Gadget is listed under Gadget option in ToolBox.

mobilous_appexe_myproject_gadget_simple_step15_PE

 

Step13: Drag and Drop the Gadget on the Page as shown below.

mobilous_appexe_myproject_gadget_simple_step16_PE

 

Step14: Click on Preview Button on the right top corner and then Click on "Preview" option to preview the Page.

mobilous_appexe_myproject_gadget_simple_step17_PE

 

Step15: In the Output , click on "Set" Button as shown in first image. The text "Welcome" appears in the TextField as shown in second Image.

mobilous_appexe_myproject_gadget_simple_output1                 mobilous_appexe_myproject_gadget_simple_output2

 

Edit

User can Edit the Gadget Detail and Gadget functionality.

 

a) To Edit Gadget Detail

1. Click on the Edit icon in the Resource manager page as shown below.

mobilous_appexe_myproject_gadget_simple_edit_icon

2. Following Pop up appears. Update the Gadget Name or Prefix Name as required.

mobilous_appexe_myproject_gadget_simple_edit_details

b) To Edit Gadget Functionality

1. Click on "Gadget Editor" in the Resource Manager Page as shown in the image below. This opens Gadget Editor Window and user need to follow the steps as in Create Gadget process above.mobilous_appexe_myproject_gadget_simple_edit

Delete

User can Delete the Gadget. Follow the below steps to Delete the Gadget.

 

Step1: Click on Delete icon as shown in the image below.

mobilous_appexe_myproject_gadget_simple_Delete

Step2: Confirmation Alert is displayed as shown below. Click on "Yes" to delete the Gadget and "No" to cancel delete.

mobilous_appexe_myproject_gadget_simple_Delete_alert

Step3: The Gadget is deleted from the Resource Manager as shown in the image below. Hence, The Gadget is deleted from the Gadget list in the Page Editor.

mobilous_appexe_myproject_gadget_simple_Deleted