dialog Development The <dialog> component is custom pop-up container for showing critical information or calling for an action. For details, see dialog. Creating a <dialog> Component Creat
阅读全文
openharmony 鸿蒙 ui-js-components-chart
chart Development The <chart> component displays line charts, bar charts, and gauge charts. For details, see chart. Creating a <chart> Component Create a <chart> component in the .hm
阅读全文
openharmony 鸿蒙 ui-js-components-canvasrenderingcontext2d
CanvasRenderingContext2D Use CanvasRenderingContext2D to draw objects such as graphics, texts, line segments, and images on the <canvas> component. For details, see CanvasRenderingContext2D. Dra
阅读全文
openharmony 鸿蒙 ui-js-components-canvas
Canvas The <canvas> component provides a canvas for drawing customized graphics. For details, see CanvasRenderingContext2D. Creating a <canvas> Component Create a <canvas> component
阅读全文
openharmony 鸿蒙 ui-js-components-button
button Development The <button> component can be used to set a capsule, circle, text, arc, or download button. For details, see button. Creating a <button> Component Create a <button>
阅读全文
openharmony 鸿蒙 ui-js-component-tabs
tabs Development The <tabs> component is a common UI component for navigation. It allows quick access to different functions of an app. For details, see tabs. Creating Tabs Create a <tabs>
阅读全文
openharmony 鸿蒙 ui-js-building-ui-routes
Defining Page Routes An application generally consists of more than one page. For example, a music application may come with a music list page and a playback page. You need to link these pages through
阅读全文
openharmony 鸿蒙 ui-js-building-ui-layout-text
Adding Title and Paragraph Text The <text> component is most commonly used to display text in title and paragraph areas. You can set attributes and styles for a <text> component and add th
阅读全文
openharmony 鸿蒙 ui-js-building-ui-layout-intro
Layout Description The baseline width for page design is 720 logical pixels. The display width of a page element depends on the ratio of the screen width to the baseline width. For example, when the w
阅读全文
openharmony 鸿蒙 ui-js-building-ui-layout-image
Adding an Image Images are commonly implemented using the <image>component, whose usage is similar to that of the <text> component. It is recommended that you place image resources in the
阅读全文