Base element of the application tools icon.

Example:

   import {html, css} from 'lit';
import {customElement} from 'lit/decorators.js';

// @ts-ignore
@customElement('my-button')
export class MyToolButtonElement extends (window as any).gmfapi.elements.ToolButtonElement {
constructor() {
super(panelName);
}

render(): TemplateResult {
return html`
<button
@click=${() => this.click_()}
class="btn btn-default ${this.active_ ? 'active' : ''}"
data-toggle="tooltip"
data-placement="left"
data-original-title="${i18next.t('Title')}"
>
<span class="fa fa-my-icon"></span>
</button>
`;
}
}

Hierarchy

Constructors

Properties

bootstrapStyle: CSSResult = ...
bootstrapVarStyle: CSSResult = ...
commonStyle: CSSResult = ...
fontawesomeStyle: CSSResult = ...
resetStyle: CSSResult = ...
styles: CSSResult[] = ...

Methods

Generated using TypeDoc