graphdb-workbench
Version:
The web application for GraphDB APIs
1 lines • 1.01 kB
JavaScript
import{h}from"@stencil/core";import{SubscriptionList}from"../../../../../api/dist/ontotext-workbench-api";import{TranslationService}from"../../services/translation.service";import{OntoTooltipPlacement}from"../onto-tooltip/models/onto-tooltip-placement";export class OntoSearchIcon{constructor(){this.tooltipKey="rdf_search.labels.search",this.subscriptions=new SubscriptionList}connectedCallback(){this.onTooltipChange()}disconnectedCallback(){this.subscriptions.unsubscribeAll()}render(){return h("i",{key:"36c552ab017abc9d3b76ca47ff3a8202f243f10d","tooltip-content":this.tooltipLabel,"tooltip-placement":OntoTooltipPlacement.BOTTOM,class:"onto-search-icon ri-search-line ri-lg"})}onTooltipChange(){this.subscriptions.add(TranslationService.onTranslate(this.tooltipKey,[],t=>this.tooltipLabel=t))}static get is(){return"onto-search-icon"}static get originalStyleUrls(){return{$:["onto-search-icon.scss"]}}static get styleUrls(){return{$:["onto-search-icon.css"]}}static get states(){return{tooltipLabel:{}}}}