Skip to main content

HintSettings Class

Contains the Hint extension settings.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public class HintSettings :
    SettingsBase

Remarks

To declare the Hint in a View, invoke the ExtensionsFactory.Hint helper method. This method returns the Hint extension that is implemented by the HintExtension class.

To configure the Hint extension, pass the HintSettings object to the ExtensionsFactory.Hint helper method as a parameter. The HintSettings object contains all the Hint extension settings.

@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

Inheritance

Object
SettingsBase
HintSettings
See Also