18.02.2015 Views

5ml User's Guide

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>5ml</strong> <strong>User's</strong> <strong>Guide</strong><br />

About Common Widgets<br />

<strong>5ml</strong> includes several Common widgets to create page elements, including forms, in your project:<br />

• Text widget: Creates a simple text element. You can change its appearance, including the text font family and<br />

size, text formatting within the element, and the element's layout on the page. It also provides a HTML editor so<br />

you can include more advanced content, for example, a link.<br />

• Label widget: Creates an interactive text element. You can assign an action to the label element to be performed<br />

when the user taps the element. You can also change the element's appearance, including the text font family and<br />

size, text formatting within the element, character spacing, and the element's layout on the page.<br />

• Button widget: Creates an interactive button with a border and text. You can assign an action to the button element<br />

to be performed when the user taps the button. You can also change the element's appearance, including the<br />

text font family and size, text formatting within the element, and the element's layout on the page.<br />

• Text Input widget: Creates a simple text entry form field. You can change the element's appearance, including the<br />

text font family and size, text formatting within the element, character spacing, and its layout on the page. You can<br />

also add prompt text and define the maximum number of characters that can be entered into the form field.<br />

• Text Area widget: Creates a text entry form field similar to the Text Input widget, but with a larger entry field that<br />

does not have a limit on the maximum number of characters you can enter. You can change the element's appearance,<br />

including the text font family and size, text formatting within the element, character spacing, and the element's<br />

layout on the page. You can also add prompt text.<br />

• Checkbox widget: Creates an interactive checkbox element to represent a selection choice. You can assign an<br />

action to the element to be performed when the user selects the element and submits the form. You can also<br />

change the element's appearance, including the text font family and size, text formatting within the element, character<br />

spacing, and the element's layout on the page.<br />

• Radio Button widget: Creates an interactive radio button element to represent a selection choice. Once you place<br />

two or more Radio Button widgets on a page and associate them together, you can select one Radio Button element<br />

to be the default selection. You can change the element's appearance, including the text font family and size,<br />

text formatting within the element, character spacing, and the element's layout on the page. You can also label the<br />

radio button and assign it a value.<br />

• List Menu widget: Creates an interactive drop-down list menu element to represent a list of choices to choose<br />

from. You can define the menu selections and assign one selection to be the default selection. You can also assign<br />

an action to the element to be performed when the user selects the element and submits the form. You can change<br />

the element's appearance, including the text font family and size, text formatting within the element, character<br />

spacing, and the element's layout on the page.<br />

• Password Input widget: Creates a password entry field. You can change the element's appearance, including the<br />

text font family and size, text formatting within the element, character spacing, and its layout on the page. You can<br />

also add prompt text and define the maximum number of characters that can be entered into the form field.<br />

Click the Widgets tab at the top of the Library pane to show the Widgets pane. You can then select Common in the dropdown<br />

menu under the Widgets tab, as shown in Figure 9-1 on page 236, to see the Button, Label, Text, Text Input, Text<br />

- 235 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!