Skip to main content

HintExtension Class

Represents an extension object implementing the Hint functionality.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class HintExtension :
    ExtensionBase

The following members return HintExtension objects:

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();

Online Demos

Hint Extension Demos

Inheritance

Object
ExtensionBase
HintExtension
See Also