File

projects/m2-core/src/lib/core/utils/dropdown.utils.ts

Index

Methods

Methods

Static clearMenuFitRightParams
clearMenuFitRightParams(menuElement: HTMLElement)
Parameters :
Name Type Optional
menuElement HTMLElement No
Returns : void
Static fitDropdownVertically
fitDropdownVertically(dropdownMenuElement: HTMLElement, fixedTo?: HTMLElement, fixedToOffsetV: number)
Parameters :
Name Type Optional Default value
dropdownMenuElement HTMLElement No
fixedTo HTMLElement Yes
fixedToOffsetV number No 0
Returns : void
Static fitMenuRight
fitMenuRight(menuElement: HTMLElement, considerScrollbar?: boolean, usePositionLeft?: boolean)
Parameters :
Name Type Optional
menuElement HTMLElement No
considerScrollbar boolean Yes
usePositionLeft boolean Yes
Returns : void
Static fixDropdownTo
fixDropdownTo(dropdownMenuElement: HTMLElement, fixedTo: HTMLElement, fixedToOffsetV: number, fixToOffsetH: number, fitWidth)
Parameters :
Name Type Optional Default value
dropdownMenuElement HTMLElement No
fixedTo HTMLElement No
fixedToOffsetV number No 0
fixToOffsetH number No 0
fitWidth No true
Returns : void
Static getOuterHeight
getOuterHeight(el, margin?)
Parameters :
Name Optional
el No
margin Yes
Returns : any
Static hideDropdowns
hideDropdowns()
Returns : void
Static scrollInView
scrollInView(container: HTMLElement, item: HTMLElement)
Parameters :
Name Type Optional
container HTMLElement No
item HTMLElement No
Returns : void

results matching ""

    No results matching ""