You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I'm trying change dynamically position of the dropdown menu. My code is not work ((( How I can calculate and change position of dropdown dynamically before dropdown is showing?
Example, I trying change data attr of element data-offset on show.bs.dropdown or shown.bs.dropdown
Activity
[-]Dropdown position dynamic offset v4[/-][+]Dropdown offset dynamic offset v4[/+][-]Dropdown offset dynamic offset v4[/-][+]Dropdown dynamic offset v4[/+]Johann-S commentedon Oct 2, 2017
Popper.js already handle that for you 👍
EDIT:
Hmm sorry I misunderstood your question @romanlex, I'm not sure if Popper.js handle to change the offset dynamicly, maybe a simple you can try :
romanlex commentedon Oct 2, 2017
I found what I can send fn function in offset to Popper


But in source code (dropdown.js) I see only static offset for initialize plugin in modifiers
Johann-S commentedon Oct 2, 2017
that's true currently we only accept :
number | stringbut we are open for a PR 😄romanlex commentedon Oct 2, 2017
@Johann-S thx )) #24208
Johann-S commentedon Oct 3, 2017
Related to : #24223