Skip to main content

HintSettings.DisappearAfter Property

Gets or sets the duration after which a hint disappears when the mouse pointer is no longer positioned over the target element.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int DisappearAfter { get; set; }

Property Value

Type Description
Int32

The length of time (in milliseconds) a hint is displayed after the mouse pointer is no longer positioned over the target element.

Remarks

When the mouse pointer is no longer positioned over the target element, the hint automatically disappears after a certain duration. Use the DisappearAfter property to specify the duration. Hiding the hint uses a predefined animation effect, if the HintSettings.Animation property is enabled.

To specify the delay after which the hint appears in response to user interaction, use the HintSettings.AppearAfter property. To define a user action that invokes the hint, use the HintSettings.TriggerAction property.

@Html.DevExpress().Hint(settings => {
    settings.Name = position + "Hint";
    settings.Content = string.Format("Hint from {0} side", position);
    settings.TargetSelector = "." + position;

    settings.ShowCallout = Model.ShowCallout;
    settings.Animation = Model.Animation;
    settings.AppearAfter = Model.AppearAfter;
    settings.DisappearAfter = Model.DisappearAfter;
    settings.TriggerAction = Model.Trigger;
    settings.Title = Model.ShowTitle ? "Hint title" : "";
    ...
}).GetHtml();

Concept

Hint Extension - Overview

Online Demos

Hint Extension Demos

See Also