The requested page is not available for the requested platform. You are viewing the content for Default platform.

HintSettings Class

Contains the Hint extension settings.

Namespace: DevExpress.Web.Mvc

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

Declaration

public class HintSettings :
    SettingsBase
Public Class HintSettings
    Inherits 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