concept label in category nativescript

appears as: labels, label, label, labels, The label, A label
NativeScript in Action

This is an excerpt from Manning's book NativeScript in Action.

The NativeScript core modules are a collection of libraries that you will learn about throughout this book. The libraries are what you will use to build your app and instruct the NativeScript runtime what you what your app to do on a device. The core modules consist of different libraries such as UI components (buttons, list views, labels), navigation, and the application.

Figure 5.14 The Contact Us page with descriptive labels removed. The hints provide enough information for the user to understand the purpose of each textbox without the labels.
Listing 6.2 A three-row by two-column grid layout with a label in each cell
<Page> <GridLayout rows=”*,*,*” columns=”*,*” width=”300” height=”450”> <Label row=”0” col=”0” text=”Couch Commander” textWrap=”true” #1 style=”background-color: #CCCCCC” /> #1 <Label row=”0” col=”1” text=”Mummy Madness” textWrap=”true” #1 style=”background-color: #EEEEEE” /> #1 <Label row=”1” col=”0” text=”Pyro Robots” textWrap=”true” #1 style=”background-color: #EEEEEE” /> #1 <Label row=”1” col=”1” text=”Rescue Pups” textWrap=”true” #1 style=”background-color: #CCCCCC” /> #1 <Label row=”2” col=”0” text=”Super Marshmallow Man” #1 textWrap=”true” style=”background-color: #CCCCCC” /> #1 <Label row=”2” col=”1” text=”Vampire Valkyrie” textWrap=”true” #1 style=”background-color: #EEEEEE” /> #1 </GridLayout> </Page> #1 Each cell has a Label contained within. A row and col property are added to each Label to tell the GridLayout where to place the component. Grid cell coordinates are always zero-based numbers.

We’ll start using themes on the home page of the Pet Scrapbook. At the end of chapter 9, the home page had several custom CSS classes for the page header, footer, and labels (listing 10.1).