Skip to main content

HintSettings.TriggerAction Property

Gets or sets which user action triggers a hint.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public HintTriggerAction TriggerAction { get; set; }

Property Value

Type Description
HintTriggerAction

A HintTriggerAction object that specifies a user action.

Available values:

Name Description
None

No user action triggers a hint.

Hover

A hint is displayed when a user hovers a target UI element.

Click

A hint is displayed when a user clicks a target UI element.

HoverAndFocus

A hint is displayed when a user hovers and focuses a target UI element.

Remarks

@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