CardWidget.onCustomizeText Property
Allows you to customize texts displayed within individual cards.
Namespace: DevExpress.Dashboard
Assembly: DevExpress.Dashboard.v17.2.Web.Scripts.dll
Declaration
Property Value
| Type | Description |
|---|---|
| Object | A handler used customize texts displayed within individual cards. |
Example
The following code snippet shows how to customize specific texts displayed within the Card dashboard item using the CardWidget.onCustomizeText property. You can use this code when handling ASPxClientDashboard.ItemWidgetCreated / ASPxClientDashboard.ItemWidgetUpdated client-side events.
function(s, e) {
if (e.ItemName == "cardDashboardItem1") {
var card = e.GetWidget();
card.onCustomizeText = function(args) {
if (args.getValue() == "UK") {
return "United Kingdom";
}
if (args.getValue() == "USA") {
return "United States";
}
};
}
}
See Also