HintSettings.TargetSelector Property
Gets or sets a CSS selector string value.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
Declaration
Property Value
Type | Description |
---|---|
String | A string value that specifies a CSS selector. |
Remarks
Use the TargetSelector property to specify for which UI elements on a web page a hint is displayed.
@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
Online Demos
See Also