/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/indexer/ |
H A D | indexer_select_test_ng.cpp | 105 int32_t selected = -1; variable 108 OnSelectedEvent onSelected = [&selected](int32_t selectedIndex) { selected = selectedIndex; }; in __anon052221120102() 126 EXPECT_EQ(selected, -1); 136 EXPECT_EQ(selected, 1); 253 int32_t selected = -1; variable 274 EXPECT_EQ(selected, -1); 284 EXPECT_EQ(selected, 3); 292 selected = -1; 297 EXPECT_EQ(selected, -1); 602 int32_t selected = -1; variable [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-basic-components-datepicker.md | 47 … date is later than the end date, and the selected date is not set. | The start date, end date, … 51 | The selected date is earlier than the start date. | The start date is set to the selected date.… 52 | The selected date is later than the end date. | The selected date is set to the end date. | 53 …ater than the current system date, and the selected date is not set. | The start date is set to … 54 …rlier than the current system date, and the selected date is not set. | The end date is set to t… 105 Sets the text style for all items except the top, bottom, and selected items. 121 Sets the text style for the selected item. 150 Triggered when a date is selected. 166 Triggered when a date is selected. 188 | day | number | No | No | Day of the selected date. | [all …]
|
H A D | ts-universal-attributes-polymorphic-style.md | 38 | selected<sup>10+</sup> | ()=>void | No| Style of the component in the selected state.| 40 **Notes about the selected state:** 42 - The selected state style depends on the value of the component's selected attribute. You can chan… 44 - The table below lists the components that support the selected state style and their selected att… 52 | [ListItem](ts-container-listitem.md) | selected | 10 | 53 | [GridItem](ts-container-griditem.md) | selected | 10 | 54 | [MenuItem](ts-basic-components-menuitem.md) | selected | 10 | 193 selected: this.selectStyles, 209 selected: this.selectStyles, 218 
|
H A D | ts-basic-components-menuitem.md | 48 ### selected subsection 50 selected(value: boolean) 52 Sets whether the menu item is selected. 64 | value | boolean | Yes | Whether the menu item is selected.<br>Default value: **false**| 70 Sets whether to display the selected icon when the menu item is selected. 80 …selected icon when the menu item is selected.<br>Default value: **false**<br>**true**: When the me… 149 onChange(callback: (selected: boolean) => void) 161 …selected | boolean | Yes | Invoked when the selected status changes.<br>If the return value is **…
|
H A D | ohos-arkui-advanced-SelectTitleBar.md | 28 SelectTitleBar({selected: number, options: Array<SelectOption>, menuItems?: Array<SelectTi… 40 | selected | number | Yes| \@Prop | Index of the currently selected option.<br>The index of the fir… 46 …| Callback invoked when an option in the drop-down menu is selected. The index of the selected opt… 110 selected: 0, 121 selected: 0, 132 selected: 1, 143 selected: 1, 157 selected: 0,
|
H A D | ts-basic-components-checkbox.md | 51 Sets whether the check box is selected. 65 | value | boolean | Yes | Whether the check box is selected.<br>Default value: **false**| 71 Sets the color of the check box when it is selected. 89 Sets the border color of the check box when it is not selected. 159 Invoked when the selected state of the check box changes. 177 Represents the callback invoked when the selected state of the check box changes. 189 …| boolean | Yes | Whether the check box is selected. The value **true** means that the check box … 214 | triggerChange |Callback\<boolean>| No| No|Changes the selected state of the check box.| 321 if (config.selected) { 328 .visibility(config.selected ? Visibility.Visible : Visibility.Hidden) [all …]
|
H A D | ohos-arkui-advanced-GridObjectSortComponent.md | 80 | selected | boolean | Yes | Whether the grid object has been added… 103 selected: true, 110 selected: true, 117 selected: false, 124 selected: true, 131 selected: false, 138 selected: true, 145 selected: true, 152 selected: true, 159 selected: false,
|
H A D | ts-basic-components-radio.md | 68 Sets whether the radio button is selected. 82 | value | boolean | Yes | Whether the radio button is selected.<br>Default value: **false**| 88 Sets the style of the radio button in selected or deselected state. 100 | value | [RadioStyle](#radiostyle10) | No | Style of the radio button in selected or deselected … 126 Triggered when the selected state of the radio button changes. 138 …radio button changes from unselected to selected, and **false** means that the radio button change… 148 …resourcecolor) | No | Color of the background when the radio button is selected.<br>Default value… 163 | checked | boolean| No| No| Whether the radio button is selected.<br>Default value: **false**| 164 | triggerChange |Callback\<boolean>|No|No|Changes the selected state of the radio button.| 169 This example shows how to set the color of the background when the radio button is selected. [all …]
|
H A D | ts-container-alphabet-indexer.md | 68 Sets the font color of the selected item. 100 Sets the background color of the selected item. 148 Sets the font style of the selected item. 225 ### selected<sup>8+</sup> 227 selected(index: number) 229 Sets the index of the selected item. 438 …ed when an item in the alphabetic indexer bar is selected. The return value is the index of the se… 448 | index | number | Yes | Index of the selected item.| 454 …ed when an item in the alphabetic indexer bar is selected. The return value is the index of the se… 524 | index | number | Yes | Index of the selected item.| [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-GridObjectSortComponent.md | 80 | selected | boolean | 是 | 是否已经被添加,添加:true,未添加:false。 … 103 selected: true, 110 selected: true, 117 selected: false, 124 selected: true, 131 selected: false, 138 selected: true, 145 selected: true, 152 selected: true, 159 selected: false,
|
H A D | ts-universal-attributes-polymorphic-style.md | 42 | selected<sup>10+</sup> | ()=>void | 否 | 组件选中状态的样式。<br/> | 44 **selected选中状态说明** 48 - 当前支持selected的组件及其参数/属性值: 56 | [ListItem](ts-container-listitem.md) | selected | 10 | 57 | [GridItem](ts-container-griditem.md) | selected | 10 | 58 | [MenuItem](ts-basic-components-menuitem.md) | selected | 10 | 164 该示例展示了状态为selected时Radio组件的样式变化。 201 selected: this.selectStyles, 217 selected: this.selectStyles, 226 
|
H A D | ohos-arkui-advanced-SelectTitleBar.md | 28 SelectTitleBar({selected: number, options: Array<SelectOption>, menuItems?: Array<SelectTi… 38 | selected | number | 是 | \@Prop | 当前选中项目的索引。<br>第一项的索引为0。如果不设置该属性,则默认值为0。 | 115 selected: 0, 128 selected: 0, 139 selected: 1, 150 selected: 1, 164 selected: 0,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/ |
H A D | indexer_model_ng.h | 41 void SetSelected(int32_t selected) override; 49 void SetOnSelected(std::function<void(const int32_t selected)>&& onSelect) override; 51 … std::function<std::vector<std::string>(const int32_t selected)>&& RequestPopupData) override; 52 void SetOnPopupSelected(std::function<void(const int32_t selected)>&& onPopupSelected) override; 53 void SetChangeEvent(std::function<void(const int32_t selected)>&& changeEvent) override; 54 void SetCreatChangeEvent(std::function<void(const int32_t selected)>&& changeEvent) override; 89 static void SetSelected(FrameNode* frameNode, int32_t selected); 102 std::function<void(const int32_t selected)>&& onSelect); 104 std::function<std::vector<std::string>(const int32_t selected)>&& RequestPopupData); 106 std::function<void(const int32_t selected)>&& onPopupSelected); [all …]
|
H A D | indexer_model_ng.cpp | 29 void IndexerModelNG::Create(std::vector<std::string>& arrayValue, int32_t selected) in Create() argument 37 if (selected < 0 || selected >= static_cast<int32_t>(arrayValue.size())) { in Create() 38 selected = 0; in Create() 41 ACE_UPDATE_LAYOUT_PROPERTY(IndexerLayoutProperty, Selected, selected); in Create() 167 void IndexerModelNG::SetSelected(int32_t selected) in SetSelected() argument 169 if (selected >= 0) { in SetSelected() 170 ACE_UPDATE_LAYOUT_PROPERTY(IndexerLayoutProperty, Selected, selected); in SetSelected() 540 void IndexerModelNG::SetSelected(FrameNode* frameNode, int32_t selected) in SetSelected() argument 542 if (selected >= 0) { in SetSelected() 618 std::function<void(const int32_t selected)>&& onPopupSelected) in SetOnPopupSelected() [all …]
|
H A D | indexer_model.h | 53 virtual void SetSelected(int32_t selected) {}; in SetSelected() argument 61 virtual void SetOnSelected(std::function<void(const int32_t selected)>&& onSelect) = 0; 63 std::function<std::vector<std::string>(const int32_t selected)>&& RequestPopupData) = 0; 64 …virtual void SetOnPopupSelected(std::function<void(const int32_t selected)>&& onPopupSelected) = 0; 65 virtual void SetChangeEvent(std::function<void(const int32_t selected)>&& changeEvent) {}; in SetChangeEvent() 66 virtual void SetCreatChangeEvent(std::function<void(const int32_t selected)>&& changeEvent) {}; in SetCreatChangeEvent()
|
/ohos5.0/docs/zh-cn/application-dev/quick-start/ |
H A D | arkts-two-way-sync.md | 25 …| [DatePicker](../reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md) | selected … 26 …| [TimePicker](../reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md) | selected … 27 …| [MenuItem](../reference/apis-arkui/arkui-ts/ts-basic-components-menuitem.md) | selected |… 39 …| [TextPicker](../reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md) | selected、valu… 41 …| [AlphabetIndexer](../reference/apis-arkui/arkui-ts/ts-container-alphabet-indexer.md) | selected … 42 …| [Select](../reference/apis-arkui/arkui-ts/ts-basic-components-select.md) | selected、value | 10 … 46 | [GridItem](../reference/apis-arkui/arkui-ts/ts-container-griditem.md) | selected | 10 | 47 | [ListItem](../reference/apis-arkui/arkui-ts/ts-container-listitem.md) | selected | 10 |
|
/ohos5.0/docs/en/application-dev/reference/apis-media-library-kit/ |
H A D | ohos-file-PhotoPickerComponent.md | 68 …selected media assets exceeds the limit (maximum number of selected images, selected videos, or se… 104 Called when the selected items are deleted. 120 Called when items are selected after the maximum count has been reached. 130 …ched. It can be the maximum count of selected images, maximum count of selected videos, or maximum… 209 | uri | string | Yes| URI of the image to view. Only the images selected by the user are supported.| 297 Represents the maximum number of media assets that can be selected at a time. 388 Enumerates the types of the reminder when the number of selected items reaches the maximum. 425 | SELECTED_ONLY | 1 | View selected images and videos only.| 542 …urn true; // If true is returned, the check box is selected. Otherwise, the check box is not selec… 580 // Callback to be invoked when the selected image is deleted. [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-picker.md | 36 | selected | string | 0 | No | Default value of the common selector. The value should be the i… 48 | selected | string | Current date | No | Default value of the date selector… 72 …selected | string | Current date and time | No | Default … 87 … selected | Array | [0,0,0, ...]| No | Default value of the multi-column text selector, which … 150 …selected and the OK button is clicked in the displayed pop-up window.<br>- **newValue** is an arra… 151 …mn whose value has changed.<br>- **newValue**: selected value.<br>- **newSelected**: index of the … 174 …<picker id="picker0" type="text" value="{{ textvalue }}" selected="{{ textselect }}" range="{{ ran… 178 …r1" type="date" value="{{ datevalue }}" start="2002-2-5" end="2030-6-5" selected="{{ dateselect }}" 183 selected="{{ timeselect }}" hours="12" 186 …<picker id="picker3" type="datetime" value="{{ datetimevalue }}" selected="{{ datetimeselect }}" h… [all …]
|
/ohos5.0/foundation/arkui/advanced_ui_component/doc/ |
H A D | ts-composite-components-selecttitlebar.md | 25 SelectTitleBar({selected: number, options: Array<SelectOption>, menuItems?: Array<SelectTi… 35 | selected | number | 是 | \@Prop | 当前选中项目的索引 | 71 selected: 0, 103 selected: 0, 114 selected: 1, 125 selected: 1, 173 selected: 0,
|
/ohos5.0/docs/en/design/ux-design/ |
H A D | multimodal-check-box.md | 4 Check boxes allow users to select one or more options from a list. A check box can be selected or d… 14 - Allow one or multiple options to be selected. 16 - Show **None selected** if no option is selected.
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/source/ |
H A D | GridObjectSortComponent.ets | 59 selected: boolean; 104 // add data, selected === false 181 …this.selected = this.dataList && this.deduplicate(this.dataList).filter(val => val.selected).sort(… 183 this.copySelected = this.selected.slice(); 261 this.selected = this.copySelected; 355 const selected = this.getNewData(this.selected, true, 0); 357 this.selected = selected; 397 this.selected.splice(currentIndex, 1); 414 val.selected = state; 1093 this.selected.push(item); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-basic-picker-view.md | 27 | selected | string | 0 | 否 | 设置文本选择器的默认选择值,该值需要为range的索引。 | 36 | selected | string | 当前时间 | 否 | 设置时间选择器的默认取值,格式为 HH:m… 45 | selected | string | 当前日期 | 否 | 设置日期选择器的默认选择值,格式为 YYYY-MM-DD。 | 53 | selected | string | 当前日期时间 | 否 | 设置日期时间选择器的默认取值,格式有两种,… 64 | selected | Array | [0,0,0,…] | 否 | 设置多列文本选择器的默认值,每一列被选中项对应的索引构成的数组,该取值表示选择器弹窗时弹窗界面的默认选择值。 | 75 | selected-color | <color> | #ff0a69f7 | 否 | 选中项字体颜色。 … 76 | selected-font-size | <length> | 20px | 否 | 选中项字体尺寸,类型length,单位px。 … 131 …<picker-view class="text-picker" type="text" range="{{options}}" selected="0" indicatorprefix="pre… 175 …<picker-view class="time-picker" type="time" selected="{{defaultTime}}" @change="handleChange"></p… 233 …<picker-view class="time-picker" type="date" selected="{{defaultTime}}" @change="handleChange" lun…
|
/ohos5.0/docs/en/application-dev/quick-start/ |
H A D | arkts-two-way-sync.md | 25 …| [DatePicker](../reference/apis-arkui/arkui-ts/ts-basic-components-datepicker.md) | selected … 26 …| [TimePicker](../reference/apis-arkui/arkui-ts/ts-basic-components-timepicker.md) | selected … 27 …| [MenuItem](../reference/apis-arkui/arkui-ts/ts-basic-components-menuitem.md) | selected |… 39 …| [TextPicker](../reference/apis-arkui/arkui-ts/ts-basic-components-textpicker.md) | selected, val… 41 …| [AlphabetIndexer](../reference/apis-arkui/arkui-ts/ts-container-alphabet-indexer.md) | selected … 42 …| [Select](../reference/apis-arkui/arkui-ts/ts-basic-components-select.md) | selected, value| 10 … 46 | [GridItem](../reference/apis-arkui/arkui-ts/ts-container-griditem.md) | selected | 10 | 47 | [ListItem](../reference/apis-arkui/arkui-ts/ts-container-listitem.md) | selected | 10 |
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | how-to-group-contacts-with-alphabet.md | 20 - 滑动联系人列表,右侧字母导航随之变动:通过List组件的onScrollIndex事件获取到联系人列表的滑动位置,并将该位置索引传递给字母导航的selected属性,作为字母导航的被选中项。 106 AlphabetIndexer({arrayValue:this.alphabets,selected:0}) 116 2、接下来为UI框架添加逻辑控制。首先,通过List的onScrollIndex事件获取到列表滑动位置的索引,并将索引同步给右侧字母表的selected属性,从而在滑动联系人时,使右侧字母导航随之变… 140 AlphabetIndexer({arrayValue:this.alphabets,selected:0}) 143 .selected(this.selectedIndex) 174 AlphabetIndexer({arrayValue:this.alphabets,selected:0}) 324 AlphabetIndexer({arrayValue:this.alphabets,selected:0}) 329 .selected(this.selectedIndex)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_item_model_ng.cpp | 105 void GridItemModelNG::SetSelected(bool selected) in SetSelected() argument 111 pattern->SetSelected(selected); in SetSelected() 114 eventHub->SetCurrentUIState(UI_STATE_SELECTED, selected); in SetSelected() 143 void GridItemModelNG::SetSelected(FrameNode* frameNode, bool selected) in SetSelected() argument 148 pattern->SetSelected(selected); in SetSelected() 151 eventHub->SetCurrentUIState(UI_STATE_SELECTED, selected); in SetSelected()
|