Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

HoverMenuExtender

MikhailTymchukDX edited this page Apr 12, 2017 · 3 revisions

Demo Page

HoverMenu is an ASP.NET AJAX Control Toolkit extender that can be attached to any ASP.NET WebControl and associates that control with a popup panel to display additional content.

Properties

Name Description
HoverCssClass A CSS class to apply to the target when the hover menu popup is visible
HoverDelay Time in milliseconds before the popup is displayed after hovering over the target control.
Remarks: Default is 0.
OffsetX The number of pixels to offset the popup from its default position as specified by PopupPosition. Default is 0
OffsetY The number of pixels to offset the popup from its default position as specified by PopupPosition. Default is 0
OnHide OnHide animation will be played each time the hover menu is hidden.
OnShow OnShow animation will be played each time the hover menu is displayed.
Remarks: The hover menu will be positioned correctly but hidden. Animation can be used to display the hover menu with other visual effects.
PopDelay Time in milliseconds for the popup to remain visible after the mouse moves away from the target control.
Remarks: Default is 0.
PopupControlID A control's ID to display when the mouse is over the target control.
PopupPosition The popup element position when it is shown.
Remarks: This can be any value from the HoverMenuPopupPosition enumeration, and the position can be modified by setting the OffsetX and/or OffsetY properties. Can be Left, Right, Top, Bottom, Center. Center is default.

Client properties

Name Description
hoverCssClass A CSS class used on hovering.
hoverDelay A number representing a time delay after the mouse enters the target and before the popup is shown (in milliseconds).
offsetX The number of pixels to offset the popup from its default horizontal position.
offsetY The number of pixels to offset the popup from its default vertical position.
onHide A JSON definition of a genericOnHide animation.
onHideBehavior The Sys.Extended.UI.Animation.GenericAnimationBehavior object containing the generic OnHide animation behavior.
onShow A JSON definition of a generic OnShow animation.
onShowBehavior The Sys.Extended.UI.Animation.GenericAnimationBehavior object containing the generic OnShow animation behavior.
popDelay A number representing a time delay from the moment the mouse enters the target to the time when the popup is shown (displayed in milliseconds).
popupElement Sys.UI.DomElement that acts as a popup and is displayed on hovering.
popupPosition The Sys.Extended.UI.HoverMenuPopupPosition object that contains the location where the popup should be positioned relative to the target control.

Client methods

Name Description
onHide() Plays OnHide animation.
onShow() Plays OnHide animation.

Client events

Name Description
hidden Fires after the hover menu is hidden.
hiding Fires when the hover menu is being hidden.
showing Fires when the hover menu is being shown.
shown Fires after the hover menu is shown.

Client properties

hoverCssClass

A CSS class used on hovering.

Getter name: get_hoverCssClass()
Setter name: set_hoverCssClass(value)

hoverDelay

A number representing a time delay after the mouse enters the target and before the popup is shown (in milliseconds).

Remarks: Default is 0.

Getter name: get_hoverDelay()
Setter name: set_hoverDelay(value)

offsetX

The number of pixels to offset the popup from its default horizontal position.

Getter name: get_offsetX()
Setter name: set_offsetX(value)

offsetY

The number of pixels to offset the popup from its default vertical position.

Getter name: get_offsetY()
Setter name: set_offsetY(value)

onHide

A JSON definition of a genericOnHide animation.

Getter name: get_onHide()
Setter name: set_onHide(value)

onHideBehavior

The Sys.Extended.UI.Animation.GenericAnimationBehavior object containing the generic OnHide animation behavior.

Getter name: get_onHideBehavior()

onShow

A JSON definition of a generic OnShow animation.

Getter name: get_onShow()
Setter name: set_onShow(value)

onShowBehavior

The Sys.Extended.UI.Animation.GenericAnimationBehavior object containing the generic OnShow animation behavior.

Getter name: get_onShowBehavior()

popDelay

A number representing a time delay from the moment the mouse enters the target to the time when the popup is shown (displayed in milliseconds).

Remarks: Default is 100.

Getter name: get_popDelay()
Setter name: set_popDelay(value)

popupElement

Sys.UI.DomElement that acts as a popup and is displayed on hovering.

Getter name: get_popupElement()
Setter name: set_popupElement(value)

popupPosition

The Sys.Extended.UI.HoverMenuPopupPosition object that contains the location where the popup should be positioned relative to the target control.

Remarks: Can be Left, Right, Top, Bottom, Center. Center is default

Getter name: get_popupPosition()
Setter name: set_popupPosition(value)

Client methods

onHide()

Plays OnHide animation.

onShow()

Plays OnHide animation.

Client events

hidden

Fires after the hover menu is hidden.

Add event handler method: add_hidden(handler)
Remove event handler method: remove_hidden(handler)
Raise event method: raise_hidden()

hiding

Fires when the hover menu is being hidden.

Add event handler method: add_hiding(handler)
Remove event handler method: remove_hiding(handler)
Raise event method: raise_hiding()

showing

Fires when the hover menu is being shown.

Add event handler method: add_showing(handler)
Remove event handler method: remove_showing(handler)
Raise event method: raise_showing()

shown

Fires after the hover menu is shown.

Add event handler method: add_shown(handler)
Remove event handler method: remove_shown(handler)
Raise event method: raise_shown()

Clone this wiki locally