Back to Devexpress

HintSettings.Content Property

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

latest2.1 KB
Original Source

HintSettings.Content Property

Gets or sets the hint’s content.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public string Content { get; set; }
vb
Public Property Content As String

Property Value

TypeDescription
String

A string value that is the hint’s content.

|

Remarks

To specify that the hint’s content should be obtained from the target element’s attribute value, use the HintSettings.ContentAttribute property. To define the hint’s title, use the HintSettings.Title or the HintSettings.TitleAttribute properties.

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