Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow or add option to bind user-defined class to Popover host #1441

Closed
manju-reddys opened this issue Apr 5, 2017 · 3 comments
Closed

Allow or add option to bind user-defined class to Popover host #1441

manju-reddys opened this issue Apr 5, 2017 · 3 comments

Comments

@manju-reddys
Copy link

manju-reddys commented Apr 5, 2017

Bug description:

Currently there is not way to add a user-defined class to the popover host.

Allowing to add user-defined class make life easier to customize (styling) the popover content as needed otherwise it will be patch work to to change the popover appearance.

We can style the popover content but not the popover itself. Its not a good idea to alter the popover globally so allowing to bind the custom class make life easy.

Link to minimally-working plunker that reproduces the issue:

Plunker

Version of Angular, ng-bootstrap, and Bootstrap:

Angular: V-4

ng-bootstrap: 1.0.0-alpha.22

Bootstrap: 4.0.0-alpha.6

custom-view

@goshoo
Copy link

goshoo commented Oct 19, 2017

I'm also interested in this feature. I need to modify popover's width (CSS "max-width" parameter).

@shyamal890
Copy link

+1

swseverance added a commit to swseverance/ng-bootstrap that referenced this issue Apr 12, 2018
* provide class applied to `NgbPopoverWindow` via input to
  `NgbPopover` or via `NgbPopoverConfig`
* add example usage to demo app

Closes ng-bootstrap#1441
@pierre-hilt
Copy link

Hello, it could be very great to have this kind of options for all components with a window.

Modal, typeahead, popover...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants