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 * indexer align property. 2361847f8eSopenharmony_ci * 2461847f8eSopenharmony_ci * @enum { number } 2561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 2661847f8eSopenharmony_ci * @since 7 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * indexer align property. 3061847f8eSopenharmony_ci * 3161847f8eSopenharmony_ci * @enum { number } 3261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 3361847f8eSopenharmony_ci * @crossplatform 3461847f8eSopenharmony_ci * @since 10 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * indexer align property. 3861847f8eSopenharmony_ci * 3961847f8eSopenharmony_ci * @enum { number } 4061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @atomicservice 4361847f8eSopenharmony_ci * @since 11 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_cideclare enum IndexerAlign { 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * A dialog box is displayed on the right of the index bar. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5061847f8eSopenharmony_ci * @since 7 5161847f8eSopenharmony_ci */ 5261847f8eSopenharmony_ci /** 5361847f8eSopenharmony_ci * A dialog box is displayed on the right of the index bar. 5461847f8eSopenharmony_ci * 5561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 5661847f8eSopenharmony_ci * @crossplatform 5761847f8eSopenharmony_ci * @since 10 5861847f8eSopenharmony_ci */ 5961847f8eSopenharmony_ci /** 6061847f8eSopenharmony_ci * A dialog box is displayed on the right of the index bar. 6161847f8eSopenharmony_ci * 6261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 6361847f8eSopenharmony_ci * @crossplatform 6461847f8eSopenharmony_ci * @atomicservice 6561847f8eSopenharmony_ci * @since 11 6661847f8eSopenharmony_ci */ 6761847f8eSopenharmony_ci Left, 6861847f8eSopenharmony_ci 6961847f8eSopenharmony_ci /** 7061847f8eSopenharmony_ci * A dialog box is displayed on the left of the index bar. 7161847f8eSopenharmony_ci * 7261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7361847f8eSopenharmony_ci * @since 7 7461847f8eSopenharmony_ci */ 7561847f8eSopenharmony_ci /** 7661847f8eSopenharmony_ci * A dialog box is displayed on the left of the index bar. 7761847f8eSopenharmony_ci * 7861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 7961847f8eSopenharmony_ci * @crossplatform 8061847f8eSopenharmony_ci * @since 10 8161847f8eSopenharmony_ci */ 8261847f8eSopenharmony_ci /** 8361847f8eSopenharmony_ci * A dialog box is displayed on the left of the index bar. 8461847f8eSopenharmony_ci * 8561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 8661847f8eSopenharmony_ci * @crossplatform 8761847f8eSopenharmony_ci * @atomicservice 8861847f8eSopenharmony_ci * @since 11 8961847f8eSopenharmony_ci */ 9061847f8eSopenharmony_ci Right, 9161847f8eSopenharmony_ci 9261847f8eSopenharmony_ci /** 9361847f8eSopenharmony_ci * A dialog box is displayed on the start of the index bar. 9461847f8eSopenharmony_ci * 9561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 9661847f8eSopenharmony_ci * @crossplatform 9761847f8eSopenharmony_ci * @atomicservice 9861847f8eSopenharmony_ci * @since 12 9961847f8eSopenharmony_ci */ 10061847f8eSopenharmony_ci START, 10161847f8eSopenharmony_ci 10261847f8eSopenharmony_ci /** 10361847f8eSopenharmony_ci * A dialog box is displayed on the end of the index bar. 10461847f8eSopenharmony_ci * 10561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 10661847f8eSopenharmony_ci * @crossplatform 10761847f8eSopenharmony_ci * @atomicservice 10861847f8eSopenharmony_ci * @since 12 10961847f8eSopenharmony_ci */ 11061847f8eSopenharmony_ci END, 11161847f8eSopenharmony_ci} 11261847f8eSopenharmony_ci 11361847f8eSopenharmony_ci/** 11461847f8eSopenharmony_ci * AlphabetIndexer constructor options. 11561847f8eSopenharmony_ci * 11661847f8eSopenharmony_ci * @interface AlphabetIndexerOptions 11761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 11861847f8eSopenharmony_ci * @crossplatform 11961847f8eSopenharmony_ci * @atomicservice 12061847f8eSopenharmony_ci * @since 13 12161847f8eSopenharmony_ci */ 12261847f8eSopenharmony_ciinterface AlphabetIndexerOptions { 12361847f8eSopenharmony_ci /** 12461847f8eSopenharmony_ci * Alphabetical index string array. 12561847f8eSopenharmony_ci * 12661847f8eSopenharmony_ci * @type { Array<string> } 12761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 12861847f8eSopenharmony_ci * @since 7 12961847f8eSopenharmony_ci */ 13061847f8eSopenharmony_ci /** 13161847f8eSopenharmony_ci * Alphabetical index string array. 13261847f8eSopenharmony_ci * 13361847f8eSopenharmony_ci * @type { Array<string> } 13461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 13561847f8eSopenharmony_ci * @crossplatform 13661847f8eSopenharmony_ci * @since 10 13761847f8eSopenharmony_ci */ 13861847f8eSopenharmony_ci /** 13961847f8eSopenharmony_ci * Alphabetical index string array. 14061847f8eSopenharmony_ci * 14161847f8eSopenharmony_ci * @type { Array<string> } 14261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 14361847f8eSopenharmony_ci * @crossplatform 14461847f8eSopenharmony_ci * @atomicservice 14561847f8eSopenharmony_ci * @since 11 14661847f8eSopenharmony_ci */ 14761847f8eSopenharmony_ci arrayValue: Array<string>; 14861847f8eSopenharmony_ci /** 14961847f8eSopenharmony_ci * ID of the selected item. 15061847f8eSopenharmony_ci * 15161847f8eSopenharmony_ci * @type { number } 15261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 15361847f8eSopenharmony_ci * @since 7 15461847f8eSopenharmony_ci */ 15561847f8eSopenharmony_ci /** 15661847f8eSopenharmony_ci * ID of the selected item. 15761847f8eSopenharmony_ci * 15861847f8eSopenharmony_ci * @type { number } 15961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16061847f8eSopenharmony_ci * @crossplatform 16161847f8eSopenharmony_ci * @since 10 16261847f8eSopenharmony_ci */ 16361847f8eSopenharmony_ci /** 16461847f8eSopenharmony_ci * ID of the selected item. 16561847f8eSopenharmony_ci * 16661847f8eSopenharmony_ci * @type { number } 16761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 16861847f8eSopenharmony_ci * @crossplatform 16961847f8eSopenharmony_ci * @atomicservice 17061847f8eSopenharmony_ci * @since 11 17161847f8eSopenharmony_ci */ 17261847f8eSopenharmony_ci selected: number; 17361847f8eSopenharmony_ci} 17461847f8eSopenharmony_ci 17561847f8eSopenharmony_ci/** 17661847f8eSopenharmony_ci * Alphabet index bar. 17761847f8eSopenharmony_ci * 17861847f8eSopenharmony_ci * @interface AlphabetIndexerInterface 17961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18061847f8eSopenharmony_ci * @since 7 18161847f8eSopenharmony_ci */ 18261847f8eSopenharmony_ci/** 18361847f8eSopenharmony_ci * Alphabet index bar. 18461847f8eSopenharmony_ci * 18561847f8eSopenharmony_ci * @interface AlphabetIndexerInterface 18661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 18761847f8eSopenharmony_ci * @crossplatform 18861847f8eSopenharmony_ci * @since 10 18961847f8eSopenharmony_ci */ 19061847f8eSopenharmony_ci/** 19161847f8eSopenharmony_ci * Alphabet index bar. 19261847f8eSopenharmony_ci * 19361847f8eSopenharmony_ci * @interface AlphabetIndexerInterface 19461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 19561847f8eSopenharmony_ci * @crossplatform 19661847f8eSopenharmony_ci * @atomicservice 19761847f8eSopenharmony_ci * @since 11 19861847f8eSopenharmony_ci */ 19961847f8eSopenharmony_ciinterface AlphabetIndexerInterface { 20061847f8eSopenharmony_ci /** 20161847f8eSopenharmony_ci * ArrayValue: Alphabetical index string array. 20261847f8eSopenharmony_ci * selected: ID of the selected item. 20361847f8eSopenharmony_ci * 20461847f8eSopenharmony_ci * @param { object } value 20561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 20661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 20761847f8eSopenharmony_ci * @since 7 20861847f8eSopenharmony_ci */ 20961847f8eSopenharmony_ci /** 21061847f8eSopenharmony_ci * ArrayValue: Alphabetical index string array. 21161847f8eSopenharmony_ci * selected: ID of the selected item. 21261847f8eSopenharmony_ci * 21361847f8eSopenharmony_ci * @param { object } value 21461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 21561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 21661847f8eSopenharmony_ci * @crossplatform 21761847f8eSopenharmony_ci * @since 10 21861847f8eSopenharmony_ci */ 21961847f8eSopenharmony_ci /** 22061847f8eSopenharmony_ci * ArrayValue: Alphabetical index string array. 22161847f8eSopenharmony_ci * selected: ID of the selected item. 22261847f8eSopenharmony_ci * 22361847f8eSopenharmony_ci * @param { object } value 22461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 22561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 22661847f8eSopenharmony_ci * @crossplatform 22761847f8eSopenharmony_ci * @atomicservice 22861847f8eSopenharmony_ci * @since 11 22961847f8eSopenharmony_ci */ 23061847f8eSopenharmony_ci /** 23161847f8eSopenharmony_ci * Construct the alphabet indexer component. 23261847f8eSopenharmony_ci * Called when the alphabet indexer component is used. 23361847f8eSopenharmony_ci * 23461847f8eSopenharmony_ci * @param { AlphabetIndexerOptions } options - alphabet indexer options 23561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 23661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 23761847f8eSopenharmony_ci * @crossplatform 23861847f8eSopenharmony_ci * @atomicservice 23961847f8eSopenharmony_ci * @since 13 24061847f8eSopenharmony_ci */ 24161847f8eSopenharmony_ci (options: AlphabetIndexerOptions): AlphabetIndexerAttribute; 24261847f8eSopenharmony_ci} 24361847f8eSopenharmony_ci 24461847f8eSopenharmony_ci/** 24561847f8eSopenharmony_ci * Defines an AlphabetIndexer callback when onSelect. 24661847f8eSopenharmony_ci * 24761847f8eSopenharmony_ci * @typedef { function } OnAlphabetIndexerSelectCallback 24861847f8eSopenharmony_ci * @param { number } index - selected index 24961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 25061847f8eSopenharmony_ci * @crossplatform 25161847f8eSopenharmony_ci * @atomicservice 25261847f8eSopenharmony_ci * @since 13 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_cideclare type OnAlphabetIndexerSelectCallback = (index: number) => void; 25561847f8eSopenharmony_ci 25661847f8eSopenharmony_ci/** 25761847f8eSopenharmony_ci * Defines an AlphabetIndexer callback when onPopupSelect. 25861847f8eSopenharmony_ci * 25961847f8eSopenharmony_ci * @typedef { function } OnAlphabetIndexerPopupSelectCallback 26061847f8eSopenharmony_ci * @param { number } index - selected index 26161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 26261847f8eSopenharmony_ci * @crossplatform 26361847f8eSopenharmony_ci * @atomicservice 26461847f8eSopenharmony_ci * @since 13 26561847f8eSopenharmony_ci */ 26661847f8eSopenharmony_cideclare type OnAlphabetIndexerPopupSelectCallback = (index: number) => void; 26761847f8eSopenharmony_ci 26861847f8eSopenharmony_ci/** 26961847f8eSopenharmony_ci * Defines an AlphabetIndexer callback when onRequestPopupData. 27061847f8eSopenharmony_ci * 27161847f8eSopenharmony_ci * @typedef { function } OnAlphabetIndexerRequestPopupDataCallback 27261847f8eSopenharmony_ci * @param { number } index - selected index 27361847f8eSopenharmony_ci * @returns { Array<string> } string array corresponding to the index 27461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 27561847f8eSopenharmony_ci * @crossplatform 27661847f8eSopenharmony_ci * @atomicservice 27761847f8eSopenharmony_ci * @since 13 27861847f8eSopenharmony_ci */ 27961847f8eSopenharmony_cideclare type OnAlphabetIndexerRequestPopupDataCallback = (index: number) => Array<string>; 28061847f8eSopenharmony_ci 28161847f8eSopenharmony_ci/** 28261847f8eSopenharmony_ci * Defines the alphabet index bar attribute functions. 28361847f8eSopenharmony_ci * 28461847f8eSopenharmony_ci * @extends CommonMethod<AlphabetIndexerAttribute> 28561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 28661847f8eSopenharmony_ci * @since 7 28761847f8eSopenharmony_ci */ 28861847f8eSopenharmony_ci/** 28961847f8eSopenharmony_ci * Defines the alphabet index bar attribute functions. 29061847f8eSopenharmony_ci * 29161847f8eSopenharmony_ci * @extends CommonMethod<AlphabetIndexerAttribute> 29261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 29361847f8eSopenharmony_ci * @crossplatform 29461847f8eSopenharmony_ci * @since 10 29561847f8eSopenharmony_ci */ 29661847f8eSopenharmony_ci/** 29761847f8eSopenharmony_ci * Defines the alphabet index bar attribute functions. 29861847f8eSopenharmony_ci * 29961847f8eSopenharmony_ci * @extends CommonMethod<AlphabetIndexerAttribute> 30061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 30161847f8eSopenharmony_ci * @crossplatform 30261847f8eSopenharmony_ci * @atomicservice 30361847f8eSopenharmony_ci * @since 11 30461847f8eSopenharmony_ci */ 30561847f8eSopenharmony_cideclare class AlphabetIndexerAttribute extends CommonMethod<AlphabetIndexerAttribute> { 30661847f8eSopenharmony_ci /** 30761847f8eSopenharmony_ci * Index bar selection callback. 30861847f8eSopenharmony_ci * 30961847f8eSopenharmony_ci * @param { function } callback 31061847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 31161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 31261847f8eSopenharmony_ci * @since 7 31361847f8eSopenharmony_ci * @deprecated since 8 31461847f8eSopenharmony_ci * @useinstead onSelect 31561847f8eSopenharmony_ci */ 31661847f8eSopenharmony_ci onSelected(callback: (index: number) => void): AlphabetIndexerAttribute; 31761847f8eSopenharmony_ci 31861847f8eSopenharmony_ci /** 31961847f8eSopenharmony_ci * Definitions color. 32061847f8eSopenharmony_ci * 32161847f8eSopenharmony_ci * @param { ResourceColor } value 32261847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 32361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 32461847f8eSopenharmony_ci * @since 7 32561847f8eSopenharmony_ci */ 32661847f8eSopenharmony_ci /** 32761847f8eSopenharmony_ci * Definitions color. 32861847f8eSopenharmony_ci * 32961847f8eSopenharmony_ci * @param { ResourceColor } value 33061847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 33161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 33261847f8eSopenharmony_ci * @crossplatform 33361847f8eSopenharmony_ci * @since 10 33461847f8eSopenharmony_ci */ 33561847f8eSopenharmony_ci /** 33661847f8eSopenharmony_ci * Definitions color. 33761847f8eSopenharmony_ci * 33861847f8eSopenharmony_ci * @param { ResourceColor } value 33961847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 34061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 34161847f8eSopenharmony_ci * @crossplatform 34261847f8eSopenharmony_ci * @atomicservice 34361847f8eSopenharmony_ci * @since 11 34461847f8eSopenharmony_ci */ 34561847f8eSopenharmony_ci color(value: ResourceColor): AlphabetIndexerAttribute; 34661847f8eSopenharmony_ci 34761847f8eSopenharmony_ci /** 34861847f8eSopenharmony_ci * Select the text color. 34961847f8eSopenharmony_ci * 35061847f8eSopenharmony_ci * @param { ResourceColor } value 35161847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 35261847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 35361847f8eSopenharmony_ci * @since 7 35461847f8eSopenharmony_ci */ 35561847f8eSopenharmony_ci /** 35661847f8eSopenharmony_ci * Select the text color. 35761847f8eSopenharmony_ci * 35861847f8eSopenharmony_ci * @param { ResourceColor } value 35961847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 36061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 36161847f8eSopenharmony_ci * @crossplatform 36261847f8eSopenharmony_ci * @since 10 36361847f8eSopenharmony_ci */ 36461847f8eSopenharmony_ci /** 36561847f8eSopenharmony_ci * Select the text color. 36661847f8eSopenharmony_ci * 36761847f8eSopenharmony_ci * @param { ResourceColor } value 36861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 36961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 37061847f8eSopenharmony_ci * @crossplatform 37161847f8eSopenharmony_ci * @atomicservice 37261847f8eSopenharmony_ci * @since 11 37361847f8eSopenharmony_ci */ 37461847f8eSopenharmony_ci selectedColor(value: ResourceColor): AlphabetIndexerAttribute; 37561847f8eSopenharmony_ci 37661847f8eSopenharmony_ci /** 37761847f8eSopenharmony_ci * Font color of the pop-up prompt text. 37861847f8eSopenharmony_ci * 37961847f8eSopenharmony_ci * @param { ResourceColor } value 38061847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 38161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 38261847f8eSopenharmony_ci * @since 7 38361847f8eSopenharmony_ci */ 38461847f8eSopenharmony_ci /** 38561847f8eSopenharmony_ci * Font color of the pop-up prompt text. 38661847f8eSopenharmony_ci * 38761847f8eSopenharmony_ci * @param { ResourceColor } value 38861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 38961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39061847f8eSopenharmony_ci * @crossplatform 39161847f8eSopenharmony_ci * @since 10 39261847f8eSopenharmony_ci */ 39361847f8eSopenharmony_ci /** 39461847f8eSopenharmony_ci * Font color of the pop-up prompt text. 39561847f8eSopenharmony_ci * 39661847f8eSopenharmony_ci * @param { ResourceColor } value 39761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 39861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 39961847f8eSopenharmony_ci * @crossplatform 40061847f8eSopenharmony_ci * @atomicservice 40161847f8eSopenharmony_ci * @since 11 40261847f8eSopenharmony_ci */ 40361847f8eSopenharmony_ci popupColor(value: ResourceColor): AlphabetIndexerAttribute; 40461847f8eSopenharmony_ci 40561847f8eSopenharmony_ci /** 40661847f8eSopenharmony_ci * Select the text background color. 40761847f8eSopenharmony_ci * 40861847f8eSopenharmony_ci * @param { ResourceColor } value 40961847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 41061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41161847f8eSopenharmony_ci * @since 7 41261847f8eSopenharmony_ci */ 41361847f8eSopenharmony_ci /** 41461847f8eSopenharmony_ci * Select the text background color. 41561847f8eSopenharmony_ci * 41661847f8eSopenharmony_ci * @param { ResourceColor } value 41761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 41861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 41961847f8eSopenharmony_ci * @crossplatform 42061847f8eSopenharmony_ci * @since 10 42161847f8eSopenharmony_ci */ 42261847f8eSopenharmony_ci /** 42361847f8eSopenharmony_ci * Select the text background color. 42461847f8eSopenharmony_ci * 42561847f8eSopenharmony_ci * @param { ResourceColor } value 42661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 42761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 42861847f8eSopenharmony_ci * @crossplatform 42961847f8eSopenharmony_ci * @atomicservice 43061847f8eSopenharmony_ci * @since 11 43161847f8eSopenharmony_ci */ 43261847f8eSopenharmony_ci selectedBackgroundColor(value: ResourceColor): AlphabetIndexerAttribute; 43361847f8eSopenharmony_ci 43461847f8eSopenharmony_ci /** 43561847f8eSopenharmony_ci * Background color of the pop-up window index. 43661847f8eSopenharmony_ci * 43761847f8eSopenharmony_ci * @param { ResourceColor } value 43861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 43961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44061847f8eSopenharmony_ci * @since 7 44161847f8eSopenharmony_ci */ 44261847f8eSopenharmony_ci /** 44361847f8eSopenharmony_ci * Background color of the pop-up window index. 44461847f8eSopenharmony_ci * 44561847f8eSopenharmony_ci * @param { ResourceColor } value 44661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 44761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 44861847f8eSopenharmony_ci * @crossplatform 44961847f8eSopenharmony_ci * @since 10 45061847f8eSopenharmony_ci */ 45161847f8eSopenharmony_ci /** 45261847f8eSopenharmony_ci * Background color of the pop-up window index. 45361847f8eSopenharmony_ci * 45461847f8eSopenharmony_ci * @param { ResourceColor } value 45561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 45661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 45761847f8eSopenharmony_ci * @crossplatform 45861847f8eSopenharmony_ci * @atomicservice 45961847f8eSopenharmony_ci * @since 11 46061847f8eSopenharmony_ci */ 46161847f8eSopenharmony_ci popupBackground(value: ResourceColor): AlphabetIndexerAttribute; 46261847f8eSopenharmony_ci 46361847f8eSopenharmony_ci /** 46461847f8eSopenharmony_ci * Set the selected font color of non-alphabetic part of the pop-up window. 46561847f8eSopenharmony_ci * 46661847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of the selected font. 46761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 46861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 46961847f8eSopenharmony_ci * @since 10 47061847f8eSopenharmony_ci */ 47161847f8eSopenharmony_ci /** 47261847f8eSopenharmony_ci * Set the selected font color of non-alphabetic part of the pop-up window. 47361847f8eSopenharmony_ci * 47461847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of the selected font. 47561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 47661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 47761847f8eSopenharmony_ci * @crossplatform 47861847f8eSopenharmony_ci * @since 10 47961847f8eSopenharmony_ci */ 48061847f8eSopenharmony_ci /** 48161847f8eSopenharmony_ci * Set the selected font color of non-alphabetic part of the pop-up window. 48261847f8eSopenharmony_ci * 48361847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of the selected font. 48461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 48561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 48661847f8eSopenharmony_ci * @crossplatform 48761847f8eSopenharmony_ci * @atomicservice 48861847f8eSopenharmony_ci * @since 11 48961847f8eSopenharmony_ci */ 49061847f8eSopenharmony_ci popupSelectedColor(value: ResourceColor): AlphabetIndexerAttribute; 49161847f8eSopenharmony_ci 49261847f8eSopenharmony_ci /** 49361847f8eSopenharmony_ci * Set the unselected font color of non-alphabetic part of the pop-up window. 49461847f8eSopenharmony_ci * 49561847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of the unselected font. 49661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 49761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 49861847f8eSopenharmony_ci * @crossplatform 49961847f8eSopenharmony_ci * @since 10 50061847f8eSopenharmony_ci */ 50161847f8eSopenharmony_ci /** 50261847f8eSopenharmony_ci * Set the unselected font color of non-alphabetic part of the pop-up window. 50361847f8eSopenharmony_ci * 50461847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of the unselected font. 50561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 50661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 50761847f8eSopenharmony_ci * @crossplatform 50861847f8eSopenharmony_ci * @atomicservice 50961847f8eSopenharmony_ci * @since 11 51061847f8eSopenharmony_ci */ 51161847f8eSopenharmony_ci popupUnselectedColor(value: ResourceColor): AlphabetIndexerAttribute; 51261847f8eSopenharmony_ci 51361847f8eSopenharmony_ci /** 51461847f8eSopenharmony_ci * Set the background color of non-alphabetic part of the pop-up window. 51561847f8eSopenharmony_ci * 51661847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of background. 51761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 51861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 51961847f8eSopenharmony_ci * @crossplatform 52061847f8eSopenharmony_ci * @since 10 52161847f8eSopenharmony_ci */ 52261847f8eSopenharmony_ci /** 52361847f8eSopenharmony_ci * Set the background color of non-alphabetic part of the pop-up window. 52461847f8eSopenharmony_ci * 52561847f8eSopenharmony_ci * @param { ResourceColor } value - indicates the color of background. 52661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 52761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 52861847f8eSopenharmony_ci * @crossplatform 52961847f8eSopenharmony_ci * @atomicservice 53061847f8eSopenharmony_ci * @since 11 53161847f8eSopenharmony_ci */ 53261847f8eSopenharmony_ci popupItemBackgroundColor(value: ResourceColor): AlphabetIndexerAttribute; 53361847f8eSopenharmony_ci 53461847f8eSopenharmony_ci /** 53561847f8eSopenharmony_ci * Whether to use pop-up index hints. 53661847f8eSopenharmony_ci * 53761847f8eSopenharmony_ci * @param { boolean } value 53861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 53961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54061847f8eSopenharmony_ci * @since 7 54161847f8eSopenharmony_ci */ 54261847f8eSopenharmony_ci /** 54361847f8eSopenharmony_ci * Whether to use pop-up index hints. 54461847f8eSopenharmony_ci * 54561847f8eSopenharmony_ci * @param { boolean } value 54661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 54761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 54861847f8eSopenharmony_ci * @crossplatform 54961847f8eSopenharmony_ci * @since 10 55061847f8eSopenharmony_ci */ 55161847f8eSopenharmony_ci /** 55261847f8eSopenharmony_ci * Whether to use pop-up index hints. 55361847f8eSopenharmony_ci * 55461847f8eSopenharmony_ci * @param { boolean } value 55561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 55661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 55761847f8eSopenharmony_ci * @crossplatform 55861847f8eSopenharmony_ci * @atomicservice 55961847f8eSopenharmony_ci * @since 11 56061847f8eSopenharmony_ci */ 56161847f8eSopenharmony_ci usingPopup(value: boolean): AlphabetIndexerAttribute; 56261847f8eSopenharmony_ci 56361847f8eSopenharmony_ci /** 56461847f8eSopenharmony_ci * Select the text text style, 56561847f8eSopenharmony_ci * 56661847f8eSopenharmony_ci * @param { Font } value 56761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 56861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 56961847f8eSopenharmony_ci * @since 7 57061847f8eSopenharmony_ci */ 57161847f8eSopenharmony_ci /** 57261847f8eSopenharmony_ci * Select the text text style, 57361847f8eSopenharmony_ci * 57461847f8eSopenharmony_ci * @param { Font } value 57561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 57661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 57761847f8eSopenharmony_ci * @crossplatform 57861847f8eSopenharmony_ci * @since 10 57961847f8eSopenharmony_ci */ 58061847f8eSopenharmony_ci /** 58161847f8eSopenharmony_ci * Select the text text style, 58261847f8eSopenharmony_ci * 58361847f8eSopenharmony_ci * @param { Font } value 58461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 58561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 58661847f8eSopenharmony_ci * @crossplatform 58761847f8eSopenharmony_ci * @atomicservice 58861847f8eSopenharmony_ci * @since 11 58961847f8eSopenharmony_ci */ 59061847f8eSopenharmony_ci selectedFont(value: Font): AlphabetIndexerAttribute; 59161847f8eSopenharmony_ci 59261847f8eSopenharmony_ci /** 59361847f8eSopenharmony_ci * Select the text background color. 59461847f8eSopenharmony_ci * 59561847f8eSopenharmony_ci * @param { Font } value 59661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 59761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 59861847f8eSopenharmony_ci * @since 7 59961847f8eSopenharmony_ci */ 60061847f8eSopenharmony_ci /** 60161847f8eSopenharmony_ci * Select the text background color. 60261847f8eSopenharmony_ci * 60361847f8eSopenharmony_ci * @param { Font } value 60461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 60561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 60661847f8eSopenharmony_ci * @crossplatform 60761847f8eSopenharmony_ci * @since 10 60861847f8eSopenharmony_ci */ 60961847f8eSopenharmony_ci /** 61061847f8eSopenharmony_ci * Select the text background color. 61161847f8eSopenharmony_ci * 61261847f8eSopenharmony_ci * @param { Font } value 61361847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 61461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 61561847f8eSopenharmony_ci * @crossplatform 61661847f8eSopenharmony_ci * @atomicservice 61761847f8eSopenharmony_ci * @since 11 61861847f8eSopenharmony_ci */ 61961847f8eSopenharmony_ci popupFont(value: Font): AlphabetIndexerAttribute; 62061847f8eSopenharmony_ci 62161847f8eSopenharmony_ci /** 62261847f8eSopenharmony_ci * Set the font style of non-alphabetic part of the prompt pop-up window. 62361847f8eSopenharmony_ci * Family and style are not supported currently and will be fixed in future. 62461847f8eSopenharmony_ci * 62561847f8eSopenharmony_ci * @param { Font } value - indicates the style of the font. 62661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 62761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 62861847f8eSopenharmony_ci * @crossplatform 62961847f8eSopenharmony_ci * @since 10 63061847f8eSopenharmony_ci */ 63161847f8eSopenharmony_ci /** 63261847f8eSopenharmony_ci * Set the font style of non-alphabetic part of the prompt pop-up window. 63361847f8eSopenharmony_ci * Family and style are not supported currently and will be fixed in future. 63461847f8eSopenharmony_ci * 63561847f8eSopenharmony_ci * @param { Font } value - indicates the style of the font. 63661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 63761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 63861847f8eSopenharmony_ci * @crossplatform 63961847f8eSopenharmony_ci * @atomicservice 64061847f8eSopenharmony_ci * @since 11 64161847f8eSopenharmony_ci */ 64261847f8eSopenharmony_ci popupItemFont(value: Font): AlphabetIndexerAttribute; 64361847f8eSopenharmony_ci 64461847f8eSopenharmony_ci /** 64561847f8eSopenharmony_ci * Size of the letter area on the letter index bar. The letter area is a square. Set the length of the square side. 64661847f8eSopenharmony_ci * 64761847f8eSopenharmony_ci * @param { string | number } value 64861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 64961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 65061847f8eSopenharmony_ci * @since 7 65161847f8eSopenharmony_ci */ 65261847f8eSopenharmony_ci /** 65361847f8eSopenharmony_ci * Size of the letter area on the letter index bar. The letter area is a square. Set the length of the square side. 65461847f8eSopenharmony_ci * 65561847f8eSopenharmony_ci * @param { string | number } value 65661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 65761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 65861847f8eSopenharmony_ci * @crossplatform 65961847f8eSopenharmony_ci * @since 10 66061847f8eSopenharmony_ci */ 66161847f8eSopenharmony_ci /** 66261847f8eSopenharmony_ci * Size of the letter area on the letter index bar. The letter area is a square. Set the length of the square side. 66361847f8eSopenharmony_ci * 66461847f8eSopenharmony_ci * @param { string | number } value 66561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 66661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 66761847f8eSopenharmony_ci * @crossplatform 66861847f8eSopenharmony_ci * @atomicservice 66961847f8eSopenharmony_ci * @since 11 67061847f8eSopenharmony_ci */ 67161847f8eSopenharmony_ci itemSize(value: string | number): AlphabetIndexerAttribute; 67261847f8eSopenharmony_ci 67361847f8eSopenharmony_ci /** 67461847f8eSopenharmony_ci * Definitions fonts. 67561847f8eSopenharmony_ci * 67661847f8eSopenharmony_ci * @param { Font } value 67761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 67861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 67961847f8eSopenharmony_ci * @since 7 68061847f8eSopenharmony_ci */ 68161847f8eSopenharmony_ci /** 68261847f8eSopenharmony_ci * Definitions fonts. 68361847f8eSopenharmony_ci * 68461847f8eSopenharmony_ci * @param { Font } value 68561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 68661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 68761847f8eSopenharmony_ci * @crossplatform 68861847f8eSopenharmony_ci * @since 10 68961847f8eSopenharmony_ci */ 69061847f8eSopenharmony_ci /** 69161847f8eSopenharmony_ci * Definitions fonts. 69261847f8eSopenharmony_ci * 69361847f8eSopenharmony_ci * @param { Font } value 69461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 69561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 69661847f8eSopenharmony_ci * @crossplatform 69761847f8eSopenharmony_ci * @atomicservice 69861847f8eSopenharmony_ci * @since 11 69961847f8eSopenharmony_ci */ 70061847f8eSopenharmony_ci font(value: Font): AlphabetIndexerAttribute; 70161847f8eSopenharmony_ci 70261847f8eSopenharmony_ci /** 70361847f8eSopenharmony_ci * Alphabet index bar alignment style. The left and right alignment styles are supported, 70461847f8eSopenharmony_ci * which affects the pop-up position of the pop-up window. 70561847f8eSopenharmony_ci * 70661847f8eSopenharmony_ci * @param { IndexerAlign } value - indicates the alignment style of Alphabet index. 70761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 70861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 70961847f8eSopenharmony_ci * @since 7 71061847f8eSopenharmony_ci */ 71161847f8eSopenharmony_ci /** 71261847f8eSopenharmony_ci * Alphabet index bar alignment style. The left and right alignment styles are supported, 71361847f8eSopenharmony_ci * which affects the pop-up position of the pop-up window. 71461847f8eSopenharmony_ci * 71561847f8eSopenharmony_ci * @param { IndexerAlign } value - indicates the alignment style of Alphabet index. 71661847f8eSopenharmony_ci * @param { Length } [offset] - indicates the horizontal space between pop-up window and indexer bar. 71761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 71861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 71961847f8eSopenharmony_ci * @crossplatform 72061847f8eSopenharmony_ci * @since 10 72161847f8eSopenharmony_ci */ 72261847f8eSopenharmony_ci /** 72361847f8eSopenharmony_ci * Alphabet index bar alignment style. The left and right alignment styles are supported, 72461847f8eSopenharmony_ci * which affects the pop-up position of the pop-up window. 72561847f8eSopenharmony_ci * 72661847f8eSopenharmony_ci * @param { IndexerAlign } value - indicates the alignment style of Alphabet index. 72761847f8eSopenharmony_ci * @param { Length } [offset] - indicates the horizontal space between pop-up window and indexer bar. 72861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 72961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 73061847f8eSopenharmony_ci * @crossplatform 73161847f8eSopenharmony_ci * @atomicservice 73261847f8eSopenharmony_ci * @since 11 73361847f8eSopenharmony_ci */ 73461847f8eSopenharmony_ci alignStyle(value: IndexerAlign, offset?: Length): AlphabetIndexerAttribute; 73561847f8eSopenharmony_ci 73661847f8eSopenharmony_ci /** 73761847f8eSopenharmony_ci * Index bar selection callback. 73861847f8eSopenharmony_ci * 73961847f8eSopenharmony_ci * @param { function } callback 74061847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 74161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 74261847f8eSopenharmony_ci * @since 8 74361847f8eSopenharmony_ci */ 74461847f8eSopenharmony_ci /** 74561847f8eSopenharmony_ci * Index bar selection callback. 74661847f8eSopenharmony_ci * 74761847f8eSopenharmony_ci * @param { function } callback 74861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 74961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 75061847f8eSopenharmony_ci * @crossplatform 75161847f8eSopenharmony_ci * @since 10 75261847f8eSopenharmony_ci */ 75361847f8eSopenharmony_ci /** 75461847f8eSopenharmony_ci * Index bar selection callback. 75561847f8eSopenharmony_ci * 75661847f8eSopenharmony_ci * @param { function } callback 75761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 75861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 75961847f8eSopenharmony_ci * @crossplatform 76061847f8eSopenharmony_ci * @atomicservice 76161847f8eSopenharmony_ci * @since 11 76261847f8eSopenharmony_ci */ 76361847f8eSopenharmony_ci /** 76461847f8eSopenharmony_ci * Index bar selection callback. 76561847f8eSopenharmony_ci * 76661847f8eSopenharmony_ci * @param { OnAlphabetIndexerSelectCallback } callback 76761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 76861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 76961847f8eSopenharmony_ci * @crossplatform 77061847f8eSopenharmony_ci * @atomicservice 77161847f8eSopenharmony_ci * @since 13 77261847f8eSopenharmony_ci */ 77361847f8eSopenharmony_ci onSelect(callback: OnAlphabetIndexerSelectCallback): AlphabetIndexerAttribute; 77461847f8eSopenharmony_ci 77561847f8eSopenharmony_ci /** 77661847f8eSopenharmony_ci * Index bar selection callback and return the strings which display on pop-up. 77761847f8eSopenharmony_ci * 77861847f8eSopenharmony_ci * @param { function } callback 77961847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 78061847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 78161847f8eSopenharmony_ci * @since 8 78261847f8eSopenharmony_ci */ 78361847f8eSopenharmony_ci /** 78461847f8eSopenharmony_ci * Index bar selection callback and return the strings which display on pop-up. 78561847f8eSopenharmony_ci * 78661847f8eSopenharmony_ci * @param { function } callback 78761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 78861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 78961847f8eSopenharmony_ci * @crossplatform 79061847f8eSopenharmony_ci * @since 10 79161847f8eSopenharmony_ci */ 79261847f8eSopenharmony_ci /** 79361847f8eSopenharmony_ci * Index bar selection callback and return the strings which display on pop-up. 79461847f8eSopenharmony_ci * 79561847f8eSopenharmony_ci * @param { function } callback 79661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 79761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 79861847f8eSopenharmony_ci * @crossplatform 79961847f8eSopenharmony_ci * @atomicservice 80061847f8eSopenharmony_ci * @since 11 80161847f8eSopenharmony_ci */ 80261847f8eSopenharmony_ci /** 80361847f8eSopenharmony_ci * Index bar selection callback and return the strings which display on pop-up. 80461847f8eSopenharmony_ci * 80561847f8eSopenharmony_ci * @param { OnAlphabetIndexerRequestPopupDataCallback } callback 80661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 80761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 80861847f8eSopenharmony_ci * @crossplatform 80961847f8eSopenharmony_ci * @atomicservice 81061847f8eSopenharmony_ci * @since 13 81161847f8eSopenharmony_ci */ 81261847f8eSopenharmony_ci onRequestPopupData(callback: OnAlphabetIndexerRequestPopupDataCallback): AlphabetIndexerAttribute; 81361847f8eSopenharmony_ci 81461847f8eSopenharmony_ci /** 81561847f8eSopenharmony_ci * Pop-up selection callback. 81661847f8eSopenharmony_ci * 81761847f8eSopenharmony_ci * @param { function } callback 81861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 81961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 82061847f8eSopenharmony_ci * @since 8 82161847f8eSopenharmony_ci */ 82261847f8eSopenharmony_ci /** 82361847f8eSopenharmony_ci * Pop-up selection callback. 82461847f8eSopenharmony_ci * 82561847f8eSopenharmony_ci * @param { function } callback 82661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 82761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 82861847f8eSopenharmony_ci * @crossplatform 82961847f8eSopenharmony_ci * @since 10 83061847f8eSopenharmony_ci */ 83161847f8eSopenharmony_ci /** 83261847f8eSopenharmony_ci * Pop-up selection callback. 83361847f8eSopenharmony_ci * 83461847f8eSopenharmony_ci * @param { function } callback 83561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 83661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 83761847f8eSopenharmony_ci * @crossplatform 83861847f8eSopenharmony_ci * @atomicservice 83961847f8eSopenharmony_ci * @since 11 84061847f8eSopenharmony_ci */ 84161847f8eSopenharmony_ci /** 84261847f8eSopenharmony_ci * Pop-up selection callback. 84361847f8eSopenharmony_ci * 84461847f8eSopenharmony_ci * @param { OnAlphabetIndexerPopupSelectCallback } callback 84561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 84661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 84761847f8eSopenharmony_ci * @crossplatform 84861847f8eSopenharmony_ci * @atomicservice 84961847f8eSopenharmony_ci * @since 13 85061847f8eSopenharmony_ci */ 85161847f8eSopenharmony_ci onPopupSelect(callback: OnAlphabetIndexerPopupSelectCallback): AlphabetIndexerAttribute; 85261847f8eSopenharmony_ci 85361847f8eSopenharmony_ci /** 85461847f8eSopenharmony_ci * Sets the selected index. 85561847f8eSopenharmony_ci * 85661847f8eSopenharmony_ci * @param { number } index 85761847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 85861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 85961847f8eSopenharmony_ci * @since 8 86061847f8eSopenharmony_ci */ 86161847f8eSopenharmony_ci /** 86261847f8eSopenharmony_ci * Sets the selected index. 86361847f8eSopenharmony_ci * 86461847f8eSopenharmony_ci * @param { number } index 86561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 86661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 86761847f8eSopenharmony_ci * @crossplatform 86861847f8eSopenharmony_ci * @since 10 86961847f8eSopenharmony_ci */ 87061847f8eSopenharmony_ci /** 87161847f8eSopenharmony_ci * Sets the selected index. 87261847f8eSopenharmony_ci * 87361847f8eSopenharmony_ci * @param { number } index 87461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 87561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 87661847f8eSopenharmony_ci * @crossplatform 87761847f8eSopenharmony_ci * @atomicservice 87861847f8eSopenharmony_ci * @since 11 87961847f8eSopenharmony_ci */ 88061847f8eSopenharmony_ci selected(index: number): AlphabetIndexerAttribute; 88161847f8eSopenharmony_ci 88261847f8eSopenharmony_ci /** 88361847f8eSopenharmony_ci * Position of the pop-up windows, relative to the midpoint of the top border of the indexer bar. 88461847f8eSopenharmony_ci * 88561847f8eSopenharmony_ci * @param { Position } value 88661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 88761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 88861847f8eSopenharmony_ci * @since 8 88961847f8eSopenharmony_ci */ 89061847f8eSopenharmony_ci /** 89161847f8eSopenharmony_ci * Position of the pop-up windows, relative to the midpoint of the top border of the indexer bar. 89261847f8eSopenharmony_ci * 89361847f8eSopenharmony_ci * @param { Position } value 89461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 89561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 89661847f8eSopenharmony_ci * @crossplatform 89761847f8eSopenharmony_ci * @since 10 89861847f8eSopenharmony_ci */ 89961847f8eSopenharmony_ci /** 90061847f8eSopenharmony_ci * Position of the pop-up windows, relative to the midpoint of the top border of the indexer bar. 90161847f8eSopenharmony_ci * 90261847f8eSopenharmony_ci * @param { Position } value 90361847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 90461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 90561847f8eSopenharmony_ci * @crossplatform 90661847f8eSopenharmony_ci * @atomicservice 90761847f8eSopenharmony_ci * @since 11 90861847f8eSopenharmony_ci */ 90961847f8eSopenharmony_ci popupPosition(value: Position): AlphabetIndexerAttribute; 91061847f8eSopenharmony_ci 91161847f8eSopenharmony_ci /** 91261847f8eSopenharmony_ci * Automatically collapses the characters when the indexer bar not high enough to display all characters. 91361847f8eSopenharmony_ci * 91461847f8eSopenharmony_ci * @param { boolean } value - A boolean value determines whether auto collapses is enabled for indexer bar. 91561847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 91661847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 91761847f8eSopenharmony_ci * @crossplatform 91861847f8eSopenharmony_ci * @since 11 91961847f8eSopenharmony_ci */ 92061847f8eSopenharmony_ci /** 92161847f8eSopenharmony_ci * Automatically collapses the characters when the indexer bar not high enough to display all characters. 92261847f8eSopenharmony_ci * 92361847f8eSopenharmony_ci * @param { boolean } value - A boolean value determines whether auto collapses is enabled for indexer bar. 92461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 92561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 92661847f8eSopenharmony_ci * @crossplatform 92761847f8eSopenharmony_ci * @atomicservice 92861847f8eSopenharmony_ci * @since 12 92961847f8eSopenharmony_ci */ 93061847f8eSopenharmony_ci autoCollapse(value: boolean): AlphabetIndexerAttribute; 93161847f8eSopenharmony_ci 93261847f8eSopenharmony_ci /** 93361847f8eSopenharmony_ci * Set the radius of the item of the pop-up window. 93461847f8eSopenharmony_ci * 93561847f8eSopenharmony_ci * @param { number } value 93661847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 93761847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 93861847f8eSopenharmony_ci * @crossplatform 93961847f8eSopenharmony_ci * @atomicservice 94061847f8eSopenharmony_ci * @since 12 94161847f8eSopenharmony_ci */ 94261847f8eSopenharmony_ci popupItemBorderRadius(value: number): AlphabetIndexerAttribute; 94361847f8eSopenharmony_ci 94461847f8eSopenharmony_ci /** 94561847f8eSopenharmony_ci * Set the radius of the item of the indexer. 94661847f8eSopenharmony_ci * 94761847f8eSopenharmony_ci * @param { number } value 94861847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 94961847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 95061847f8eSopenharmony_ci * @crossplatform 95161847f8eSopenharmony_ci * @atomicservice 95261847f8eSopenharmony_ci * @since 12 95361847f8eSopenharmony_ci */ 95461847f8eSopenharmony_ci itemBorderRadius(value: number): AlphabetIndexerAttribute; 95561847f8eSopenharmony_ci 95661847f8eSopenharmony_ci /** 95761847f8eSopenharmony_ci * Set the background blurStyle of title of the pop-up window. 95861847f8eSopenharmony_ci * 95961847f8eSopenharmony_ci * @param { BlurStyle } value 96061847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 96161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 96261847f8eSopenharmony_ci * @crossplatform 96361847f8eSopenharmony_ci * @atomicservice 96461847f8eSopenharmony_ci * @since 12 96561847f8eSopenharmony_ci */ 96661847f8eSopenharmony_ci popupBackgroundBlurStyle(value: BlurStyle): AlphabetIndexerAttribute; 96761847f8eSopenharmony_ci 96861847f8eSopenharmony_ci /** 96961847f8eSopenharmony_ci * Set the background color of title of the pop-up window. 97061847f8eSopenharmony_ci * 97161847f8eSopenharmony_ci * @param { ResourceColor } value 97261847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 97361847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 97461847f8eSopenharmony_ci * @crossplatform 97561847f8eSopenharmony_ci * @atomicservice 97661847f8eSopenharmony_ci * @since 12 97761847f8eSopenharmony_ci */ 97861847f8eSopenharmony_ci popupTitleBackground(value: ResourceColor): AlphabetIndexerAttribute; 97961847f8eSopenharmony_ci 98061847f8eSopenharmony_ci /** 98161847f8eSopenharmony_ci * Enable or disable haptic feedback. 98261847f8eSopenharmony_ci * 98361847f8eSopenharmony_ci * @param { boolean } value - Default value is true, set false to disable haptic feedback. 98461847f8eSopenharmony_ci * @returns { AlphabetIndexerAttribute } 98561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 98661847f8eSopenharmony_ci * @atomicservice 98761847f8eSopenharmony_ci * @since 12 98861847f8eSopenharmony_ci */ 98961847f8eSopenharmony_ci enableHapticFeedback(value: boolean): AlphabetIndexerAttribute; 99061847f8eSopenharmony_ci} 99161847f8eSopenharmony_ci 99261847f8eSopenharmony_ci/** 99361847f8eSopenharmony_ci * Defines AlphabetIndexer Component. 99461847f8eSopenharmony_ci * 99561847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 99661847f8eSopenharmony_ci * @since 7 99761847f8eSopenharmony_ci */ 99861847f8eSopenharmony_ci/** 99961847f8eSopenharmony_ci * Defines AlphabetIndexer Component. 100061847f8eSopenharmony_ci * 100161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 100261847f8eSopenharmony_ci * @crossplatform 100361847f8eSopenharmony_ci * @since 10 100461847f8eSopenharmony_ci */ 100561847f8eSopenharmony_ci/** 100661847f8eSopenharmony_ci * Defines AlphabetIndexer Component. 100761847f8eSopenharmony_ci * 100861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 100961847f8eSopenharmony_ci * @crossplatform 101061847f8eSopenharmony_ci * @atomicservice 101161847f8eSopenharmony_ci * @since 11 101261847f8eSopenharmony_ci */ 101361847f8eSopenharmony_cideclare const AlphabetIndexer: AlphabetIndexerInterface; 101461847f8eSopenharmony_ci 101561847f8eSopenharmony_ci/** 101661847f8eSopenharmony_ci * Defines AlphabetIndexer Component instance. 101761847f8eSopenharmony_ci * 101861847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 101961847f8eSopenharmony_ci * @since 7 102061847f8eSopenharmony_ci */ 102161847f8eSopenharmony_ci/** 102261847f8eSopenharmony_ci * Defines AlphabetIndexer Component instance. 102361847f8eSopenharmony_ci * 102461847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 102561847f8eSopenharmony_ci * @crossplatform 102661847f8eSopenharmony_ci * @since 10 102761847f8eSopenharmony_ci */ 102861847f8eSopenharmony_ci/** 102961847f8eSopenharmony_ci * Defines AlphabetIndexer Component instance. 103061847f8eSopenharmony_ci * 103161847f8eSopenharmony_ci * @syscap SystemCapability.ArkUI.ArkUI.Full 103261847f8eSopenharmony_ci * @crossplatform 103361847f8eSopenharmony_ci * @atomicservice 103461847f8eSopenharmony_ci * @since 11 103561847f8eSopenharmony_ci */ 103661847f8eSopenharmony_cideclare const AlphabetIndexerInstance: AlphabetIndexerAttribute; 1037