161847f8eSopenharmony_ci/* 261847f8eSopenharmony_ci * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 461847f8eSopenharmony_ci * you may not use this file except in compliance with the License. 561847f8eSopenharmony_ci * You may obtain a copy of the License at 661847f8eSopenharmony_ci * 761847f8eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 861847f8eSopenharmony_ci * 961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and 1361847f8eSopenharmony_ci * limitations under the License. 1461847f8eSopenharmony_ci */ 1561847f8eSopenharmony_ci 1661847f8eSopenharmony_ci/** 1761847f8eSopenharmony_ci * @file 1861847f8eSopenharmony_ci * @kit ArkUI 1961847f8eSopenharmony_ci */ 2061847f8eSopenharmony_ci 2161847f8eSopenharmony_ci/** 2261847f8eSopenharmony_ci * The declare of selectOption. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @interface SelectOption 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 8 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * The declare of selectOption. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @interface SelectOption 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @crossplatform 3461847f8eSopenharmony_ci * @since 10 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * The declare of selectOption. 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @interface SelectOption 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @atomicservice 4361847f8eSopenharmony_ci * @since 11 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_cideclare interface SelectOption { 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * Option string. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @type { ResourceStr } 5061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5161847f8eSopenharmony_ci * @since 8 5261847f8eSopenharmony_ci */ 5361847f8eSopenharmony_ci /** 5461847f8eSopenharmony_ci * Option string. 5561847f8eSopenharmony_ci * 5661847f8eSopenharmony_ci * @type { ResourceStr } 5761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5861847f8eSopenharmony_ci * @crossplatform 5961847f8eSopenharmony_ci * @since 10 6061847f8eSopenharmony_ci */ 6161847f8eSopenharmony_ci /** 6261847f8eSopenharmony_ci * Option string. 6361847f8eSopenharmony_ci * 6461847f8eSopenharmony_ci * @type { ResourceStr } 6561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6661847f8eSopenharmony_ci * @crossplatform 6761847f8eSopenharmony_ci * @atomicservice 6861847f8eSopenharmony_ci * @since 11 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci value: ResourceStr; 7161847f8eSopenharmony_ci 7261847f8eSopenharmony_ci /** 7361847f8eSopenharmony_ci * Option icon. 7461847f8eSopenharmony_ci * 7561847f8eSopenharmony_ci * @type { ?ResourceStr } 7661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7761847f8eSopenharmony_ci * @since 8 7861847f8eSopenharmony_ci */ 7961847f8eSopenharmony_ci /** 8061847f8eSopenharmony_ci * Option icon. 8161847f8eSopenharmony_ci * 8261847f8eSopenharmony_ci * @type { ?ResourceStr } 8361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8461847f8eSopenharmony_ci * @crossplatform 8561847f8eSopenharmony_ci * @since 10 8661847f8eSopenharmony_ci */ 8761847f8eSopenharmony_ci /** 8861847f8eSopenharmony_ci * Option icon. 8961847f8eSopenharmony_ci * 9061847f8eSopenharmony_ci * @type { ?ResourceStr } 9161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9261847f8eSopenharmony_ci * @crossplatform 9361847f8eSopenharmony_ci * @atomicservice 9461847f8eSopenharmony_ci * @since 11 9561847f8eSopenharmony_ci */ 9661847f8eSopenharmony_ci icon?: ResourceStr; 9761847f8eSopenharmony_ci 9861847f8eSopenharmony_ci /** 9961847f8eSopenharmony_ci * Indicates the symbol icon of this menu item. 10061847f8eSopenharmony_ci * 10161847f8eSopenharmony_ci * @type { ?SymbolGlyphModifier } 10261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10361847f8eSopenharmony_ci * @crossplatform 10461847f8eSopenharmony_ci * @atomicservice 10561847f8eSopenharmony_ci * @since 12 10661847f8eSopenharmony_ci */ 10761847f8eSopenharmony_ci symbolIcon?: SymbolGlyphModifier; 10861847f8eSopenharmony_ci} 10961847f8eSopenharmony_ci 11061847f8eSopenharmony_ci/** 11161847f8eSopenharmony_ci * Provides the select interface. 11261847f8eSopenharmony_ci * 11361847f8eSopenharmony_ci * @interface SelectInterface 11461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11561847f8eSopenharmony_ci * @since 8 11661847f8eSopenharmony_ci */ 11761847f8eSopenharmony_ci/** 11861847f8eSopenharmony_ci * Provides the select interface. 11961847f8eSopenharmony_ci * 12061847f8eSopenharmony_ci * @interface SelectInterface 12161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12261847f8eSopenharmony_ci * @crossplatform 12361847f8eSopenharmony_ci * @since 10 12461847f8eSopenharmony_ci */ 12561847f8eSopenharmony_ci/** 12661847f8eSopenharmony_ci * Provides the select interface. 12761847f8eSopenharmony_ci * 12861847f8eSopenharmony_ci * @interface SelectInterface 12961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13061847f8eSopenharmony_ci * @crossplatform 13161847f8eSopenharmony_ci * @atomicservice 13261847f8eSopenharmony_ci * @since 11 13361847f8eSopenharmony_ci */ 13461847f8eSopenharmony_ciinterface SelectInterface { 13561847f8eSopenharmony_ci /** 13661847f8eSopenharmony_ci * Called when the select is set. 13761847f8eSopenharmony_ci * 13861847f8eSopenharmony_ci * @param { Array<SelectOption> } options 13961847f8eSopenharmony_ci * @returns { SelectAttribute } 14061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14161847f8eSopenharmony_ci * @since 8 14261847f8eSopenharmony_ci */ 14361847f8eSopenharmony_ci /** 14461847f8eSopenharmony_ci * Called when the select is set. 14561847f8eSopenharmony_ci * 14661847f8eSopenharmony_ci * @param { Array<SelectOption> } options 14761847f8eSopenharmony_ci * @returns { SelectAttribute } 14861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14961847f8eSopenharmony_ci * @crossplatform 15061847f8eSopenharmony_ci * @since 10 15161847f8eSopenharmony_ci */ 15261847f8eSopenharmony_ci /** 15361847f8eSopenharmony_ci * Called when the select is set. 15461847f8eSopenharmony_ci * 15561847f8eSopenharmony_ci * @param { Array<SelectOption> } options 15661847f8eSopenharmony_ci * @returns { SelectAttribute } 15761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15861847f8eSopenharmony_ci * @crossplatform 15961847f8eSopenharmony_ci * @atomicservice 16061847f8eSopenharmony_ci * @since 11 16161847f8eSopenharmony_ci */ 16261847f8eSopenharmony_ci (options: Array<SelectOption>): SelectAttribute; 16361847f8eSopenharmony_ci} 16461847f8eSopenharmony_ci 16561847f8eSopenharmony_ci/** 16661847f8eSopenharmony_ci * The enum for arrow position in the select 16761847f8eSopenharmony_ci * 16861847f8eSopenharmony_ci * @enum { number } 16961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17061847f8eSopenharmony_ci * @crossplatform 17161847f8eSopenharmony_ci * @since 10 17261847f8eSopenharmony_ci */ 17361847f8eSopenharmony_ci/** 17461847f8eSopenharmony_ci * The enum for arrow position in the select 17561847f8eSopenharmony_ci * 17661847f8eSopenharmony_ci * @enum { number } 17761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 17861847f8eSopenharmony_ci * @crossplatform 17961847f8eSopenharmony_ci * @atomicservice 18061847f8eSopenharmony_ci * @since 11 18161847f8eSopenharmony_ci */ 18261847f8eSopenharmony_cideclare enum ArrowPosition { 18361847f8eSopenharmony_ci /** 18461847f8eSopenharmony_ci * The value of arrow position end 18561847f8eSopenharmony_ci * 18661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18761847f8eSopenharmony_ci * @crossplatform 18861847f8eSopenharmony_ci * @since 10 18961847f8eSopenharmony_ci */ 19061847f8eSopenharmony_ci /** 19161847f8eSopenharmony_ci * The value of arrow position end 19261847f8eSopenharmony_ci * 19361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19461847f8eSopenharmony_ci * @crossplatform 19561847f8eSopenharmony_ci * @atomicservice 19661847f8eSopenharmony_ci * @since 11 19761847f8eSopenharmony_ci */ 19861847f8eSopenharmony_ci END = 0, 19961847f8eSopenharmony_ci 20061847f8eSopenharmony_ci /** 20161847f8eSopenharmony_ci * The value of arrow position start 20261847f8eSopenharmony_ci * 20361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20461847f8eSopenharmony_ci * @crossplatform 20561847f8eSopenharmony_ci * @since 10 20661847f8eSopenharmony_ci */ 20761847f8eSopenharmony_ci /** 20861847f8eSopenharmony_ci * The value of arrow position start 20961847f8eSopenharmony_ci * 21061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21161847f8eSopenharmony_ci * @crossplatform 21261847f8eSopenharmony_ci * @atomicservice 21361847f8eSopenharmony_ci * @since 11 21461847f8eSopenharmony_ci */ 21561847f8eSopenharmony_ci START = 1 21661847f8eSopenharmony_ci} 21761847f8eSopenharmony_ci 21861847f8eSopenharmony_ci/** 21961847f8eSopenharmony_ci * The type of alignment between select and menu. 22061847f8eSopenharmony_ci * 22161847f8eSopenharmony_ci * @enum { number } 22261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22361847f8eSopenharmony_ci * @since 10 22461847f8eSopenharmony_ci */ 22561847f8eSopenharmony_ci/** 22661847f8eSopenharmony_ci * The type of alignment between select and menu. 22761847f8eSopenharmony_ci * 22861847f8eSopenharmony_ci * @enum { number } 22961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23061847f8eSopenharmony_ci * @crossplatform 23161847f8eSopenharmony_ci * @atomicservice 23261847f8eSopenharmony_ci * @since 11 23361847f8eSopenharmony_ci */ 23461847f8eSopenharmony_cideclare enum MenuAlignType { 23561847f8eSopenharmony_ci /** 23661847f8eSopenharmony_ci * The value of menu align type start. 23761847f8eSopenharmony_ci * 23861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23961847f8eSopenharmony_ci * @since 10 24061847f8eSopenharmony_ci */ 24161847f8eSopenharmony_ci /** 24261847f8eSopenharmony_ci * The value of menu align type start. 24361847f8eSopenharmony_ci * 24461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 24561847f8eSopenharmony_ci * @crossplatform 24661847f8eSopenharmony_ci * @atomicservice 24761847f8eSopenharmony_ci * @since 11 24861847f8eSopenharmony_ci */ 24961847f8eSopenharmony_ci START, 25061847f8eSopenharmony_ci /** 25161847f8eSopenharmony_ci * The value of menu align type center. 25261847f8eSopenharmony_ci * 25361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25461847f8eSopenharmony_ci * @since 10 25561847f8eSopenharmony_ci */ 25661847f8eSopenharmony_ci /** 25761847f8eSopenharmony_ci * The value of menu align type center. 25861847f8eSopenharmony_ci * 25961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26061847f8eSopenharmony_ci * @crossplatform 26161847f8eSopenharmony_ci * @atomicservice 26261847f8eSopenharmony_ci * @since 11 26361847f8eSopenharmony_ci */ 26461847f8eSopenharmony_ci CENTER, 26561847f8eSopenharmony_ci /** 26661847f8eSopenharmony_ci * The value of menu align type end. 26761847f8eSopenharmony_ci * 26861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26961847f8eSopenharmony_ci * @since 10 27061847f8eSopenharmony_ci */ 27161847f8eSopenharmony_ci /** 27261847f8eSopenharmony_ci * The value of menu align type end. 27361847f8eSopenharmony_ci * 27461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27561847f8eSopenharmony_ci * @crossplatform 27661847f8eSopenharmony_ci * @atomicservice 27761847f8eSopenharmony_ci * @since 11 27861847f8eSopenharmony_ci */ 27961847f8eSopenharmony_ci END 28061847f8eSopenharmony_ci} 28161847f8eSopenharmony_ci 28261847f8eSopenharmony_ci/** 28361847f8eSopenharmony_ci * The commonMethod of select. 28461847f8eSopenharmony_ci * 28561847f8eSopenharmony_ci * @extends CommonMethod<SelectAttribute> 28661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28761847f8eSopenharmony_ci * @since 8 28861847f8eSopenharmony_ci */ 28961847f8eSopenharmony_ci/** 29061847f8eSopenharmony_ci * The commonMethod of select. 29161847f8eSopenharmony_ci * 29261847f8eSopenharmony_ci * @extends CommonMethod<SelectAttribute> 29361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29461847f8eSopenharmony_ci * @crossplatform 29561847f8eSopenharmony_ci * @since 10 29661847f8eSopenharmony_ci */ 29761847f8eSopenharmony_ci/** 29861847f8eSopenharmony_ci * The commonMethod of select. 29961847f8eSopenharmony_ci * 30061847f8eSopenharmony_ci * @extends CommonMethod<SelectAttribute> 30161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30261847f8eSopenharmony_ci * @crossplatform 30361847f8eSopenharmony_ci * @atomicservice 30461847f8eSopenharmony_ci * @since 11 30561847f8eSopenharmony_ci */ 30661847f8eSopenharmony_cideclare class SelectAttribute extends CommonMethod<SelectAttribute> { 30761847f8eSopenharmony_ci /** 30861847f8eSopenharmony_ci * Sets the serial number of the select item, starting from 0. 30961847f8eSopenharmony_ci * 31061847f8eSopenharmony_ci * @param { number } value 31161847f8eSopenharmony_ci * @returns { SelectAttribute } 31261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31361847f8eSopenharmony_ci * @since 8 31461847f8eSopenharmony_ci */ 31561847f8eSopenharmony_ci /** 31661847f8eSopenharmony_ci * Sets the serial number of the select item, starting from 0. 31761847f8eSopenharmony_ci * 31861847f8eSopenharmony_ci * @param { number } value 31961847f8eSopenharmony_ci * @returns { SelectAttribute } 32061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32161847f8eSopenharmony_ci * @crossplatform 32261847f8eSopenharmony_ci * @since 10 32361847f8eSopenharmony_ci */ 32461847f8eSopenharmony_ci /** 32561847f8eSopenharmony_ci * Sets the serial number of the select item, starting from 0. 32661847f8eSopenharmony_ci * 32761847f8eSopenharmony_ci * @param { number | Resource } value - the serial number of the select item. 32861847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 32961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33061847f8eSopenharmony_ci * @crossplatform 33161847f8eSopenharmony_ci * @atomicservice 33261847f8eSopenharmony_ci * @since 11 33361847f8eSopenharmony_ci */ 33461847f8eSopenharmony_ci selected(value: number | Resource): SelectAttribute; 33561847f8eSopenharmony_ci 33661847f8eSopenharmony_ci /** 33761847f8eSopenharmony_ci * Sets the text display of the select button itself. 33861847f8eSopenharmony_ci * 33961847f8eSopenharmony_ci * @param { string } value 34061847f8eSopenharmony_ci * @returns { SelectAttribute } 34161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34261847f8eSopenharmony_ci * @since 8 34361847f8eSopenharmony_ci */ 34461847f8eSopenharmony_ci /** 34561847f8eSopenharmony_ci * Sets the text display of the select button itself. 34661847f8eSopenharmony_ci * 34761847f8eSopenharmony_ci * @param { string } value 34861847f8eSopenharmony_ci * @returns { SelectAttribute } 34961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35061847f8eSopenharmony_ci * @crossplatform 35161847f8eSopenharmony_ci * @since 10 35261847f8eSopenharmony_ci */ 35361847f8eSopenharmony_ci /** 35461847f8eSopenharmony_ci * Sets the text display of the select button itself. 35561847f8eSopenharmony_ci * 35661847f8eSopenharmony_ci * @param { ResourceStr } value - the text display of the select button itself. 35761847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 35861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35961847f8eSopenharmony_ci * @crossplatform 36061847f8eSopenharmony_ci * @atomicservice 36161847f8eSopenharmony_ci * @since 11 36261847f8eSopenharmony_ci */ 36361847f8eSopenharmony_ci value(value: ResourceStr): SelectAttribute; 36461847f8eSopenharmony_ci 36561847f8eSopenharmony_ci /** 36661847f8eSopenharmony_ci * Sets the text properties of the select button itself. 36761847f8eSopenharmony_ci * 36861847f8eSopenharmony_ci * @param { Font } value 36961847f8eSopenharmony_ci * @returns { SelectAttribute } 37061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37161847f8eSopenharmony_ci * @since 8 37261847f8eSopenharmony_ci */ 37361847f8eSopenharmony_ci /** 37461847f8eSopenharmony_ci * Sets the text properties of the select button itself. 37561847f8eSopenharmony_ci * 37661847f8eSopenharmony_ci * @param { Font } value 37761847f8eSopenharmony_ci * @returns { SelectAttribute } 37861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37961847f8eSopenharmony_ci * @crossplatform 38061847f8eSopenharmony_ci * @since 10 38161847f8eSopenharmony_ci */ 38261847f8eSopenharmony_ci /** 38361847f8eSopenharmony_ci * Sets the text properties of the select button itself. 38461847f8eSopenharmony_ci * 38561847f8eSopenharmony_ci * @param { Font } value 38661847f8eSopenharmony_ci * @returns { SelectAttribute } 38761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 38861847f8eSopenharmony_ci * @crossplatform 38961847f8eSopenharmony_ci * @atomicservice 39061847f8eSopenharmony_ci * @since 11 39161847f8eSopenharmony_ci */ 39261847f8eSopenharmony_ci font(value: Font): SelectAttribute; 39361847f8eSopenharmony_ci 39461847f8eSopenharmony_ci /** 39561847f8eSopenharmony_ci * Sets the text color of the select button itself. 39661847f8eSopenharmony_ci * 39761847f8eSopenharmony_ci * @param { ResourceColor } value 39861847f8eSopenharmony_ci * @returns { SelectAttribute } 39961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40061847f8eSopenharmony_ci * @since 8 40161847f8eSopenharmony_ci */ 40261847f8eSopenharmony_ci /** 40361847f8eSopenharmony_ci * Sets the text color of the select button itself. 40461847f8eSopenharmony_ci * 40561847f8eSopenharmony_ci * @param { ResourceColor } value 40661847f8eSopenharmony_ci * @returns { SelectAttribute } 40761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 40861847f8eSopenharmony_ci * @crossplatform 40961847f8eSopenharmony_ci * @since 10 41061847f8eSopenharmony_ci */ 41161847f8eSopenharmony_ci /** 41261847f8eSopenharmony_ci * Sets the text color of the select button itself. 41361847f8eSopenharmony_ci * 41461847f8eSopenharmony_ci * @param { ResourceColor } value 41561847f8eSopenharmony_ci * @returns { SelectAttribute } 41661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41761847f8eSopenharmony_ci * @crossplatform 41861847f8eSopenharmony_ci * @atomicservice 41961847f8eSopenharmony_ci * @since 11 42061847f8eSopenharmony_ci */ 42161847f8eSopenharmony_ci fontColor(value: ResourceColor): SelectAttribute; 42261847f8eSopenharmony_ci 42361847f8eSopenharmony_ci /** 42461847f8eSopenharmony_ci * Sets the background color of the selected items in the select. 42561847f8eSopenharmony_ci * 42661847f8eSopenharmony_ci * @param { ResourceColor } value 42761847f8eSopenharmony_ci * @returns { SelectAttribute } 42861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42961847f8eSopenharmony_ci * @since 8 43061847f8eSopenharmony_ci */ 43161847f8eSopenharmony_ci /** 43261847f8eSopenharmony_ci * Sets the background color of the selected items in the select. 43361847f8eSopenharmony_ci * 43461847f8eSopenharmony_ci * @param { ResourceColor } value 43561847f8eSopenharmony_ci * @returns { SelectAttribute } 43661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 43761847f8eSopenharmony_ci * @crossplatform 43861847f8eSopenharmony_ci * @since 10 43961847f8eSopenharmony_ci */ 44061847f8eSopenharmony_ci /** 44161847f8eSopenharmony_ci * Sets the background color of the selected items in the select. 44261847f8eSopenharmony_ci * 44361847f8eSopenharmony_ci * @param { ResourceColor } value 44461847f8eSopenharmony_ci * @returns { SelectAttribute } 44561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44661847f8eSopenharmony_ci * @crossplatform 44761847f8eSopenharmony_ci * @atomicservice 44861847f8eSopenharmony_ci * @since 11 44961847f8eSopenharmony_ci */ 45061847f8eSopenharmony_ci selectedOptionBgColor(value: ResourceColor): SelectAttribute; 45161847f8eSopenharmony_ci 45261847f8eSopenharmony_ci /** 45361847f8eSopenharmony_ci * Sets the text style of the selected items in the select. 45461847f8eSopenharmony_ci * 45561847f8eSopenharmony_ci * @param { Font } value 45661847f8eSopenharmony_ci * @returns { SelectAttribute } 45761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45861847f8eSopenharmony_ci * @since 8 45961847f8eSopenharmony_ci */ 46061847f8eSopenharmony_ci /** 46161847f8eSopenharmony_ci * Sets the text style of the selected items in the select. 46261847f8eSopenharmony_ci * 46361847f8eSopenharmony_ci * @param { Font } value 46461847f8eSopenharmony_ci * @returns { SelectAttribute } 46561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46661847f8eSopenharmony_ci * @crossplatform 46761847f8eSopenharmony_ci * @since 10 46861847f8eSopenharmony_ci */ 46961847f8eSopenharmony_ci /** 47061847f8eSopenharmony_ci * Sets the text style of the selected items in the select. 47161847f8eSopenharmony_ci * 47261847f8eSopenharmony_ci * @param { Font } value 47361847f8eSopenharmony_ci * @returns { SelectAttribute } 47461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47561847f8eSopenharmony_ci * @crossplatform 47661847f8eSopenharmony_ci * @atomicservice 47761847f8eSopenharmony_ci * @since 11 47861847f8eSopenharmony_ci */ 47961847f8eSopenharmony_ci selectedOptionFont(value: Font): SelectAttribute; 48061847f8eSopenharmony_ci 48161847f8eSopenharmony_ci /** 48261847f8eSopenharmony_ci * Sets the text color of the selected item in the select. 48361847f8eSopenharmony_ci * 48461847f8eSopenharmony_ci * @param { ResourceColor } value 48561847f8eSopenharmony_ci * @returns { SelectAttribute } 48661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48761847f8eSopenharmony_ci * @since 8 48861847f8eSopenharmony_ci */ 48961847f8eSopenharmony_ci /** 49061847f8eSopenharmony_ci * Sets the text color of the selected item in the select. 49161847f8eSopenharmony_ci * 49261847f8eSopenharmony_ci * @param { ResourceColor } value 49361847f8eSopenharmony_ci * @returns { SelectAttribute } 49461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49561847f8eSopenharmony_ci * @crossplatform 49661847f8eSopenharmony_ci * @since 10 49761847f8eSopenharmony_ci */ 49861847f8eSopenharmony_ci /** 49961847f8eSopenharmony_ci * Sets the text color of the selected item in the select. 50061847f8eSopenharmony_ci * 50161847f8eSopenharmony_ci * @param { ResourceColor } value 50261847f8eSopenharmony_ci * @returns { SelectAttribute } 50361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50461847f8eSopenharmony_ci * @crossplatform 50561847f8eSopenharmony_ci * @atomicservice 50661847f8eSopenharmony_ci * @since 11 50761847f8eSopenharmony_ci */ 50861847f8eSopenharmony_ci selectedOptionFontColor(value: ResourceColor): SelectAttribute; 50961847f8eSopenharmony_ci 51061847f8eSopenharmony_ci /** 51161847f8eSopenharmony_ci * Sets the background color of the select item. 51261847f8eSopenharmony_ci * 51361847f8eSopenharmony_ci * @param { ResourceColor } value 51461847f8eSopenharmony_ci * @returns { SelectAttribute } 51561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51661847f8eSopenharmony_ci * @since 8 51761847f8eSopenharmony_ci */ 51861847f8eSopenharmony_ci /** 51961847f8eSopenharmony_ci * Sets the background color of the select item. 52061847f8eSopenharmony_ci * 52161847f8eSopenharmony_ci * @param { ResourceColor } value 52261847f8eSopenharmony_ci * @returns { SelectAttribute } 52361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52461847f8eSopenharmony_ci * @crossplatform 52561847f8eSopenharmony_ci * @since 10 52661847f8eSopenharmony_ci */ 52761847f8eSopenharmony_ci /** 52861847f8eSopenharmony_ci * Sets the background color of the select item. 52961847f8eSopenharmony_ci * 53061847f8eSopenharmony_ci * @param { ResourceColor } value 53161847f8eSopenharmony_ci * @returns { SelectAttribute } 53261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 53361847f8eSopenharmony_ci * @crossplatform 53461847f8eSopenharmony_ci * @atomicservice 53561847f8eSopenharmony_ci * @since 11 53661847f8eSopenharmony_ci */ 53761847f8eSopenharmony_ci optionBgColor(value: ResourceColor): SelectAttribute; 53861847f8eSopenharmony_ci 53961847f8eSopenharmony_ci /** 54061847f8eSopenharmony_ci * Sets the text style for select items. 54161847f8eSopenharmony_ci * 54261847f8eSopenharmony_ci * @param { Font } value 54361847f8eSopenharmony_ci * @returns { SelectAttribute } 54461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54561847f8eSopenharmony_ci * @since 8 54661847f8eSopenharmony_ci */ 54761847f8eSopenharmony_ci /** 54861847f8eSopenharmony_ci * Sets the text style for select items. 54961847f8eSopenharmony_ci * 55061847f8eSopenharmony_ci * @param { Font } value 55161847f8eSopenharmony_ci * @returns { SelectAttribute } 55261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 55361847f8eSopenharmony_ci * @crossplatform 55461847f8eSopenharmony_ci * @since 10 55561847f8eSopenharmony_ci */ 55661847f8eSopenharmony_ci /** 55761847f8eSopenharmony_ci * Sets the text style for select items. 55861847f8eSopenharmony_ci * 55961847f8eSopenharmony_ci * @param { Font } value 56061847f8eSopenharmony_ci * @returns { SelectAttribute } 56161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 56261847f8eSopenharmony_ci * @crossplatform 56361847f8eSopenharmony_ci * @atomicservice 56461847f8eSopenharmony_ci * @since 11 56561847f8eSopenharmony_ci */ 56661847f8eSopenharmony_ci optionFont(value: Font): SelectAttribute; 56761847f8eSopenharmony_ci 56861847f8eSopenharmony_ci /** 56961847f8eSopenharmony_ci * Sets the text color for select items. 57061847f8eSopenharmony_ci * 57161847f8eSopenharmony_ci * @param { ResourceColor } value 57261847f8eSopenharmony_ci * @returns { SelectAttribute } 57361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 57461847f8eSopenharmony_ci * @since 8 57561847f8eSopenharmony_ci */ 57661847f8eSopenharmony_ci /** 57761847f8eSopenharmony_ci * Sets the text color for select items. 57861847f8eSopenharmony_ci * 57961847f8eSopenharmony_ci * @param { ResourceColor } value 58061847f8eSopenharmony_ci * @returns { SelectAttribute } 58161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 58261847f8eSopenharmony_ci * @crossplatform 58361847f8eSopenharmony_ci * @since 10 58461847f8eSopenharmony_ci */ 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * Sets the text color for select items. 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @param { ResourceColor } value 58961847f8eSopenharmony_ci * @returns { SelectAttribute } 59061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 59161847f8eSopenharmony_ci * @crossplatform 59261847f8eSopenharmony_ci * @atomicservice 59361847f8eSopenharmony_ci * @since 11 59461847f8eSopenharmony_ci */ 59561847f8eSopenharmony_ci optionFontColor(value: ResourceColor): SelectAttribute; 59661847f8eSopenharmony_ci 59761847f8eSopenharmony_ci /** 59861847f8eSopenharmony_ci * Callback for selecting an item from the select. 59961847f8eSopenharmony_ci * 60061847f8eSopenharmony_ci * @param { function } callback 60161847f8eSopenharmony_ci * @returns { SelectAttribute } 60261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 60361847f8eSopenharmony_ci * @since 8 60461847f8eSopenharmony_ci */ 60561847f8eSopenharmony_ci /** 60661847f8eSopenharmony_ci * Callback for selecting an item from the select. 60761847f8eSopenharmony_ci * 60861847f8eSopenharmony_ci * @param { function } callback 60961847f8eSopenharmony_ci * @returns { SelectAttribute } 61061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 61161847f8eSopenharmony_ci * @crossplatform 61261847f8eSopenharmony_ci * @since 10 61361847f8eSopenharmony_ci */ 61461847f8eSopenharmony_ci /** 61561847f8eSopenharmony_ci * Callback for selecting an item from the select. 61661847f8eSopenharmony_ci * 61761847f8eSopenharmony_ci * @param { function } callback 61861847f8eSopenharmony_ci * @returns { SelectAttribute } 61961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 62061847f8eSopenharmony_ci * @crossplatform 62161847f8eSopenharmony_ci * @atomicservice 62261847f8eSopenharmony_ci * @since 11 62361847f8eSopenharmony_ci */ 62461847f8eSopenharmony_ci onSelect(callback: (index: number, value: string) => void): SelectAttribute; 62561847f8eSopenharmony_ci 62661847f8eSopenharmony_ci /** 62761847f8eSopenharmony_ci * Set the space for text and icon in select 62861847f8eSopenharmony_ci * 62961847f8eSopenharmony_ci * @param { Length } value - indicates the length of the space 63061847f8eSopenharmony_ci * @returns { SelectAttribute } 63161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 63261847f8eSopenharmony_ci * @crossplatform 63361847f8eSopenharmony_ci * @since 10 63461847f8eSopenharmony_ci */ 63561847f8eSopenharmony_ci /** 63661847f8eSopenharmony_ci * Set the space for text and icon in select 63761847f8eSopenharmony_ci * 63861847f8eSopenharmony_ci * @param { Length } value - indicates the length of the space 63961847f8eSopenharmony_ci * @returns { SelectAttribute } 64061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 64161847f8eSopenharmony_ci * @crossplatform 64261847f8eSopenharmony_ci * @atomicservice 64361847f8eSopenharmony_ci * @since 11 64461847f8eSopenharmony_ci */ 64561847f8eSopenharmony_ci space(value: Length): SelectAttribute; 64661847f8eSopenharmony_ci 64761847f8eSopenharmony_ci /** 64861847f8eSopenharmony_ci * Set the layout direction for text and arrow in select 64961847f8eSopenharmony_ci * 65061847f8eSopenharmony_ci * @param { ArrowPosition } value - indicates the arrow position in the select 65161847f8eSopenharmony_ci * @returns { SelectAttribute } 65261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 65361847f8eSopenharmony_ci * @crossplatform 65461847f8eSopenharmony_ci * @since 10 65561847f8eSopenharmony_ci */ 65661847f8eSopenharmony_ci /** 65761847f8eSopenharmony_ci * Set the layout direction for text and arrow in select 65861847f8eSopenharmony_ci * 65961847f8eSopenharmony_ci * @param { ArrowPosition } value - indicates the arrow position in the select 66061847f8eSopenharmony_ci * @returns { SelectAttribute } 66161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 66261847f8eSopenharmony_ci * @crossplatform 66361847f8eSopenharmony_ci * @atomicservice 66461847f8eSopenharmony_ci * @since 11 66561847f8eSopenharmony_ci */ 66661847f8eSopenharmony_ci arrowPosition(value: ArrowPosition): SelectAttribute; 66761847f8eSopenharmony_ci 66861847f8eSopenharmony_ci /** 66961847f8eSopenharmony_ci * Set the alignment between select and menu. 67061847f8eSopenharmony_ci * 67161847f8eSopenharmony_ci * @param { MenuAlignType } alignType - The type of alignment between select and menu. 67261847f8eSopenharmony_ci * @param { Offset } offset - The offset between select and menu. 67361847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 67461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 67561847f8eSopenharmony_ci * @since 10 67661847f8eSopenharmony_ci */ 67761847f8eSopenharmony_ci /** 67861847f8eSopenharmony_ci * Set the alignment between select and menu. 67961847f8eSopenharmony_ci * 68061847f8eSopenharmony_ci * @param { MenuAlignType } alignType - The type of alignment between select and menu. 68161847f8eSopenharmony_ci * @param { Offset } offset - The offset between select and menu. 68261847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 68361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 68461847f8eSopenharmony_ci * @crossplatform 68561847f8eSopenharmony_ci * @atomicservice 68661847f8eSopenharmony_ci * @since 11 68761847f8eSopenharmony_ci */ 68861847f8eSopenharmony_ci menuAlign(alignType: MenuAlignType, offset?: Offset): SelectAttribute; 68961847f8eSopenharmony_ci 69061847f8eSopenharmony_ci /** 69161847f8eSopenharmony_ci * Set the width of each option and set whether the option width fit the trigger. 69261847f8eSopenharmony_ci * 69361847f8eSopenharmony_ci * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content. 69461847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 69561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 69661847f8eSopenharmony_ci * @crossplatform 69761847f8eSopenharmony_ci * @since 11 69861847f8eSopenharmony_ci */ 69961847f8eSopenharmony_ci /** 70061847f8eSopenharmony_ci * Set the width of each option and set whether the option width fit the trigger. 70161847f8eSopenharmony_ci * 70261847f8eSopenharmony_ci * @param { Dimension | OptionWidthMode } value - The length of option width and decide option width to fit trigger or content. 70361847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 70461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 70561847f8eSopenharmony_ci * @crossplatform 70661847f8eSopenharmony_ci * @atomicservice 70761847f8eSopenharmony_ci * @since 12 70861847f8eSopenharmony_ci */ 70961847f8eSopenharmony_ci optionWidth(value: Dimension | OptionWidthMode ): SelectAttribute; 71061847f8eSopenharmony_ci 71161847f8eSopenharmony_ci /** 71261847f8eSopenharmony_ci * Set the height of each option. 71361847f8eSopenharmony_ci * 71461847f8eSopenharmony_ci * @param { Dimension } value - The length of option height. 71561847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 71661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 71761847f8eSopenharmony_ci * @crossplatform 71861847f8eSopenharmony_ci * @since 11 71961847f8eSopenharmony_ci */ 72061847f8eSopenharmony_ci /** 72161847f8eSopenharmony_ci * Set the height of each option. 72261847f8eSopenharmony_ci * 72361847f8eSopenharmony_ci * @param { Dimension } value - The length of option height. 72461847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 72561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 72661847f8eSopenharmony_ci * @crossplatform 72761847f8eSopenharmony_ci * @atomicservice 72861847f8eSopenharmony_ci * @since 12 72961847f8eSopenharmony_ci */ 73061847f8eSopenharmony_ci optionHeight(value: Dimension): SelectAttribute; 73161847f8eSopenharmony_ci 73261847f8eSopenharmony_ci /** 73361847f8eSopenharmony_ci * set the menu's background color 73461847f8eSopenharmony_ci * 73561847f8eSopenharmony_ci * @param { ResourceColor } value - The backgroundColor of menu. 73661847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 73761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 73861847f8eSopenharmony_ci * @crossplatform 73961847f8eSopenharmony_ci * @since 11 74061847f8eSopenharmony_ci */ 74161847f8eSopenharmony_ci /** 74261847f8eSopenharmony_ci * set the menu's background color 74361847f8eSopenharmony_ci * 74461847f8eSopenharmony_ci * @param { ResourceColor } value - The backgroundColor of menu. 74561847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 74661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 74761847f8eSopenharmony_ci * @crossplatform 74861847f8eSopenharmony_ci * @atomicservice 74961847f8eSopenharmony_ci * @since 12 75061847f8eSopenharmony_ci */ 75161847f8eSopenharmony_ci menuBackgroundColor(value: ResourceColor): SelectAttribute; 75261847f8eSopenharmony_ci 75361847f8eSopenharmony_ci /** 75461847f8eSopenharmony_ci * set menu background blur Style 75561847f8eSopenharmony_ci * 75661847f8eSopenharmony_ci * @param { BlurStyle } value - The BackgroundBlurStyle of menu. 75761847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 75861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 75961847f8eSopenharmony_ci * @crossplatform 76061847f8eSopenharmony_ci * @since 11 76161847f8eSopenharmony_ci */ 76261847f8eSopenharmony_ci /** 76361847f8eSopenharmony_ci * set menu background blur Style 76461847f8eSopenharmony_ci * 76561847f8eSopenharmony_ci * @param { BlurStyle } value - The BackgroundBlurStyle of menu. 76661847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 76761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 76861847f8eSopenharmony_ci * @crossplatform 76961847f8eSopenharmony_ci * @atomicservice 77061847f8eSopenharmony_ci * @since 12 77161847f8eSopenharmony_ci */ 77261847f8eSopenharmony_ci menuBackgroundBlurStyle(value: BlurStyle): SelectAttribute; 77361847f8eSopenharmony_ci 77461847f8eSopenharmony_ci /** 77561847f8eSopenharmony_ci * Sets the size for controls within Select Component. 77661847f8eSopenharmony_ci * 77761847f8eSopenharmony_ci * @param { ControlSize } value - control size 77861847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 77961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 78061847f8eSopenharmony_ci * @crossplatform 78161847f8eSopenharmony_ci * @atomicservice 78261847f8eSopenharmony_ci * @since 12 78361847f8eSopenharmony_ci */ 78461847f8eSopenharmony_ci controlSize(value: ControlSize): SelectAttribute; 78561847f8eSopenharmony_ci 78661847f8eSopenharmony_ci /** 78761847f8eSopenharmony_ci * Register a ContentModifier for each menu item. 78861847f8eSopenharmony_ci * 78961847f8eSopenharmony_ci * @param { ContentModifier<MenuItemConfiguration> } modifier - The content modifier of select menu item. 79061847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 79161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 79261847f8eSopenharmony_ci * @crossplatform 79361847f8eSopenharmony_ci * @atomicservice 79461847f8eSopenharmony_ci * @since 12 79561847f8eSopenharmony_ci */ 79661847f8eSopenharmony_ci menuItemContentModifier(modifier: ContentModifier<MenuItemConfiguration>): SelectAttribute; 79761847f8eSopenharmony_ci 79861847f8eSopenharmony_ci /** 79961847f8eSopenharmony_ci * Set the divider of select. 80061847f8eSopenharmony_ci * 80161847f8eSopenharmony_ci * @param { Optional<DividerOptions> | null } options Set custom and hidden divider. 80261847f8eSopenharmony_ci * @returns { SelectAttribute } the attribute of the select. 80361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 80461847f8eSopenharmony_ci * @crossplatform 80561847f8eSopenharmony_ci * @atomicservice 80661847f8eSopenharmony_ci * @since 12 80761847f8eSopenharmony_ci */ 80861847f8eSopenharmony_ci divider(options: Optional<DividerOptions> | null): SelectAttribute; 80961847f8eSopenharmony_ci} 81061847f8eSopenharmony_ci 81161847f8eSopenharmony_ci/** 81261847f8eSopenharmony_ci * MenuItemConfiguration used by menu item content modifier. 81361847f8eSopenharmony_ci * 81461847f8eSopenharmony_ci * @interface MenuItemConfiguration 81561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 81661847f8eSopenharmony_ci * @crossplatform 81761847f8eSopenharmony_ci * @atomicservice 81861847f8eSopenharmony_ci * @since 12 81961847f8eSopenharmony_ci */ 82061847f8eSopenharmony_cideclare interface MenuItemConfiguration extends CommonConfiguration<MenuItemConfiguration>{ 82161847f8eSopenharmony_ci /** 82261847f8eSopenharmony_ci * Indicates the text of this menu item. 82361847f8eSopenharmony_ci * 82461847f8eSopenharmony_ci * @type { ResourceStr } 82561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 82661847f8eSopenharmony_ci * @crossplatform 82761847f8eSopenharmony_ci * @atomicservice 82861847f8eSopenharmony_ci * @since 12 82961847f8eSopenharmony_ci */ 83061847f8eSopenharmony_ci value: ResourceStr; 83161847f8eSopenharmony_ci 83261847f8eSopenharmony_ci /** 83361847f8eSopenharmony_ci * Indicates the icon of this menu item. 83461847f8eSopenharmony_ci * 83561847f8eSopenharmony_ci * @type { ?ResourceStr } 83661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 83761847f8eSopenharmony_ci * @crossplatform 83861847f8eSopenharmony_ci * @atomicservice 83961847f8eSopenharmony_ci * @since 12 84061847f8eSopenharmony_ci */ 84161847f8eSopenharmony_ci icon?: ResourceStr; 84261847f8eSopenharmony_ci 84361847f8eSopenharmony_ci /** 84461847f8eSopenharmony_ci * Indicates the symbol icon of this menu item. 84561847f8eSopenharmony_ci * 84661847f8eSopenharmony_ci * @type { ?SymbolGlyphModifier } 84761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 84861847f8eSopenharmony_ci * @crossplatform 84961847f8eSopenharmony_ci * @atomicservice 85061847f8eSopenharmony_ci * @since 12 85161847f8eSopenharmony_ci */ 85261847f8eSopenharmony_ci symbolIcon?: SymbolGlyphModifier; 85361847f8eSopenharmony_ci 85461847f8eSopenharmony_ci /** 85561847f8eSopenharmony_ci * Indicates whether this menu item is selected or not. 85661847f8eSopenharmony_ci * 85761847f8eSopenharmony_ci * @type { boolean } 85861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 85961847f8eSopenharmony_ci * @crossplatform 86061847f8eSopenharmony_ci * @atomicservice 86161847f8eSopenharmony_ci * @since 12 86261847f8eSopenharmony_ci */ 86361847f8eSopenharmony_ci selected: boolean; 86461847f8eSopenharmony_ci 86561847f8eSopenharmony_ci /** 86661847f8eSopenharmony_ci * Indicates the index of the menu item. 86761847f8eSopenharmony_ci * 86861847f8eSopenharmony_ci * @type { number } 86961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 87061847f8eSopenharmony_ci * @crossplatform 87161847f8eSopenharmony_ci * @atomicservice 87261847f8eSopenharmony_ci * @since 12 87361847f8eSopenharmony_ci */ 87461847f8eSopenharmony_ci index: number; 87561847f8eSopenharmony_ci 87661847f8eSopenharmony_ci /** 87761847f8eSopenharmony_ci * Select this menu item. 87861847f8eSopenharmony_ci * 87961847f8eSopenharmony_ci * @param { number } index - The value of menu item index. 88061847f8eSopenharmony_ci * @param { string } value - The value of menu item text. 88161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 88261847f8eSopenharmony_ci * @crossplatform 88361847f8eSopenharmony_ci * @atomicservice 88461847f8eSopenharmony_ci * @since 12 88561847f8eSopenharmony_ci */ 88661847f8eSopenharmony_ci triggerSelect(index: number, value: string): void; 88761847f8eSopenharmony_ci} 88861847f8eSopenharmony_ci/** 88961847f8eSopenharmony_ci * Defines Select Component. 89061847f8eSopenharmony_ci * 89161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 89261847f8eSopenharmony_ci * @since 8 89361847f8eSopenharmony_ci */ 89461847f8eSopenharmony_ci/** 89561847f8eSopenharmony_ci * Defines Select Component. 89661847f8eSopenharmony_ci * 89761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 89861847f8eSopenharmony_ci * @crossplatform 89961847f8eSopenharmony_ci * @since 10 90061847f8eSopenharmony_ci */ 90161847f8eSopenharmony_ci/** 90261847f8eSopenharmony_ci * Defines Select Component. 90361847f8eSopenharmony_ci * 90461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 90561847f8eSopenharmony_ci * @crossplatform 90661847f8eSopenharmony_ci * @atomicservice 90761847f8eSopenharmony_ci * @since 11 90861847f8eSopenharmony_ci */ 90961847f8eSopenharmony_cideclare const Select: SelectInterface; 91061847f8eSopenharmony_ci 91161847f8eSopenharmony_ci/** 91261847f8eSopenharmony_ci * Defines Select Component instance. 91361847f8eSopenharmony_ci * 91461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 91561847f8eSopenharmony_ci * @since 8 91661847f8eSopenharmony_ci */ 91761847f8eSopenharmony_ci/** 91861847f8eSopenharmony_ci * Defines Select Component instance. 91961847f8eSopenharmony_ci * 92061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 92161847f8eSopenharmony_ci * @crossplatform 92261847f8eSopenharmony_ci * @since 10 92361847f8eSopenharmony_ci */ 92461847f8eSopenharmony_ci/** 92561847f8eSopenharmony_ci * Defines Select Component instance. 92661847f8eSopenharmony_ci * 92761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 92861847f8eSopenharmony_ci * @crossplatform 92961847f8eSopenharmony_ci * @atomicservice 93061847f8eSopenharmony_ci * @since 11 93161847f8eSopenharmony_ci */ 93261847f8eSopenharmony_cideclare const SelectInstance: SelectAttribute; 933