文件最后提交记录最后更新时间
!841 901适配 * 901适配 http/tabs/toolbar] * 修改格式 * pack.json文件格式化 * 901工程适配 3 年前
!887 README整改 * readme update 3 年前
!653 修改readme名称不一致 * 误删,修改 * 修改名称不一致问题 4 年前
!966 README整改 * update README_zh.md 3 年前
!624 AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc ess、DefiningPageLayoutAndConnection工程API7至API8适配调试 * AtomicLayout、International、JSMenu、JsBrightness、JsList、BuildCommonView、Proc 4 年前
!658 AtomicLayout、chart、JSAnimation、JSAnimationStyle、JSCompomments、JSDevice、JSGallery、JSMenu、JSRouter、JsSvg、JsUICustomCompontent、JsUserRegistration、StepNavigator、Toolbar工程接口调试 * 格式修改 * package.json格式修改 * package.json格式修改 * JsShopping接口修改调试 * AtomicLayout、chart、JSAnimation、JSAnimationStyle、JSCompomments、JSDevice… 4 年前
!841 901适配 * 901适配 http/tabs/toolbar] * 修改格式 * pack.json文件格式化 * 901工程适配 3 年前
README.md

Menu

Introduction

This sample exemplifies how to use the <menu> and <option> components in JavaScript. The <option> component can serve as a subcomponent of the <menu> and <select> components. You can define component attributes such as its position, style, and events to respond.

You can also define the menu options that display when a component is clicked so that users can select them to perform respective operations.

Usage

  1. Click Menu option to display the Menu option screen. On this screen, the <option> sub-components of <menu> show the Dishes, Snack, and Drink options. Click an option text box to bring up the respective menu and select an option. The selected options are displayed in menu details at the bottom. Click Submit Order to submit the order. A success message will be displayed, and the order details will be cleared. To clear the order details, click Clear Order.

  2. Click Select option to display the Select option screen. On this screen, the <option> sub-components of <select> show the Dishes, Snack, and Drink options. Click an option text box to bring up the respective menu and select an option. The selected options are displayed in menu details at the bottom. Click Submit Order to submit the order. A success message will be displayed, and the order details will be cleared. To clear the order details, click Clear Order.

Constraints

This sample can only be run on standard-system devices.