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

SwitchBuilder.Option(String, Object) Method

Specifies an option by its name.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public SwitchBuilder Option(
    string jsName,
    object value
)

Parameters

Name Type Description
jsName String
value Object

Returns

Type Description
SwitchBuilder

Remarks

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

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