S
S
Snape112018-10-27 16:16:42
css
Snape11, 2018-10-27 16:16:42

How to make Tooltip fit in select option?

5bd4653464189953154832.jpeg
My code

<mat-form-field>
      <mat-select  (selectionChange)="onChangeHotel($event)" placeholder="Hotel" [(value)]="selectedHotel"  [ngbTooltip]="htmlContent" placement="right">
        <mat-option *ngFor="let hotel of hotels" 
        class="btn btn-secondary" [value]="hotel.id" (mouseenter) ="mouseEnter(hotel.id)" 
        [ngbTooltip]="htmlContent" placement="top">
          {{hotel.name}}
        </mat-option>
      </mat-select>
    </mat-form-field
<ng-template #htmlContent>
  <p>W</p>
  <p>o</p>
  <p>r</p>
  <p>k</p>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-10-27
@webinar

Tooltip in select option does not fit?

it's obvious looking at the screenshot. Have other questions? To shorten them, I will say right away that the tooltip is black, the text is white.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question