Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 920) sorted by relevance

12345678910>>...37

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/button/
H A Dbutton_declaration.cpp124 buttonStyle.backgroundColor = button.ParseColor(value); in SetSpecializedStyle()
141 buttonStyle.clickedColor = button.ParseColor(value); in SetSpecializedStyle()
145 buttonStyle.diameter = button.ParseDimension(value); in SetSpecializedStyle()
149 buttonStyle.disabledColor = button.ParseColor(value); in SetSpecializedStyle()
157 buttonStyle.focusColor = button.ParseColor(value); in SetSpecializedStyle()
178 buttonStyle.height = button.ParseDimension(value); in SetSpecializedStyle()
187 buttonStyle.iconWidth = button.ParseDimension(value); in SetSpecializedStyle()
195 buttonStyle.minWidth = button.ParseDimension(value); in SetSpecializedStyle()
199 buttonStyle.progressColor = button.ParseColor(value); in SetSpecializedStyle()
207 buttonStyle.radius = button.ParseDimension(value); in SetSpecializedStyle()
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-basic-button.md1 # button chapter
21button is displayed. Unlike the capsule button, the capsule-like button allows its corners to be c…
24button icon in text. This attribute is valid only when **type** is not set. Available values are a…
46 …<length> | - | No| Radius of a circle button or fillet radius of a capsule button. For a cir…
61 <div class="div-button">
62 <button class="button" type="capsule" value="Capsule button"></button>
63 <button class="button circle" type="circle" icon="common/ic_add_default.png"></button>
64 <button class="button text" type="text">Text button</button>
71 .div-button {
75 .button {
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-button.md1 # button chapter
21button is displayed. Unlike the capsule button, the capsule-like button allows its corners to be c…
81 <div class="div-button">
82 <button class="first" type="capsule" value="Capsule button"></button>
83 <button class="button circle" type="circle" icon="common/ic_add_default.png"></button>
84 <button class="button text" type="text">Text button</button>
85 <button class="button download" type="download" id="download-btn"
87 <button class="last" type="capsule" waiting="true">Loading</button>
93 .div-button {
101 .button {
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-basic-button.md1 # button chapter
22 | value | string | - | 否 | button的文本值,circle类型不生效。 |
23 | icon | string | - | 否 | button的图标路径,图标格式为jpg,png和svg。 |
61 <div class="div-button">
62 <button class="button" type="capsule" value="Capsule button"></button>
63 <button class="button circle" type="circle" icon="common/ic_add_default.png"></button>
64 <button class="button text" type="text">Text button</button>
71 .div-button {
75 .button {
94 ![button](figures/button.jpg)
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dui-js-components-button.md1 # 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>
101 …<button class="button download" type="download" id="download-btn" onclick="setProgress">{{download…
[all …]
H A Dui-js-building-ui-routes.md18 index和detail这两个页面均包含一个text组件和button组件:text组件用来指明当前页面,button组件用来实现两个页面之间的相互跳转。hml文件代码示例如下:
24 <button type="capsule" value="Go to the second page" class="button" onclick="launch"></button>
32 <button type="capsule" value="Go back" class="button" onclick="launch"></button>
39 构建index和detail页面的页面样式,text组件和button组件居中显示,两个组件之间间距为50px。css代码如下(两个页面样式代码一致):
61 为了使button组件的launch方法生效,需要在页面的js文件中实现跳转逻辑。调用router.push()接口将uri指定的页面添加到路由栈中,即跳转到uri指定的页面。在调用router方法…
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/
H A Dui_test_border_margin_padding.cpp434 UIButton* button = new UIButton(); in UIKitUITestBorderMarginPaddingTest005() local
436 group->Add(button); in UIKitUITestBorderMarginPaddingTest005()
503 UIButton* button = new UIButton(); in UIKitUITestBorderMarginPaddingTest008() local
530 group->Add(button); in UIKitUITestBorderMarginPaddingTest008()
587 UILabelButton* button = new UILabelButton(); in UIKitUITestBorderMarginPaddingTest012() local
612 button->SetWidth(200); // 200 : size in UIKitUITestBorderMarginPaddingTest012()
613 button->SetHeight(50); // 50 : size in UIKitUITestBorderMarginPaddingTest012()
614 button->SetText("Test UILabelButton"); in UIKitUITestBorderMarginPaddingTest012()
615 listScroll_->Add(button); in UIKitUITestBorderMarginPaddingTest012()
669 button->SetText("button1"); in UIKitUITestBorderMarginPaddingTest016()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-basic-button.md1 # button chapter
80 <div class="div-button">
81 <button class="first" type="capsule" value="Capsule button"></button>
82 <button class="button circle" type="circle" icon="common/ic_add_default.png"></button>
83 <button class="button text" type="text">Text button</button>
84 <button class="button download" type="download" id="download-btn"
85 onclick="progress">{{downloadText}}</button>
86 <button class="last" type="capsule" waiting="true">Loading</button>
92 .div-button {
100 .button {
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dohos-arkui-advanced-DownloadFileButton.md28 Creates a download file button, which by default displays both an icon and text.
45 Defines the content displayed in the download file button.
58 Defines the style of the icon and text in the download file button.
78 Defines the icon style of the download file button.
93 Defines the text on the download file button.
103 | SAVE | 3 | The text on the download file button is **Save**. |
104 | SAVE_IMAGE | 4 | The text on the download file button is **Save Image**.|
105 | SAVE_FILE | 5 | The text on the download file button is **Save File**.|
107 | RECEIVE | 7 | The text on the download file button is **Receive**. |
108 | CONTINUE_TO_RECEIVE | 8 | The text on the download file button is **Continue**.|
[all …]
H A Dts-security-components-locationbutton.md19 Creates a Location button with an icon, text, and background.
31 Creates a Location button that contains the specified elements.
62 …-basic-components-button.md#buttontype) | No| Background type of the Location button.<br>If this p…
88 | LOCATING | 5 | The text on the Location button is **Locate**.|
89 | LOCATION | 6 | The text on the Location button is **Location**.|
91 | RELOCATION | 8 | The text on the Location button is **Relocate**.|
92 | PUNCH_IN | 9 | The text on the Location button is **Punch in**.|
103 | SUCCESS | 0 | The Location button is touched successfully.|
152 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
156 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
[all …]
H A Dts-security-components-savebutton.md3 …component represents a Paste button that allows you to obtain temporary storage permissions from u…
19 Creates a Save button with an icon, text, and background.
31 Creates a Save button that contains the specified elements.
47 Describes the icon, text, and other specific elements for the Save button.
62button.md#buttontype) | No| Background type of the Save button.<br>If this parameter is not specif…
102 | SUCCESS | 0 | The Save button is touched successfully.|
143 // Create a default Save button with an icon, text, and background.
162 …the button has an icon, text, and background depends on whether the corresponding parameter is pas…
169 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
173 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
[all …]
H A Dts-security-components-pastebutton.md3 …omponent represents a Paste button that allows you to obtain temporary pasteboard permissions from…
19 Creates a Paste button with an icon, text, and background.
31 Creates a Paste button that contains the specified elements.
47 Describes the icon, text, and other specific elements for the Paste button.
62 …ents-button.md#buttontype) | No| Background style of the Paste button.<br>If this parameter is not…
86 | PASTE | 0 | The text on the Paste button is **Paste**.|
96 | SUCCESS | 0 | The Paste button is touched successfully.|
130 // Create a default button with an icon, text, and background.
141 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
145 …// Create a button with an icon, text, and background. If the set width is less than the minimum a…
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/button/
H A Drender_button.cpp63 if (button) { in Initialize()
69 if (button) { in Initialize()
75 if (button) { in Initialize()
81 if (button) { in Initialize()
89 if (button) { in Initialize()
100 if (button) { in Initialize()
122 if (button) { in InitAccessibilityEventListener()
417 if (button) { in CreateFloatAnimation()
438 if (!button) { in Update()
766 if (button) { in PlayAnimation()
[all …]
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dinput_tdd_test.cpp115 EXPECT_TRUE((button != nullptr) && (button->GetText(), "aaa"));
130 EXPECT_TRUE((button != nullptr) && (button->GetText() == nullptr));
164 if (button == nullptr) {
325 EXPECT_TRUE((button != nullptr) && (button->GetWidth() == widthNumber));
333 EXPECT_TRUE((button != nullptr) && (button->GetHeight() == heightValue));
340 EXPECT_TRUE((button != nullptr) && (!strcmp(button->GetViewId(), "button1")));
373 if (button != nullptr) { in ComponentInputStyleTest07()
427 EXPECT_TRUE((button != nullptr) && (button->GetStyle(STYLE_MARGIN_TOP) == marginValue)); in ComponentInputStyleTest07Extra()
467 if (button != nullptr) {
479 EXPECT_TRUE((button != nullptr) && (button->GetStyle(STYLE_BORDER_RADIUS) == 1));
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_button/
H A Dui_test_button.cpp663 InitButtonListeners002(button); in UIKitButtonTest002()
706 EnableAnimator(container, button); in UIKitButtonTest002()
785 UIButton* button = new UIButton(); in UIKitButtonTest001() local
790 button->SetViewId(UI_TEST_BUTTON_17); in UIKitButtonTest001()
792 InitButtonListeners001(button); in UIKitButtonTest001()
819 container_->Add(button); in UIKitButtonTest001()
827 UIKitButtonTest002(container_, button); in UIKitButtonTest001()
843 reinterpret_cast<UIView*>(button), in InitButtonListeners001()
848 reinterpret_cast<UIView*>(button), in InitButtonListeners001()
853 reinterpret_cast<UIView*>(button), in InitButtonListeners001()
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_button_option.cpp60 NotificationButtonOption *button = new (std::nothrow) NotificationButtonOption(); in FromJson() local
61 if (button == nullptr) { in FromJson()
68 button->buttonName_ = jsonObject.at("buttonName").get<std::string>(); in FromJson()
71 return button; in FromJson()
93 NotificationButtonOption *button = new (std::nothrow) NotificationButtonOption(); in Unmarshalling() local
95 if (button && !button->ReadFromParcel(parcel)) { in Unmarshalling()
96 delete button; in Unmarshalling()
97 button = nullptr; in Unmarshalling()
100 return button; in Unmarshalling()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-system-prompt.md76 text: 'button',
81 console.log('dialog success callback,click button : ' + data.index);
126 console.log('dialog success callback,click button : ' + tapIndex);
179 | buttons | [[Button](#button), [Button](#button)?, [Button](#button)?] | 否 | 对话框中按钮的数组,结构为:{te…
193 …n](#button), [Button](#button)?, [Button](#button)?, [Button](#button)?, [Button](#button)?, [Butt…
H A Djs-apis-prompt.md93 console.info('showDialog success, click button: ' + data.index);
139 console.info('showDialog success callback, click button: ' + data.index);
155 | buttons | [[Button](#button),[Button](#button)?,[Button](#button)?] | 否 | 对话框中按钮的数组,结构为:{text:'
204 console.info('showActionMenu success callback, click button: ' + data.index);
248 console.info('showActionMenu success, click button: ' + data.index);
265 …ton](#button),[Button](#button)?,[Button](#button)?,[Button](#button)?,[Button](#button)?,[Button]…
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkButton.ts187 getUINativeModule().button.resetStateEffect(node);
200 getUINativeModule().button.resetFontStyle(node);
210 getUINativeModule().button.resetFontFamily(node);
223 getUINativeModule().button.resetLabelStyle(node);
276 getUINativeModule().button.resetType(node);
286 getUINativeModule().button.resetFontColor(node);
300 getUINativeModule().button.resetFontSize(node);
317 getUINativeModule().button.resetFontWeight(node);
436 getUINativeModule().button.setButtonBorder(
554 getUINativeModule().button.resetLabel(node);
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_local_live_view_button_test.cpp127 button->addSingleButtonIcon(pixelMap);
129 EXPECT_EQ(button->ToJson(jsonObject), true);
184 button->addSingleButtonName("test");
186 button->addSingleButtonIcon(pixelMap);
188 EXPECT_EQ(button->Marshalling(parcel), false);
235 button->addSingleButtonName("test");
236 button->Marshalling(parcel);
238 auto newButton = button->Unmarshalling(parcel);
253 button->addSingleButtonName("test");
254 button->addSingleButtonIcon(icon);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_component_base.cpp28 auto button = AceType::MakeRefPtr<ButtonComponent>(buttonChildren); in BuildIconButton() local
29 button->SetType(ButtonType::NORMAL); in BuildIconButton()
30 button->SetWidth(width); in BuildIconButton()
31 button->SetHeight(height); in BuildIconButton()
32 button->SetBackgroundColor(theme->GetButtonNormalColor()); in BuildIconButton()
33 button->SetClickedColor(theme->GetButtonPressedColor()); in BuildIconButton()
34 button->SetFocusColor(theme->GetButtonFocusColor()); in BuildIconButton()
35 button->SetHoverColor(theme->GetButtonHoverColor()); in BuildIconButton()
36 button->SetClickedEventId(clickMarker); in BuildIconButton()
37 button->SetRectRadius(theme->GetButtonCornerRadius()); in BuildIconButton()
[all …]
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dsec_comp_manager_test.cpp42 LocationButton button; in BuildInvalidLocationComponent() local
54 button.type_ = LOCATION_COMPONENT; in BuildInvalidLocationComponent()
63 button.text_ = UNKNOWN_TEXT; in BuildInvalidLocationComponent()
64 button.icon_ = UNKNOWN_ICON; in BuildInvalidLocationComponent()
65 button.bg_ = SecCompBackground::UNKNOWN_BG; in BuildInvalidLocationComponent()
66 return button; in BuildInvalidLocationComponent()
71 LocationButton button; in BuildValidLocationComponent() local
72 button.fontSize_ = ServiceTestCommon::TEST_SIZE; in BuildValidLocationComponent()
83 button.type_ = LOCATION_COMPONENT; in BuildValidLocationComponent()
94 button.bg_ = SecCompBackground::CIRCLE; in BuildValidLocationComponent()
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/uitest/test_arc_label/
H A Dui_test_arc_label.cpp169 UILabelButton* button = static_cast<UILabelButton*>(view_); in Finish() local
170 if (button == nullptr) { in Finish()
174 button->SetText("旋转动画结束!!!"); in Finish()
210 if (button == nullptr) { in UIKitUIArcLabelTestIncompatible001()
227 container_->Add(button); in UIKitUIArcLabelTestIncompatible001()
240 if (button == nullptr) { in UIKitUIArcLabelTestIncompatible002()
257 container_->Add(button); in UIKitUIArcLabelTestIncompatible002()
270 if (button == nullptr) { in UIKitUIArcLabelTestIncompatible003()
287 container_->Add(button); in UIKitUIArcLabelTestIncompatible003()
300 if (button == nullptr) { in UIKitUIArcLabelTestIncompatible004()
[all …]
/ohos5.0/docs/en/application-dev/ui/
H A Dui-js-components-button.md3 …ircle, text, arc, or download button. For details, see [button](../reference/apis-arkui/arkui-js/j…
13 <button type="capsule" value="Capsule button"></button>
40 <button class="circle" type="circle" >+</button>
41 <button class="text" type="text"> button</button>
101 …<button class="button download" type="download" id="download-btn" onclick="setProgress">{{download…
179 Switch between the button types for different types of text.
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 {
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_5.0.0.25/
H A Dchangelogs-window.md11 …, developers are used to choosing **LANDSCAPE**. In this case, the power button rotates to the bot…
39 |LANDSCAPE| Power button facing downwards | Power button facing upwards |
40 |LANDSCAPE_INVERTED| Power button facing upwards | Power button facing downwards |
41 |AUTO_ROTATION_LANDSCAPE| Power button facing downwards | Power button facing upwards |
42 |AUTO_ROTATION_LANDSCAPE_RESTRICTED| Power button facing downwards | Power button facing upward…
43 |USER_ROTATION_LANDSCAPE | Power button facing downwards | Power button facing upwards |
44 |USER_ROTATION_LANDSCAPE_INVERTED| Power button facing upwards | Power button facing downwards |
62 …(1) When the power button is on the right side of the device, the values of **displayOrientation**…
72 (2) When the power button is on the left side of the device, the values of **displayOrientation** r…

12345678910>>...37