ts-components-summary.md 11.3 KB
Newer Older
E
ester.zhou 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Component Overview


## Rows and Columns

- [Column](ts-container-column.md)

    A container that lays out child components vertically.
- [ColumnSplit](ts-container-columnsplit.md)

    A container that lays out child components vertically and inserts a horizontal divider between every two child components.
- [Row](ts-container-row.md)

    A container that lays out child components horizontally.
- [RowSplit](ts-container-rowsplit.md)

    A container that lays out child components horizontally and inserts a vertical divider between every two child components.
- [SideBarContainer](ts-container-sidebarcontainer.md)

    A container that contains a sidebar and content area as its child components. The sidebar is the first child component and can be shown or hidden as needed. The content area is the second child component.


## Stack, Flex, and Grid

E
ester.zhou 已提交
25
- [Stack](ts-container-stack.md)
E
ester.zhou 已提交
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65

    A container where child components are successively stacked and the latter one overwrites the previous one.
- [Flex](ts-container-flex.md)

    A container that allows for flexible layout of child components.
- [GridContainer](ts-container-gridcontainer.md)

    A container that lays out components vertically and is used only in the grid layout.
- [GridRow](ts-container-gridrow.md)

    A container that is used in a grid layout, together with its child component **\<GridCol>**.
- [GridCol](ts-container-gridcol.md)

    A container that must be used as a child component of the **\<GridRow>** container.
- [RelativeContainer](ts-container-relativecontainer.md)

    A container that is used for element alignment in complex scenarios.


## List and Grid

- [List](ts-container-list.md)

    A container that presents a series of list items arranged in a column with the same width. It supports presentations of the same type of data in a multiple and coherent row style, for example, images or text.
- [ListItem](ts-container-listitem.md)

    A component that displays a specific item in the list and that must be used together with **\<List>**.
- [ListItemGroup](ts-container-listitemgroup.md)

    A component that displays list item groups and that must be used together with **\<List>**.
- [Grid](ts-container-grid.md)

    A container that consists of cells formed by rows and columns. You can specify the cells where items are located to form various layouts.
- [GridItem](ts-container-griditem.md)

    A container that provides a single item in a grid.


## Scroll and Swipe

E
ester.zhou 已提交
66
- [Scroll](ts-container-scroll.md)
E
ester.zhou 已提交
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81

    A container that scrolls the content when the layout size of a component exceeds the size of its parent component.
- [Swiper](ts-container-swiper.md)

    A container that is able to display child components in looping mode.
- [WaterFlow](ts-container-waterflow.md)

    A container that consists of cells formed by rows and columns and arranges items of different sizes from top to bottom according to the preset rules.
- [FlowItem](ts-container-flowitem.md)

    A child component of the **\<WaterFlow>** container that is used to display specific items in the container layout.


## Navigation

E
ester.zhou 已提交
82
- [Navigator](ts-container-navigator.md)
E
ester.zhou 已提交
83

E
ester.zhou 已提交
84
    A container that provides redirection.
E
ester.zhou 已提交
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
- [Navigation](ts-basic-components-navigation.md)

    A container that typically functions as the root container of a page and displays the title bar, toolbar, and navigation bar based on the attribute settings.
- [NavRouter](ts-basic-components-navrouter.md)

    A container that provides default logic for click response processing, eliminating the need for manual logic definition.
- [NavDestination](ts-basic-components-navdestination.md)

    A child component of the **\<NavRouter>** component that represents a destination in the navigation area.
- [Stepper](ts-basic-components-stepper.md)

    A component that provides a step navigator.
- [StepperItem](ts-basic-components-stepperitem.md)

    A child component of the **\<Stepper>** component.
- [Tabs](ts-container-tabs.md)

    A container that allows users to switch between content views through tabs.
- [TabContent](ts-container-tabcontent.md)

    A component that corresponds to the content view on a tab page and is used only in the **\<Tabs>** component.


## Button and Selection

- [Button](ts-basic-components-button.md)

E
ester.zhou 已提交
112
    A component that is used to create different types of buttons.
E
ester.zhou 已提交
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233
- [Toggle](ts-basic-components-toggle.md)

    A component that provides a clickable element in the check box, button, or switch type.
- [Checkbox](ts-basic-components-checkbox.md)

    A component that is used to enable or disable an option.
- [CheckboxGroup](ts-basic-components-checkboxgroup.md)

    A component that is used to select or deselect all check boxes in a group.
- [DatePicker](ts-basic-components-datepicker.md)

    A component that allows users to select a date from the given range.
- [TextPicker](ts-basic-components-textpicker.md)

    A component that allows users to scroll to select text.
- [TimePicker](ts-basic-components-timepicker.md)

    A component that allows users to select a time from the given range through scrolling.
- [Radio](ts-basic-components-radio.md)

    A component that allows users to select from a set of mutually exclusive options.
- [Rating](ts-basic-components-rating.md)

    A component that provides a rating bar.
- [Select](ts-basic-components-select.md)

    A component that provides a drop-down list box to allow user to select among multiple options.
- [Slider](ts-basic-components-slider.md)

    A component that is used to quickly adjust settings, such as the volume and brightness.
- [Counter](ts-container-counter.md)

    A component that provides an operation to increase or decrease the number.


## Text and Input

- [Text](ts-basic-components-text.md)

    A component that is used to display a piece of textual information.
- [Span](ts-basic-components-span.md)

    A component that is used to display inline text in the **\<Text>** component.
- [Search](ts-basic-components-search.md)

    A component that provides an area for users to enter search queries.
- [TextArea](ts-basic-components-textarea.md)

    A component that provides multi-line text input and automatically wraps text so that each line does not have more than the width of the component.
- [TextInput](ts-basic-components-textinput.md)

    A component that provides single-line text input.
- [PatternLock](ts-basic-components-patternlock.md)

    A component that allows users to use a pattern password for authentication. It enters the input state once a finger is pressed against it, and exits the input state and completes the input once the finger leaves the screen.
- [RichText](ts-basic-components-richtext.md)

    A component that parses and displays HTML text.


## Image, Video, and Media

- [Image](ts-basic-components-image.md)

    A component that is used to render and display local and online images.
- [ImageAnimator](ts-basic-components-imageanimator.md)

    A component that enables images to be played frame by frame. The list of images to be played as well as the duration of each image can be configured.
- [Video](ts-media-components-video.md)

    A component that is used to play a video and control its playback.
- [PluginComponent](ts-basic-components-plugincomponent.md)

    A component that allows the UI provided by an external application to be displayed in the application.
- [XComponent](ts-basic-components-xcomponent.md)

    A component that can accept and display the EGL/OpenGL ES and media data input.


## Information Display

- [DataPanel](ts-basic-components-datapanel.md)

    A component that displays proportions in a chart.
- [Gauge](ts-basic-components-gauge.md)

    A component that is used to display data in a ring chart.
- [LoadingProgress](ts-basic-components-loadingprogress.md)

    A component that is used to create a loading animation.
- [Marquee](ts-basic-components-marquee.md)

    A component that is used to display a scrolling piece of text. The text is scrolled only when its width exceeds the width of the **\<Marquee>** component.
- [Progress](ts-basic-components-progress.md)

    A component that is used to provide a progress indicator that displays the progress of content loading or an operation.
- [QRCode](ts-basic-components-qrcode.md)

    A component that is used to display a QR code.
- [TextClock](ts-basic-components-textclock.md)

    A component that displays the current system time in text format for different time zones. The time is accurate to seconds.
- [TextTimer](ts-basic-components-texttimer.md)

    A component that displays timing information and is controlled in text format.


## Blank and Divider

- [Blank](ts-basic-components-blank.md)

    A component that is able to automatically fill the empty spaces in the container along the main axis. It is valid only when the parent component is **\<Row>** or **\<Column>**.
- [Divider](ts-basic-components-divider.md)

    A component that is used to separate content blocks and elements.


## Canvas and Graphics Drawing

- [Canvas](ts-components-canvas-canvas.md)

E
ester.zhou 已提交
234
    A component that is used to customize drawings.
E
ester.zhou 已提交
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264
- [Circle](ts-drawing-components-circle.md)

    A component that is used to draw a circle.
- [Ellipse](ts-drawing-components-ellipse.md)

    A component that is used to draw an ellipse.
- [Line](ts-drawing-components-line.md)

    A component that is used to draw a straight line.
- [Polyline](ts-drawing-components-polyline.md)

    A component that is used to draw a polyline.
- [Polygon](ts-drawing-components-polygon.md)

    A component that is used to draw a polygon.
- [Path](ts-drawing-components-path.md)

    A component that is used to define a closed shape.
- [Rect](ts-drawing-components-rect.md)

    A component that is used to draw a rectangle.
- [Shape](ts-drawing-components-shape.md)

    A parent component of the drawing components. The attributes provided by this component are universal attributes supported by all the drawing components.


## Web

- [Web](ts-basic-components-web.md)

E
ester.zhou 已提交
265
    A component that is used to display web pages.
E
ester.zhou 已提交
266 267


E
ester.zhou 已提交
268
## Miscellaneous
E
ester.zhou 已提交
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290

- [ScrollBar](ts-basic-components-scrollbar.md)

    A component that is used together with scrollable components, such as **\<List>**, **\<Grid>**, and **\<Scroll>**.
- [Badge](ts-container-badge.md)

    A container that can be attached to another component for tagging.
- [AlphabetIndexer](ts-container-alphabet-indexer.md)

    A component that can create a logically indexed array of items in a container for instant location.
- [Panel](ts-container-panel.md)

    A container that presents lightweight content with flexible sizes.
- [Refresh](ts-container-refresh.md)

    A container that provides the pull-to-refresh feature.
- [AbilityComponent](ts-container-ability-component.md)

    A container that is used for independently displaying an ability.
- [RemoteWindow](ts-basic-components-remotewindow.md)

    A component that is used to control the application window, providing the component animator and application window linkage animator during application startup and exit.
E
ester.zhou 已提交
291 292 293 294 295
- [Formcomponent](ts-basic-components-formcomponent.md)

    A component that is used to display widgets.
- [Menu](ts-basic-components-menu.md)

E
ester.zhou 已提交
296
    A component that is used to present a vertical list of items to the user.
E
ester.zhou 已提交
297 298 299 300 301 302
- [MenuItem](ts-basic-components-menuitem.md)

    A component that is used to represent an item in a menu.
- [MenuItemGroup](ts-basic-components-menuitemgroup.md)

    A component that is used to represent a group of menu items.