A newer version of this page is available. Switch to the current version.

HintExtension Class

Represents an extension object implementing the Hint functionality.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class HintExtension :
    ExtensionBase

The following members accept/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