declare module "sap/esh/search/ui/controls/resultview/SearchText" { /*! * SAPUI5 * Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. */ import Text from "sap/m/Text"; import Icon from "sap/ui/core/Icon"; import { $TextSettings } from "sap/m/Text"; import { MetadataOptions } from "sap/ui/base/ManagedObject"; import RenderManager from "sap/ui/core/RenderManager"; import TooltipBase from "sap/ui/core/TooltipBase"; interface SearchTextSettings extends $TextSettings { icon?: Icon; } /** * Display search result attribute (text only, no navigation) on custom grid control tiles * */ /** * Constructs a new SearchText to display an attribute (text only, no navigation) on custom grid control tiles. * * @param {string} [sId] ID for the new control, generated automatically if no ID is given * @param {object} [text] Text to be displayed * @param {object} [maxlines] Maximum number of text lines to be displayed * @param {object} [wrapping] Text can wrap automatically within the given width * * @class * * This is the SAPUI5 search text control to display attributes of search results. * For attribute with navigation use control sap.esh.search.ui.SearchLink. * Use in combination with control SearchCompositeControl by the Enterprise Search Team. * * @extends sap.m.Text * * @author SAP SE * @version 1.150.1 * * @see https://help.sap.com/viewer/691cb949c1034198800afde3e5be6570/2.0.08/en-US/ce86ef2fd97610149eaaaa0244ca4d36.html SAP HANA Search Developer Guide * @see https://help.sap.com/docs/SAP_S4HANA_ON-PREMISE/90b263323d0a4976bcda415e6bd20ea4/d93d53ef27074bbf9a4849c4a4c3e360.html Enterprise Search in SAP S/4HANA * * * @constructor * @public * @alias sap.esh.search.ui.controls.resultview.SearchText * @since 1.93.0 * @name sap.esh.search.ui.controls.resultview.SearchText * */ /** * @namespace sap.esh.search.ui.controls */ export default class SearchText extends Text { static readonly metadata: MetadataOptions; constructor(sId?: string, settings?: SearchTextSettings); init(): void; /** * Assigns the given css class to the inner text control, because that's the way * it worked before the control was refactored to be a composite control. Now * an additional span element is added around the text control, see renderer method. * @param sStyleClass name of the css class to be added * @returns SearchText */ addStyleClass(sStyleClass: string): this; addStyleClassInternal(sStyleClass: string): this; setText(sText: string): this; setMaxLines(iMaxLines: int): this; setWrapping(bWrapping: boolean): this; setIcon(icon: Icon): SearchText; setTooltip(sTooltip?: string | TooltipBase): this; onAfterRendering(oEvent: any): void; static renderer: { apiVersion: number; render: (rm: RenderManager, control: SearchText) => void; }; } } //# sourceMappingURL=SearchText.d.ts.map