0

visions:

  • angular: 2.4.9
  • ag-grid-angular: 16.0.0
  • bootstrap: 4.0.0-alpha.5
  • ngx-bootstrap: 1.6.6

I use ag-grid to frozen the first two column of table, and then overwrite tooltip width which is longer than the second column. Then it looks like this:

enter image description here

the right of tooltip was covered by columns.

I tried to set

z-index: 99999 !import

but not work. Does anyone know?

koolhuman
  • 1,581
  • 15
  • 25
Y. Ping
  • 13
  • 5

2 Answers2

1

Append tooltip to body.

<button type="button" class="btn btn-success"
            tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."
            container="body">

Add container="body" attribute with the tooltip.

Raghu Ram
  • 181
  • 5
0

If you are just looking to change the width by a custom class then you can override the styles using below code in your CSS file. I have changed your plunker

https://plnkr.co/edit/hbrjgaKArGx34rVRzNOH?p=preview

Example

.tooltip-inner {max-width: 205px;}
koolhuman
  • 1,581
  • 15
  • 25