HexagonJS
Modal Changelog
2.7.1
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.7.0
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.5.3
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.5.2
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.5.1
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.5.0
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.4.0
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.3.1
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.3.0
hx.ModalextendsEventEmitter
Deprecated
This Modal has been replaced by the new Modal class returned by modalCenter, modalRight and modalFullScreen
modalDialogModal
Deprecated
This has been replaced by modalCenter
modalInputModal
Deprecated
This has been replaced by modalCenter
Modal
Added
The type returned when calling the three modal functions:
  • modalCenter
  • modalRight
  • modalFullScreen
modalCenterModal
Added
Renders a modal in the center of the screen
modalFullScreenModal
Added
Renders a modal that covers the whole screen.
modalRightModal
Added
Renders a modal displayed on the right hand side of the screen
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.2.0
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.1.0
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.0.3
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.0.2
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.0.1
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
2.0.0
hx.modal
Deprecated
The modal object has been replaced by specific filter methods directly on the hx object.
modalDialogModal
Added
A function for creating a simple modal popup with a title, a message and some buttons.
modalInputModal
Added
A function for creating a simple modal popup with a title, a message and an input box (and confirm and cancel buttons).
1.2.1
hx.ModalextendsEventEmitter
Bugfix
#142
Fixed an issue where modal content would be duplicated when calling modal.show() multiple times.
1.1.0
Bugfix
#8
Added some styles to modals so they no longer overflow on small devices
hx.Modal
Removed
#41
Added an additional parameter to the setup function, titlebarRenderer and headerRenderer.
The existing API has not been modified and will continue to work.
hx.Modal
Added
#41
Added the modal parameter to the setup function passed into the modal constructor as well as the titlebarRenderer and headerRenderer functions.
1.0.0
Updated
Updated the structure and style of modal popups to allow the modal content to be used as a notification container.
hx.ModaloptionsObject
options
isClosableBoolean
Removed
This property has been replaced by closeWithShadeEnabled and closeButtonEnabled
hx.ModaloptionsObject
options
closeWithShadeEnabledBoolean
Added
Whether clicking on the shaded background around the modal should close it
hx.ModaloptionsObject
options
closeButtonEnabledBoolean
Added
Whether the modal should have a close button
hx.ModaloptionsObject
options
headerRenderer
Added
Added a new header renderer for modals so that the close button no longer has to be absolutely positioned in the title.
0.15.0
hx.Modal
closeModal
Removed
Use modal.hide instead.
0.14.1
hx.Modal
closeModal
Deprecated
Use modal.hide instead.
0.14.0
hx.Modal
Removed
Use hx.Modal(title, setup, [options]) instead.
hx.Modal
closeModal
Deprecated
Use modal.hide instead.
hx.Modal
setupTitlebar
Removed
Use options.titlebarRenderer instead.
hx.Modal
hideModal
Added
Hides the modal.
hx.modal
inputModal
Removed
Use hx.input(title, messsage, callback, options) instead.
hx.modal
dialogModal
Removed
Use hx.modal.dialog(title, message, callback, options) instead.
0.13.0
hx.Modal
Deprecated
User hx.Modal(title, setup, [options]) instead.
hx.Modal
setupTitlebar
Deprecated
Use options.titlebarRenderer instead.
hx.Modal
Added
Creates a new Modal object for displaying pop up content.
hx.Modal
options
Added
Configuration options for the modal. See the options parameter of the constructor for the available options.
hx.modal
inputModal
Deprecated
Use hx.input(title, messsage, callback, options) instead.
hx.modal
dialogModal
Deprecated
Use hx.modal.dialog(title, message, callback, options) instead.
hx.modal
dialogModal
Added
A function for creating a simple modal popup with a title, a message and some buttons.
hx.modal
inputModal
Added
A function for creating a simple modal popup with a title, a message and an input box (and confirm and cancel buttons).
0.12.6
hx-modal-container
hx-modal
hx-modal-title
hx-modal-title-empty
Added
Added a class to identify when a title with no length or an undefined title is passed in.
0.12.2
hx.modal
Bugfix
Clicking on an element that subsequently gets detached will no longer cause the modal to close.
0.11.0
hx.modal
dialog
Removed
hx.modal
dialogModal
Added
Added extra parameters to the dialog function to enable a class and icon to be passed to the titlebar.
0.10.0
hx.Modal
setupTitlebar
Added
Renderer function for the titlebar. The default renderer gives the node the title text. The this context for the function is this modal.
0.9.0
hx.Modal
Removed
The maxWidth parameter has been removed - the modal will now fit the content automatically.
hx.Modal
Added
Creates a new Modal object for displaying pop up content.