Skip to content

Commit

Permalink
feat: Added postionBy directive options to tooltip and popovers (#420)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan.Cardnell <stefan.cardnell@voss-solutions.com>
  • Loading branch information
2 people authored and wxsms committed Jan 5, 2021
1 parent 4b86d70 commit 0b11fa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/directives/popover/popover.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const bind = (el, binding) => {
target: el,
appendTo: binding.arg && '#' + binding.arg,
title: binding.value && binding.value.title && binding.value.title.toString(),
positionBy: binding.value && binding.value.positionBy && binding.value.positionBy.toString(),
content: binding.value && binding.value.content && binding.value.content.toString(),
viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),
customClass: binding.value && binding.value.customClass && binding.value.customClass.toString()
Expand Down
1 change: 1 addition & 0 deletions src/directives/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const bind = (el, binding) => {
target: el,
appendTo: binding.arg && '#' + binding.arg,
text: typeof binding.value === 'string' ? (binding.value && binding.value.toString()) : (binding.value && binding.value.text && binding.value.text.toString()),
positionBy: binding.value && binding.value.positionBy && binding.value.positionBy.toString(),
viewport: binding.value && binding.value.viewport && binding.value.viewport.toString(),
customClass: binding.value && binding.value.customClass && binding.value.customClass.toString(),
showDelay: binding.value && binding.value.showDelay,
Expand Down

0 comments on commit 0b11fa1

Please sign in to comment.