Lines Matching refs:button
1 # button开发指导
3 button是按钮组件,其类型包括胶囊按钮、圆形按钮、文本按钮、弧形按钮、下载按钮。具体用法请参考[button API](../reference/apis-arkui/arkui-js/js-c…
6 ## 创建button组件
8 在pages/index目录下的hml文件中创建一个button组件。
13 <button type="capsule" value="Capsule button"></button>
32 ## 设置button类型
34 通过设置button的type属性来选择按钮类型,如定义button为圆形按钮、文本按钮等。
40 <button class="circle" type="circle" >+</button>
41 <button class="text" type="text"> button</button>
78 >- button组件使用的icon图标如果来自云端路径,需要添加网络访问权限 ohos.permission.INTERNET。
96 为button组件添加setProgress方法,来实时显示下载进度条的进度。
101 …<button class="button download" type="download" id="download-btn" onclick="setProgress">{{download…
174 > setProgress方法只支持button的类型为download。
179 在本场景中,开发者可根据输入的文本内容进行button类型切换。
192 <input type="button" class="select-button color-3" value="text" onclick="changetype3"></input>
193 <input type="button" class="select-button color-3" value="data" onclick="changetype4"></input>
231 .select-button {