RadialGauge
RadialGauge
Displaying Values
Features
Sample
Settings
Description
This example demonstrates how to use the showText properties with the RadialGauge controls.
Source
ShowTextController.cs
using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; using MvcExplorer.Models; namespace MvcExplorer.Controllers { public partial class RadialGaugeController : Controller { public ActionResult ShowText() { ViewBag.DemoSettings = true; ViewBag.DemoSettingsModel = new ClientSettingsModel { Settings = CreateShowTextSettings() }; return View(); } private static IDictionary<string, object[]> CreateShowTextSettings() { var settings = new Dictionary<string, object[]> { {"ShowText", new object[]{"All", "Value", "MinMax", "None"}} }; return settings; } } }
ShowText.cshtml
@{ ClientSettingsModel demoSettingsModel = ViewBag.DemoSettingsModel; } <c1-radial-gauge id="@demoSettingsModel.ControlId" min="0" max="10" value="5" show-text="All" width="300px" height="180px"> </c1-radial-gauge> @section Description{ @Html.Raw(RadialGaugeRes.ShowText_Text0) }
Documentation