Open farzinmonsef opened 4 years ago
+++++++++++++++++++++++++++++++++++++++++TS import {Component} from '@angular/core'; import {FormControl} from '@angular/forms';
@Component({ selector: 'tooltip-message-example', templateUrl: 'tooltip-message-example.html', styleUrls: ['tooltip-message-example.css'], }) export class TooltipMessageExample { message = new FormControl('Info about the action'); }
+++++++++++++++++++++++++++++++++++++++++HTML
<button mat-raised-button [matTooltip]="message.value" aria-label="Button that displays a tooltip with a custom message"> Action
+++++++++++++++++++++++++++++++++++++++++CSS .example-user-input { margin-right: 8px; }
Tooltip-1 TS, HTML, CSS
+++++++++++++++++++++++++++++++++++++++++++++++ts import {Component} from '@angular/core'; import {FormControl} from '@angular/forms';
/**
+++++++++++++++++++++++++++++++++++++++++++++++html
<button mat-raised-button [matTooltip]="message.value" aria-label="Button that displays a tooltip with a custom message"> Action
+++++++++++++++++++++++++++++++++++++++++++++++css .example-user-input { margin-right: 8px; }