The requested page is not available for the requested platform. You are viewing the content for Default platform.

SwitchBuilder.ID(JS) Method

Specifies a JS expression calculating an HTML id for the root element of the widget defined within a template.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SwitchBuilder ID(
    JS expr
)

Parameters

Name Type Description
expr JS

Returns

Type Description
SwitchBuilder

Remarks

In Razor files, use the following notation to set the option's value:

@Html.DevExtreme().Switch().ID(...)
See Also