CircularGaugeScaleLabelsSettingsBuilder
Methods
Background(System.String)
The background color of the labels. Any valid CSS color string will work here, including hex and rgb
Parameters
value - System.String
The value that configures the background.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Background(value)))
)
Border(System.Action)
The border of the labels.
Parameters
configurator - System.Action<CircularGaugeScaleLabelsBorderSettingsBuilder>
The action that configures the border.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l => l.Border(b => b.Color(value)))
)
Color(System.String)
The text color of the labels. Any valid CSS color string will work here, including hex and rgb.
Parameters
value - System.String
The value that configures the color.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Color(value)))
)
Font(System.String)
The font style of the labels.
Parameters
value - System.String
The value that configures the font.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Font(value)))
)
Format(System.String)
The format of the labels.
Parameters
value - System.String
The value that configures the format.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Format(value)))
)
Margin(System.Action)
The margin of the labels.
Parameters
configurator - System.Action<CircularGaugeScaleLabelsMarginSettingsBuilder>
The action that configures the margin.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Margin(m=>m.Bottom(value)))
)
Padding(System.Action)
The padding of the labels.
Parameters
configurator - System.Action<CircularGaugeScaleLabelsPaddingSettingsBuilder>
The action that configures the padding.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Padding(p=>p.Bottom(value)))
)
Position(System.String)
The labels positions.
Parameters
value - System.String
The value that configures the position.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Position(value)))
)
Template(System.String)
The label template. Template variables: * value - the value
Parameters
value - System.String
The value that configures the template.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Template(value)))
)
TemplateId(System.String)
The label template. Template variables: * value - the value
Parameters
value - System.String
The value that configures the template.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.TemplateId(value)))
)
TemplateView(System.Web.Mvc.MvcHtmlString)
The label template. Template variables: * value - the value
Parameters
value - System.Web.Mvc.MvcHtmlString
The value that configures the template.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.TemplateView(Html.Partial("template"))))
)
TemplateHandler(System.String)
The label template. Template variables: * value - the value
Parameters
value - System.String
The value that configures the template.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.TemplateHandler(value)))
)
Template(Kendo.Mvc.UI.TemplateBuilder)
The label template. Template variables: * value - the value
Parameters
template - TemplateBuilder<TModel>
A Template component that configures the template.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Template(template)))
)
Visible(System.Boolean)
The visibility of the labels.
Parameters
value - System.Boolean
The value that configures the visible.
Example
@(Html.Kendo().CircularGauge()
.Name("circularGauge")
.Scale(s => s.Labels(l=>l.Visible(value)))
)