Skip to main content

Type alias: SizeFunction

Ƭ SizeFunction: (el: HTMLElement, field: "offsetHeight" | "offsetWidth") => number

Calculates the height of el, which will be the Item element in the DOM.

Type declaration

▸ (el, field): number

Parameters
NameType
elHTMLElement
field"offsetHeight" | "offsetWidth"
Returns

number