HexagonJS
Dropdown Changelog
2.2.0
hx.DropdownextendsEventEmitter
Updated
Removed the animation from the show/hide for dropdowns. The showstart/showend etc. events will be deprecated in a minor release and removed in the next major release.
Also converted the dropdown to reposition whenever the content is updated to prevent overlap or overflow outside the window area. Uses MutationObserver
2.0.0
hx.DropdowndropdownContentString / Function
dropdownContentString / Function
Updated
Dropdown content now supports being passed a Selection that will be automatically appended to the dropdown content.
String
A warning is shown when passing in string content due to the deprecation of Selection::html. It is still possible to pass in a string which will continue to work when this function is updated to use Selection::text
1.17.0
hx.DropdownoptionsObject
options
spacingNumber
Removed
#250
The spacing value is ignored by the dropdown and has subsequently been removed from the API
hx.Dropdown
options
spacingNumber
Removed
#250
The spacing value is ignored by the dropdown and has subsequently been removed from the API
1.15.0
hx.DropdownextendsEventEmitter
Fixed a bug with the dropdown positioning logic.
1.6.0
hx.Dropdown
renderDropdown
Added
#180
Added a new method for re-rendering the dropdown whilst it is open
hx.Dropdown
dropdownContentString / Function
Added
#180
Added a new method for getting the currently set dropdown content
hx.Dropdown
dropdownContentDropdown
Added
#180
Added a new method for getting the currently set dropdown content
hx.Dropdown
render
Added
#180
A new event fired when the dropdown has finished rendering
1.0.0
hx.Dropdown
addExceptionDropdown
Added
A method for adding exceptions to dropdowns - this means if the element provided is clicked, it will not cause the dropdown to close.
hx.Dropdown
removeExceptionDropdown
Added
A method for removing exceptions from dropdowns.
0.14.0
hx.Dropdown
Removed
Use hx.Dropdown(selector, dropdownContent, options) instead.
hx.Dropdown
show
Removed
Use showstart instead.
hx.Dropdown
hide
Removed
Use hidestart instead.
0.13.0
hx.Dropdown
Deprecated
Use hx.Dropdown(selector, dropdownContent, options) instead.
hx.Dropdown
dropdownContentString / Function
Removed
dropdownContent has been moved to the options object
hx.Dropdown
spacingNumber
Removed
spacing has been moved to the options object
hx.Dropdown
matchWidthBoolean
Removed
matchWidth has been moved to the options object
hx.Dropdown
ddClassString
Removed
ddClass has been moved to the options object
hx.Dropdown
toggle
Removed
hx.Dropdown
show
Removed
hx.Dropdown
hide
Removed
hx.Dropdown
Added
hx.Dropdown
options
Added
hx.Dropdown
toggleDropdown
Added
Toggles the visibility of the dropdown.
hx.Dropdown
showDropdown
Added
Shows the dropdown
hx.Dropdown
hideDropdown
Added
Hides the dropdown
hx.Dropdown
show
Deprecated
Use showstart instead.
hx.Dropdown
hide
Deprecated
Use hidestart instead.
hx.Dropdown
showstart
Added
Emitted when the dropdown animation starts. No data is sent with this event.
hx.Dropdown
showend
Added
Emitted when the dropdown animation finishes. No data is sent with this event.
hx.Dropdown
hidestart
Added
Emitted when the dropdown animation starts. No data is sent with this event.
hx.Dropdown
hideend
Added
Emitted when the dropdown animation ends. No data is sent with this event.
0.12.8
hx.DropdownextendsEventEmitter
Bugfix
Updated the z-index checking so that it gets the highest of all the parent z-index, not just the closest parent's z-index.
0.9.0
hx.Dropdown
Added
hx.Dropdown
Removed
The mode parameter has been moved after the dropdown content:
// old way
new hx.Dropdown(selector, mode, dropdownContent, align, spacing, matchWidth, ddClass)]

// new way
new hx.Dropdown(selector, dropdownContent, mode, align, spacing, matchWidth, ddClass)]