harmony 鸿蒙Component Overview

  • 2022-12-13
  • 浏览 (670)

Component Overview

Rows and Columns

  • Column

    A container that lays out child components vertically.

  • ColumnSplit

    A container that lays out child components vertically and inserts a horizontal divider between every two child components.

  • Row

    A container that lays out child components horizontally.

  • RowSplit

    A container that lays out child components horizontally and inserts a vertical divider between every two child components.

  • SideBarContainer

    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

  • Stack

    A container where child components are successively stacked and the latter one overwrites the previous one.

  • Flex

    A container that allows for flexible layout of child components.

  • GridContainer

    A container that lays out components vertically and is used only in the grid layout.

  • GridRow

    A container that is used in a grid layout, together with its child component <GridCol>.

  • GridCol

    A container that must be used as a child component of the <GridRow> container.

  • RelativeContainer

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

List and Grid

  • List

    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

    A component that displays a specific item in the list and that must be used together with <List>.

  • ListItemGroup

    A component that displays list item groups and that must be used together with <List>.

  • Grid

    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

    A container that provides a single item in a grid.

Scroll and Swipe

  • Scroll

    A container that scrolls the content when the layout size of a component exceeds the size of its parent component.

  • Swiper

    A container that is able to display child components in looping mode.

  • WaterFlow

    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

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

Navigation

  • Navigator

    A container that provides redirection.

  • Navigation

    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

    A container that provides default logic for click response processing, eliminating the need for manual logic definition.

  • NavDestination

    A child component of the <NavRouter> component that represents a destination in the navigation area.

  • Stepper

    A component that provides a step navigator.

  • StepperItem

    A child component of the <Stepper> component.

  • Tabs

    A container that allows users to switch between content views through tabs.

  • TabContent

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

Button and Selection

  • Button

    A component that is used to create different types of buttons.

  • Toggle

    A component that provides a clickable element in the check box, button, or switch type.

  • Checkbox

    A component that is used to enable or disable an option.

  • CheckboxGroup

    A component that is used to select or deselect all check boxes in a group.

  • CalendarPicker

    A component that provides a drop-down calendar for users to select a date.

  • DatePicker

    A component that allows users to select a date from the given range.

  • TextPicker

    A component that allows users to scroll to select text.

  • TimePicker

    A component that allows users to select a time from the given range through scrolling.

  • Radio

    A component that allows users to select from a set of mutually exclusive options.

  • Rating

    A component that provides a rating bar.

  • Select

    A component that provides a drop-down list box to allow user to select among multiple options.

  • Slider

    A component that is used to quickly adjust settings, such as the volume and brightness.

  • Counter

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

Text and Input

  • Text

    A component that is used to display a piece of textual information.

  • Span

    A component that is used to display inline text in the <Text> component.

  • Search

    A component that provides an area for users to enter search queries.

  • TextArea

    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

    A component that provides single-line text input.

  • PatternLock

    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

    A component that parses and displays HTML text.

  • RichEditor

    A component that supports interactive text editing and mixture of text and imagery.

Image, Video, and Media

  • Image

    A component that is used to render and display local and online images.

  • ImageAnimator

    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

    A component that is used to play a video and control its playback.

  • PluginComponent

    A component that allows the UI provided by an external application to be displayed in the application.

  • XComponent

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

Information Display

  • DataPanel

    A component that displays proportions in a chart.

  • Gauge

    A component that is used to display data in a ring chart.

  • LoadingProgress

    A component that is used to create a loading animation.

  • Marquee

    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

    A component that is used to provide a progress indicator that displays the progress of content loading or an operation.

  • QRCode

    A component that is used to display a QR code.

  • TextClock

    A component that displays the current system time in text format for different time zones. The time is accurate to seconds.

  • TextTimer

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

Blank and Divider

  • Blank

    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

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

Canvas and Graphics Drawing

  • Canvas

    A component that is used to customize drawings.

  • Circle

    A component that is used to draw a circle.

  • Ellipse

    A component that is used to draw an ellipse.

  • Line

    A component that is used to draw a straight line.

  • Polyline

    A component that is used to draw a polyline.

  • Polygon

    A component that is used to draw a polygon.

  • Path

    A component that is used to define a closed shape.

  • Rect

    A component that is used to draw a rectangle.

  • Shape

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

Web

  • Web

    A component that is used to display web pages.

Miscellaneous

  • ScrollBar

    A component that is used together with scrollable components, such as <List>, <Grid>, and <Scroll>.

  • Badge

    A container that can be attached to another component for tagging.

  • AlphabetIndexer

    A component that can create a logically indexed array of items in a container for instant location.

  • Panel

    A container that presents lightweight content with flexible sizes.

  • Refresh

    A container that provides the pull-to-refresh feature.

  • AbilityComponent

    A container that is used for independently displaying an ability.

  • RemoteWindow

    A component that is used to control the application window, providing the component animator and application window linkage animator during application startup and exit.

  • FormComponent

    A component that is used to display widgets.

  • FormLink

    A component that provides interactions with static widgets.

  • Hyperlink

    A component that implements a link from a location in the component to another location.

  • Menu

    A component that is used to present a vertical list of items to the user.

  • MenuItem

    A component that is used to represent an item in a menu.

  • MenuItemGroup

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

  • UIExtensionComponent

    A component that is used to embed UIs provided by other applications in the local application UI.

  • LocationButton

    A component that is used to obtain temporary precise location permission from the user by their touching the component, eliminating the need for a permission request dialog box.

  • PasteButton

    A component that is used to obtain temporary pasteboard permission from the user by their touching the component, eliminating the need for a permission request dialog box.

  • SaveButton

    A component that is used to obtain temporary storage permission from the user by their touching the component, eliminating the need for a permission request dialog box.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙ArkTS-based Declarative Development Paradigm

harmony 鸿蒙@ohos.multimedia.avCastPicker (AVCastPicker)

harmony 鸿蒙Property Animation

harmony 鸿蒙Enums

harmony 鸿蒙Blank

harmony 鸿蒙Button

harmony 鸿蒙CalendarPicker

harmony 鸿蒙Checkbox

harmony 鸿蒙CheckboxGroup

harmony 鸿蒙DataPanel

0  赞