Back to Devexpress

HintSettings.TriggerAction Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-hintsettings-e04494d9.md

latest2.1 KB
Original Source

HintSettings.TriggerAction Property

Gets or sets which user action triggers a hint.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public HintTriggerAction TriggerAction { get; set; }
vb
Public Property TriggerAction As HintTriggerAction

Property Value

TypeDescription
HintTriggerAction

A HintTriggerAction object that specifies a user action.

|

Available values:

NameDescription
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

csharp
@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

HintSettings Class

HintSettings Members

DevExpress.Web.Mvc Namespace