• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2* Copyright (C) 2025 Huawei Device Co., Ltd.
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15/**
16 * @file This section describes the interfaces used by AtomicServiceSearch
17 * @kit ArkUI
18 */
19import { OperationOption } from '@ohos.arkui.advanced.SubHeader';
20/**
21 * Callback when the Select option is clicked.
22 *
23 * @typedef { function } OnSelectCallback
24 * @param { number } index - Indicates the index of the selected item.
25 * @param { string } [selectValue] - Indicates the value of the selected item.
26 * @syscap SystemCapability.ArkUI.ArkUI.Full
27 * @atomicservice
28 * @since 18
29 */
30declare type OnSelectCallback = (index: number, selectValue: string) => void;
31/**
32 * Callback when text is pasted into the search box.
33 *
34 * @typedef { function } OnPasteCallback
35 * @param { string } pasteValue - Indicates the text content to be pasted.
36 * @param { PasteEvent } event - Indicates a user-defined paste event.
37 * @syscap SystemCapability.ArkUI.ArkUI.Full
38 * @atomicservice
39 * @since 18
40 */
41declare type OnPasteCallback = (pasteValue: string, event: PasteEvent) => void;
42/**
43 * Callback when the position of the cursor entered in the search box changes.
44 *
45 * @typedef { function } OnTextSelectionChangeCallback
46 * @param { number } selectionStart - Indicates the start position of the text selection area.
47 * @param { number } selectionEnd - Indicates end position of the text selection area.
48 * @syscap SystemCapability.ArkUI.ArkUI.Full
49 * @atomicservice
50 * @since 18
51 */
52declare type OnTextSelectionChangeCallback = (selectionStart: number, selectionEnd: number) => void;
53/**
54 * Callback when the content in the search box scrolls.
55 *
56 * @typedef { function } OnContentScrollCallback
57 * @param { number } totalOffsetX - Indicates horizontal coordinate offset of the text in the content area, in px.
58 * @param { number } totalOffsetY - Indicates the vertical coordinate offset of the text in the content area, in px.
59 * @syscap SystemCapability.ArkUI.ArkUI.Full
60 * @atomicservice
61 * @since 18
62 */
63declare type OnContentScrollCallback = (totalOffsetX: number, totalOffsetY: number) => void;
64/**
65 * Defines the InputFilter parameters.
66 *
67 * @typedef InputFilterParams
68 * @syscap SystemCapability.ArkUI.ArkUI.Full
69 * @atomicservice
70 * @since 18
71 */
72export interface InputFilterParams {
73  /**
74   * Regular expression.
75   *
76   * @type { ResourceStr }
77   * @syscap SystemCapability.ArkUI.ArkUI.Full
78   * @atomicservice
79   * @since 18
80   */
81  inputFilterValue: ResourceStr;
82  /**
83   * If the regular expression matching fails, the filtered content is returned.
84   *
85   * @type { ?Callback<string> }
86   * @syscap SystemCapability.ArkUI.ArkUI.Full
87   * @atomicservice
88   * @since 18
89   */
90  error?: Callback<string>;
91}
92/**
93 * Defines the SearchButton parameters.
94 *
95 * @typedef SearchButtonParams
96 * @syscap SystemCapability.ArkUI.ArkUI.Full
97 * @atomicservice
98 * @since 18
99 */
100export interface SearchButtonParams {
101  /**
102   * Indicates the text of the search button.
103   *
104   * @type { ResourceStr }
105   * @syscap SystemCapability.ArkUI.ArkUI.Full
106   * @atomicservice
107   * @since 18
108   */
109  searchButtonValue: ResourceStr;
110  /**
111   * Indicates the fontSize and fontColor of the search button.
112   *
113   * @type { ?SearchButtonOptions }
114   * @syscap SystemCapability.ArkUI.ArkUI.Full
115   * @atomicservice
116   * @since 18
117   */
118  options?: SearchButtonOptions;
119}
120/**
121 * Defines the MenuAlign parameters.
122 *
123 * @typedef MenuAlignParams
124 * @syscap SystemCapability.ArkUI.ArkUI.Full
125 * @atomicservice
126 * @since 18
127 */
128export interface MenuAlignParams {
129  /**
130   * Indicates the fontSize and fontColor of the search button.
131   *
132   * @type { MenuAlignType }
133   * @syscap SystemCapability.ArkUI.ArkUI.Full
134   * @atomicservice
135   * @since 18
136   */
137  alignType: MenuAlignType;
138  /**
139   * Offset of the drop-down menu relative to the drop-down button.
140   * after alignment based on the alignment type.
141   *
142   * @type { ?Offset }
143   * @syscap SystemCapability.ArkUI.ArkUI.Full
144   * @atomicservice
145   * @since 18
146   */
147  offset?: Offset;
148}
149/**
150 * Events and styles supported by the search area.
151 *
152 * @typedef SearchParams
153 * @syscap SystemCapability.ArkUI.ArkUI.Full
154 * @atomicservice
155 * @since 18
156 */
157export interface SearchParams {
158  /**
159   * Used to identify a unique search component.
160   *
161   * @type { ?ResourceStr }
162   * @syscap SystemCapability.ArkUI.ArkUI.Full
163   * @atomicservice
164   * @since 18
165   */
166  searchKey?: ResourceStr;
167  /**
168   * Indicates the background color of a component.
169   *
170   * @type { ?ResourceColor }
171   * @syscap SystemCapability.ArkUI.ArkUI.Full
172   * @atomicservice
173   * @since 18
174   */
175  componentBackgroundColor?: ResourceColor;
176  /**
177   * Background color when pressed.
178   *
179   * @type { ?ResourceColor }
180   * @syscap SystemCapability.ArkUI.ArkUI.Full
181   * @atomicservice
182   * @since 18
183   */
184  pressedBackgroundColor?: ResourceColor;
185  /**
186   * Set the search button text, fontSize and fontColor.
187   *
188   * @type { ?SearchButtonParams }
189   * @syscap SystemCapability.ArkUI.ArkUI.Full
190   * @atomicservice
191   * @since 18
192   */
193  searchButton?: SearchButtonParams;
194  /**
195   * Set the place hold text color.
196   *
197   * @type { ?ResourceColor }
198   * @syscap SystemCapability.ArkUI.ArkUI.Full
199   * @atomicservice
200   * @since 18
201   */
202  placeholderColor?: ResourceColor;
203  /**
204   * Set the font used for place holder text.
205   *
206   * @type { ?Font }
207   * @syscap SystemCapability.ArkUI.ArkUI.Full
208   * @atomicservice
209   * @since 18
210   */
211  placeholderFont?: Font;
212  /**
213   * Set enter key type of soft keyboard.
214   *
215   * @type { ?Font }
216   * @syscap SystemCapability.ArkUI.ArkUI.Full
217   * @atomicservice
218   * @since 18
219   */
220  textFont?: Font;
221  /**
222   * Called when the text align is set.
223   *
224   * @type { ?TextAlign }
225   * @syscap SystemCapability.ArkUI.ArkUI.Full
226   * @atomicservice
227   * @since 18
228   */
229  textAlign?: TextAlign;
230  /**
231   * Called when the copy option is set.
232   *
233   * @type { ?CopyOptions }
234   * @syscap SystemCapability.ArkUI.ArkUI.Full
235   * @atomicservice
236   * @since 18
237   */
238  copyOptions?: CopyOptions;
239  /**
240   * Set the search icon style.
241   *
242   * @type { ?(IconOptions | SymbolGlyphModifier) }
243   * @syscap SystemCapability.ArkUI.ArkUI.Full
244   * @atomicservice
245   * @since 18
246   */
247  searchIcon?: IconOptions | SymbolGlyphModifier;
248  /**
249   * Set the cancel button style.
250   *
251   * @type { ?IconOptions }
252   * @syscap SystemCapability.ArkUI.ArkUI.Full
253   * @atomicservice
254   * @since 18
255   */
256  cancelIcon?: IconOptions;
257  /**
258   * Set the SearchButton fontColor.
259   *
260   * @type { ?ResourceColor }
261   * @syscap SystemCapability.ArkUI.ArkUI.Full
262   * @atomicservice
263   * @since 18
264   */
265  fontColor?: ResourceColor;
266  /**
267   * Set the cursor style.
268   *
269   * @type { ?CaretStyle }
270   * @syscap SystemCapability.ArkUI.ArkUI.Full
271   * @atomicservice
272   * @since 18
273   */
274  caretStyle?: CaretStyle;
275  /**
276   * Sets whether request keyboard or not when on focus.
277   *
278   * @type { ?boolean }
279   * @syscap SystemCapability.ArkUI.ArkUI.Full
280   * @atomicservice
281   * @since 18
282   */
283  enableKeyboardOnFocus?: boolean;
284  /**
285   * Controls whether the selection menu pops up.
286   *
287   * @type { ?boolean }
288   * @syscap SystemCapability.ArkUI.ArkUI.Full
289   * @atomicservice
290   * @since 18
291   */
292  hideSelectionMenu?: boolean;
293  /**
294   * Called when the search type is set.
295   *
296   * @type { ?SearchType }
297   * @syscap SystemCapability.ArkUI.ArkUI.Full
298   * @atomicservice
299   * @since 18
300   */
301  type?: SearchType;
302  /**
303   * Called when the input of maximum text length is set.
304   *
305   * @type { ?number }
306   * @syscap SystemCapability.ArkUI.ArkUI.Full
307   * @atomicservice
308   * @since 18
309   */
310  maxLength?: number;
311  /**
312   * Set enter key type of soft keyboard.
313   *
314   * @type { ?EnterKeyType }
315   * @syscap SystemCapability.ArkUI.ArkUI.Full
316   * @atomicservice
317   * @since 18
318   */
319  enterKeyType?: EnterKeyType;
320  /**
321   * Called when the text decoration of the text is set.
322   *
323   * @type { ?TextDecorationOptions }
324   * @syscap SystemCapability.ArkUI.ArkUI.Full
325   * @atomicservice
326   * @since 18
327   */
328  decoration?: TextDecorationOptions;
329  /**
330   * Called when the distance between text fonts is set.
331   *
332   * @type { ?(number | string | Resource) }
333   * @syscap SystemCapability.ArkUI.ArkUI.Full
334   * @atomicservice
335   * @since 18
336   */
337  letterSpacing?: number | string | Resource;
338  /**
339   * Set font feature.
340   * normal | <feature-tag-value>,
341   * where <feature-tag-value> = <string> [ <integer> | on | off ], like: "ss01" 0
342   * the values of <feature-tag-value> reference to doc of search component
343   * number of <feature-tag-value> can be single or multiple, and separated by comma ','.
344   *
345   * @type { ?ResourceStr }
346   * @syscap SystemCapability.ArkUI.ArkUI.Full
347   * @atomicservice
348   * @since 18
349   */
350  fontFeature?: ResourceStr;
351  /**
352   * Define the text selected background color of the text input.
353   *
354   * @type { ?ResourceColor }
355   * @syscap SystemCapability.ArkUI.ArkUI.Full
356   * @atomicservice
357   * @since 18
358   */
359  selectedBackgroundColor?: ResourceColor;
360  /**
361   * Called when the inputFilter of text is set.
362   *
363   * @type { ?InputFilterParams }
364   * @syscap SystemCapability.ArkUI.ArkUI.Full
365   * @atomicservice
366   * @since 18
367   */
368  inputFilter?: InputFilterParams;
369  /**
370   * Specify the indentation of the first line in a text-block.
371   *
372   * @type { ?Dimension }
373   * @syscap SystemCapability.ArkUI.ArkUI.Full
374   * @atomicservice
375   * @since 18
376   */
377  textIndent?: Dimension;
378  /**
379   * Called when the minimum font size of the font is set.
380   *
381   * @type { ?(number | string | Resource) }
382   * @syscap SystemCapability.ArkUI.ArkUI.Full
383   * @atomicservice
384   * @since 18
385   */
386  minFontSize?: number | string | Resource;
387  /**
388   * Called when the maximum font size of the font is set.
389   *
390   * @type { ?(number | string | Resource) }
391   * @syscap SystemCapability.ArkUI.ArkUI.Full
392   * @atomicservice
393   * @since 18
394   */
395  maxFontSize?: number | string | Resource;
396  /**
397   * Set the custom text menu.
398   *
399   * @type { ?EditMenuOptions }
400   * @syscap SystemCapability.ArkUI.ArkUI.Full
401   * @atomicservice
402   * @since 18
403   */
404  editMenuOptions?: EditMenuOptions;
405  /**
406   * Define the preview text mode of the text input.
407   *
408   * @type { ?boolean }
409   * @syscap SystemCapability.ArkUI.ArkUI.Full
410   * @atomicservice
411   * @since 18
412   */
413  enablePreviewText?: boolean;
414  /**
415   * Enable or disable haptic feedback.
416   *
417   * @type { ?boolean }
418   * @syscap SystemCapability.ArkUI.ArkUI.Full
419   * @atomicservice
420   * @since 18
421   */
422  enableHapticFeedback?: boolean;
423  /**
424   * Call the function when clicked the search button.
425   *
426   * @type { ?(Callback<string> | SearchSubmitCallback) }
427   * @syscap SystemCapability.ArkUI.ArkUI.Full
428   * @atomicservice
429   * @since 18
430   */
431  onSubmit?: Callback<string> | SearchSubmitCallback;
432  /**
433   * Call the function when editing the input text.
434   *
435   * @type { ?EditableTextOnChangeCallback }
436   * @syscap SystemCapability.ArkUI.ArkUI.Full
437   * @atomicservice
438   * @since 18
439   */
440  onChange?: EditableTextOnChangeCallback;
441  /**
442   * Called when using the Clipboard menu.
443   *
444   * @type { ?Callback<string> }
445   * @syscap SystemCapability.ArkUI.ArkUI.Full
446   * @atomicservice
447   * @since 18
448   */
449  onCopy?: Callback<string>;
450  /**
451   * Called when using the Clipboard menu.
452   *
453   * @type { ?Callback<string> }
454   * @syscap SystemCapability.ArkUI.ArkUI.Full
455   * @atomicservice
456   * @since 18
457   */
458  onCut?: Callback<string>;
459  /**
460   * Called when using the Clipboard menu.
461   *
462   * @type { ?OnPasteCallback }
463   * @syscap SystemCapability.ArkUI.ArkUI.Full
464   * @atomicservice
465   * @since 18
466   */
467  onPaste?: OnPasteCallback;
468  /**
469   * Called when the text selection changes.
470   *
471   * @type { ?OnTextSelectionChangeCallback }
472   * @syscap SystemCapability.ArkUI.ArkUI.Full
473   * @atomicservice
474   * @since 18
475   */
476  onTextSelectionChange?: OnTextSelectionChangeCallback;
477  /**
478   * Called when the content scrolls.
479   *
480   * @type { ?OnContentScrollCallback }
481   * @syscap SystemCapability.ArkUI.ArkUI.Full
482   * @atomicservice
483   * @since 18
484   */
485  onContentScroll?: OnContentScrollCallback;
486  /**
487   * Called when judging whether the text editing change finished.
488   *
489   * @type { ?Callback<boolean> }
490   * @syscap SystemCapability.ArkUI.ArkUI.Full
491   * @atomicservice
492   * @since 18
493   */
494  onEditChange?: Callback<boolean>;
495  /**
496   * Get text value information when about to input.
497   *
498   * @type { ?Callback<InsertValue, boolean> }
499   * @syscap SystemCapability.ArkUI.ArkUI.Full
500   * @atomicservice
501   * @since 18
502   */
503  onWillInsert?: Callback<InsertValue, boolean>;
504  /**
505   * Get text value information when completed input.
506   *
507   * @type { ?Callback<InsertValue> }
508   * @syscap SystemCapability.ArkUI.ArkUI.Full
509   * @atomicservice
510   * @since 18
511   */
512  onDidInsert?: Callback<InsertValue>;
513  /**
514   * Get text value information when about to delete.
515   *
516   * @type { ?Callback<DeleteValue, boolean> }
517   * @syscap SystemCapability.ArkUI.ArkUI.Full
518   * @atomicservice
519   * @since 18
520   */
521  onWillDelete?: Callback<DeleteValue, boolean>;
522  /**
523   * Get text value information when the deletion has been completed.
524   *
525   * @type { ?Callback<DeleteValue> }
526   * @syscap SystemCapability.ArkUI.ArkUI.Full
527   * @atomicservice
528   * @since 18
529   */
530  onDidDelete?: Callback<DeleteValue>;
531}
532/**
533 * Contents, events, and styles of the select area.
534 *
535 * @typedef SelectParams
536 * @syscap SystemCapability.ArkUI.ArkUI.Full
537 * @atomicservice
538 * @since 18
539 */
540export interface SelectParams {
541  /**
542   * SubOption array of the select.
543   *
544   * @type { ?Array<SelectOption> }
545   * @syscap SystemCapability.ArkUI.ArkUI.Full
546   * @atomicservice
547   * @since 18
548   */
549  options?: Array<SelectOption>;
550  /**
551   * The default selected index.
552   *
553   * @type { ?number }.
554   * @syscap SystemCapability.ArkUI.ArkUI.Full
555   * @atomicservice
556   * @since 18
557   */
558  selected?: number;
559  /**
560   * The default text value.
561   *
562   * @type { ?ResourceStr }.
563   * @syscap SystemCapability.ArkUI.ArkUI.Full
564   * @atomicservice
565   * @since 18
566   */
567  selectValue?: ResourceStr;
568  /**
569   * Callback when the select is selected.
570   *
571   * @type { ?OnSelectCallback }.
572   * @syscap SystemCapability.ArkUI.ArkUI.Full
573   * @atomicservice
574   * @since 18
575   */
576  onSelect?: OnSelectCallback;
577  /**
578   * Register a ContentModifier for each menu item.
579   *
580   * @type { ?ContentModifier<MenuItemConfiguration> }.
581   * @syscap SystemCapability.ArkUI.ArkUI.Full
582   * @atomicservice
583   * @since 18
584   */
585  menuItemContentModifier?: ContentModifier<MenuItemConfiguration>;
586  /**
587   * Sets the divider of select.
588   *
589   * @type { ?(Optional<DividerOptions> | null) }.
590   * @syscap SystemCapability.ArkUI.ArkUI.Full
591   * @atomicservice
592   * @since 18
593   */
594  divider?: Optional<DividerOptions> | null;
595  /**
596   * Sets the text properties of the select button itself.
597   *
598   * @type { ?Font }.
599   * @syscap SystemCapability.ArkUI.ArkUI.Full
600   * @atomicservice
601   * @since 18
602   */
603  font?: Font;
604  /**
605   * Sets the text color of the select button itself.
606   *
607   * @type { ?ResourceColor }.
608   * @syscap SystemCapability.ArkUI.ArkUI.Full
609   * @atomicservice
610   * @since 18
611   */
612  fontColor?: ResourceColor;
613  /**
614   * Sets the background color of the selected items in the select.
615   *
616   * @type { ?ResourceColor }.
617   * @syscap SystemCapability.ArkUI.ArkUI.Full
618   * @atomicservice
619   * @since 18
620   */
621  selectedOptionBgColor?: ResourceColor;
622  /**
623   * Sets the text style of the selected items in the select.
624   *
625   * @type { ?Font }.
626   * @syscap SystemCapability.ArkUI.ArkUI.Full
627   * @atomicservice
628   * @since 18
629   */
630  selectedOptionFont?: Font;
631  /**
632   * Sets the text color of the selected item in the select.
633   *
634   * @type { ?ResourceColor }.
635   * @syscap SystemCapability.ArkUI.ArkUI.Full
636   * @atomicservice
637   * @since 18
638   */
639  selectedOptionFontColor?: ResourceColor;
640  /**
641   * Sets the background color of the select item.
642   *
643   * @type { ?ResourceColor }.
644   * @syscap SystemCapability.ArkUI.ArkUI.Full
645   * @atomicservice
646   * @since 18
647   */
648  optionBgColor?: ResourceColor;
649  /**
650   * Sets the text style for select items.
651   *
652   * @type { ?Font }.
653   * @syscap SystemCapability.ArkUI.ArkUI.Full
654   * @atomicservice
655   * @since 18
656   */
657  optionFont?: Font;
658  /**
659   * Sets the text color for select items.
660   *
661   * @type { ?ResourceColor }.
662   * @syscap SystemCapability.ArkUI.ArkUI.Full
663   * @atomicservice
664   * @since 18
665   */
666  optionFontColor?: ResourceColor;
667  /**
668   * Set the width of each option and set whether the option width fit the trigger.
669   *
670   * @type { ?(Dimension | OptionWidthMode) }.
671   * @syscap SystemCapability.ArkUI.ArkUI.Full
672   * @atomicservice
673   * @since 18
674   */
675  optionWidth?: Dimension | OptionWidthMode;
676  /**
677   * Set the height of each option.
678   *
679   * @type { ?Dimension }.
680   * @syscap SystemCapability.ArkUI.ArkUI.Full
681   * @atomicservice
682   * @since 18
683   */
684  optionHeight?: Dimension;
685  /**
686   * Set the space for text and icon in select.
687   *
688   * @type { ?Length }.
689   * @syscap SystemCapability.ArkUI.ArkUI.Full
690   * @atomicservice
691   * @since 18
692   */
693  space?: Length;
694  /**
695   * Set the layout direction for text and arrow in select.
696   *
697   * @type { ?ArrowPosition }.
698   * @syscap SystemCapability.ArkUI.ArkUI.Full
699   * @atomicservice
700   * @since 18
701   */
702  arrowPosition?: ArrowPosition;
703  /**
704   * Set the alignment between select and menu.
705   *
706   * @type { ?MenuAlignParams }.
707   * @syscap SystemCapability.ArkUI.ArkUI.Full
708   * @atomicservice
709   * @since 18
710   */
711  menuAlign?: MenuAlignParams;
712  /**
713   * Set the menu's background color.
714   *
715   * @type { ?ResourceColor }.
716   * @syscap SystemCapability.ArkUI.ArkUI.Full
717   * @atomicservice
718   * @since 18
719   */
720  menuBackgroundColor?: ResourceColor;
721  /**
722   * Set menu background blur Style.
723   *
724   * @type { ?BlurStyle }.
725   * @syscap SystemCapability.ArkUI.ArkUI.Full
726   * @atomicservice
727   * @since 18
728   */
729  menuBackgroundBlurStyle?: BlurStyle;
730}
731/**
732 * Function settings in the selection area (right).
733 *
734 * @typedef OperationParams
735 * @syscap SystemCapability.ArkUI.ArkUI.Full
736 * @atomicservice
737 * @since 18
738 */
739export interface OperationParams {
740  /**
741   * Function bits attached to the search area (right).
742   *
743   * @type { ?OperationOption }.
744   * @syscap SystemCapability.ArkUI.ArkUI.Full
745   * @atomicservice
746   * @since 18
747   */
748  auxiliaryItem?: OperationOption;
749  /**
750   * Function bits independent of search area (right).
751   *
752   * @type { ?OperationOption }.
753   * @syscap SystemCapability.ArkUI.ArkUI.Full
754   * @atomicservice
755   * @since 18
756   */
757  independentItem?: OperationOption;
758}
759/**
760 * Defines AtomicServiceSearch.
761 *
762 * @struct {AtomicServiceSearch}
763 * @syscap SystemCapability.ArkUI.ArkUI.Full
764 * @atomicservice
765 * @since 18
766 */
767@Component
768export declare struct AtomicServiceSearch {
769  /**
770   * Sets the search text content that is currently displayed.
771   *
772   * @type { ?ResourceStr }.
773   * @syscap SystemCapability.ArkUI.ArkUI.Full
774   * @atomicservice
775   * @since 18
776   */
777  @Prop
778  value?: ResourceStr;
779  /**
780   * Indicates default prompt text displayed in the search box.
781   * The default value is Search, which supports globalization.
782   *
783   * @type { ?ResourceStr }.
784   * @syscap SystemCapability.ArkUI.ArkUI.Full
785   * @atomicservice
786   * @since 18
787   */
788  @Prop
789  placeholder?: ResourceStr;
790  /**
791   * Events and styles supported by the search area.
792   *
793   * @type { ?SearchParams }.
794   * @syscap SystemCapability.ArkUI.ArkUI.Full
795   * @atomicservice
796   * @since 18
797   */
798  @Prop
799  search?: SearchParams;
800  /**
801   * Contents, events, and styles of the select area.
802   *
803   * @type { ?SelectParams }.
804   * @syscap SystemCapability.ArkUI.ArkUI.Full
805   * @atomicservice
806   * @since 18
807   */
808  @Prop
809  select?: SelectParams;
810  /**
811   * Function settings in the selection area (right).
812   *
813   * @type { ?OperationParams }.
814   * @syscap SystemCapability.ArkUI.ArkUI.Full
815   * @atomicservice
816   * @since 18
817   */
818  operation?: OperationParams;
819  /**
820   * Set the Search component controller.
821   *
822   * @type { ?SearchController }.
823   * @syscap SystemCapability.ArkUI.ArkUI.Full
824   * @atomicservice
825   * @since 18
826   */
827  controller?: SearchController;
828}