Back to Devexpress

LinearGaugeBuilder.ID(String) Method

aspnetcore-devextreme-dot-aspnet-dot-mvc-dot-builders-dot-lineargaugebuilder-dot-id-x28-system-dot-string-x29.md

latest1.5 KB
Original Source

LinearGaugeBuilder.ID(String) Method

Specifies the id attribute for the control’s HTML element.

Namespace : DevExtreme.AspNet.Mvc.Builders

Assembly : DevExtreme.AspNet.Core.dll

Declaration

csharp
public LinearGaugeBuilder ID(
    string id
)

Parameters

NameTypeDescription
idString

The id attribute value.

|

Returns

TypeDescription
LinearGaugeBuilder

A reference to this instance after the method is called.

|

Remarks

This method allows you to specify the id attribute for the control’s HTML element. You can use this attribute to access the control’s JavaScript API at runtime (for example, to call methods). Refer to ID Option for more information.

csharp
@Html.DevExtreme().LinearGauge().ID("myLinearGauge")

See Also

LinearGaugeBuilder Class

LinearGaugeBuilder Members

DevExtreme.AspNet.Mvc.Builders Namespace