Ngx-bootstrap: feat(popover): add more positional options for popover (for example, ‘bottom-left’)

Created on 14 Mar 2017  Â·  6Comments  Â·  Source: valor-software/ngx-bootstrap

The show is current version placement of popver
capture

how to make placement of popover to set as ‘bottom-left’? Below:
pic

comp(popover) medium (days) enhancement

Most helpful comment

Hey there, I agree with @ameionline, it would be great if we could have the same positional options as in ui-bootstrap:

  • top - popover on top, horizontally centered on host element.
  • top-left - popover on top, left edge aligned with host element left edge.
  • top-right - popover on top, right edge aligned with host element right edge.
  • bottom - popover on bottom, horizontally centered on host element.
  • bottom-left - popover on bottom, left edge aligned with host element left edge.
  • bottom-right - popover on bottom, right edge aligned with host element right edge.
  • left - popover on left, vertically centered on host element.
  • left-top - popover on left, top edge aligned with host element top edge.
  • left-bottom - popover on left, bottom edge aligned with host element bottom edge.
  • right - popover on right, vertically centered on host element.
  • right-top - popover on right, top edge aligned with host element top edge.
  • right-bottom - popover on right, bottom edge aligned with host element bottom edge.

Great work BTW!
Thanks!

All 6 comments

Hey there, I agree with @ameionline, it would be great if we could have the same positional options as in ui-bootstrap:

  • top - popover on top, horizontally centered on host element.
  • top-left - popover on top, left edge aligned with host element left edge.
  • top-right - popover on top, right edge aligned with host element right edge.
  • bottom - popover on bottom, horizontally centered on host element.
  • bottom-left - popover on bottom, left edge aligned with host element left edge.
  • bottom-right - popover on bottom, right edge aligned with host element right edge.
  • left - popover on left, vertically centered on host element.
  • left-top - popover on left, top edge aligned with host element top edge.
  • left-bottom - popover on left, bottom edge aligned with host element bottom edge.
  • right - popover on right, vertically centered on host element.
  • right-top - popover on right, top edge aligned with host element top edge.
  • right-bottom - popover on right, bottom edge aligned with host element bottom edge.

Great work BTW!
Thanks!

For now I am using ng2-pop-over You do need to create your own styling though.

@gastonelhordoy Forked the repo to implement this, but then I noticed that there is the posibility to give two values to the placement input (e.g. "bottom left", "left top" etc.). It seems to work for me at least, but position of the popover arrow is not calculated accordingly. Don't know if it is a feature in development due to no documentation at all, but for a quick fix it works.

Sorry, this feature will be implement in future?

Hey Hi @michaelfaisst, I tried with bottom left , but it doesn't seem to be working. Is there anything needs to be done for this to work other than changing the placement property? Do you have any plukr made for this use case ?

This would be a great addition for people looking to move away from ui-bootstrap while going through the upgrade process on components. Without feature parity there's a lot of heartburn in making the move.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juanitavollmering picture juanitavollmering  Â·  3Comments

tpiros picture tpiros  Â·  3Comments

ctrl-brk picture ctrl-brk  Â·  3Comments

hugonne picture hugonne  Â·  3Comments

KimBum picture KimBum  Â·  3Comments