Closed macin40 closed 6 years ago
Hi @macin40, are there any errors? Could you create a reproducible example?
I am getting this error
@nnixaa
@Tibing could you check?
Hi @prashantkaushik-cipl, I've created stackblitz.
So, are you sure you've registered nebular styles correctly?
Are you sure you're using popover inside <nb-layout></nb-layout>
?
Closing as answered.
Wrapping the popover, like e.g.
<nb-card-header>
<nb-layout>
Preview <nb-icon class="centerIcon" [icon]="'question-mark-circle-outline'" pack="eva" nbPopover="Pick an iconic symbol for your item, e.g. XZY " nbPopoverTrigger="hover" nbPopoverPlacement="right"></nb-icon>
</nb-layout>
screws up the whole UI, isn't it possible to just make it work somehow? I'm using the ngx admin template, and inside https://github.com/akveo/ngx-admin/blob/master/src/app/pages/forms/form-layouts/form-layouts.component.html I can make use of popovers just like
<nb-icon class="centerIcon" [icon]="'question-mark-circle-outline'" pack="eva" nbPopover="Enter a Name for your item. E.g. 'Turbo' " nbPopoverTrigger="hover" nbPopoverPlacement="right"></nb-icon>
without the need for <nb-layout>
.
Edit: Nevermind, no need for <nb-layout>
. Just had to import the popover module, didn't get a warning that it was missing. For everyone else reading: Open the module where the component is defined in, and
import { NbPopoverModule } from '@nebular/theme';
and
@NgModule({
imports: [
...
NbPopoverModule,
...
],
Issue type
**I'm submitting popover bug
Issue description
Current behavior: Hover text is not appearing. These are the states
Expected behavior:
Steps to reproduce:
<button class="btn btn-outline-primary" nbPopover="Hover Mode" nbPopoverMode="hover"> Hover Mode </button>
just place the html code anywhere on the html pageOther information:
npm, node, OS, Browser
Angular, Nebular