GanttStripLineBuilder.Option(String, Object) Method
Specifies an option by its name.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public GanttStripLineBuilder Option(
string jsName,
object value
)
Parameters
Name | Type | Description |
---|---|---|
jsName | String | The option name. |
value | Object | The option value. |
Returns
Type | Description |
---|---|
GanttStripLineBuilder | A reference to this instance after the method is called. |
Remarks
You can use this method to set up client-side simple options or create custom options.
Use the following notation to set the option’s value:
@(Html.DevExtreme().Gantt()
.StripLines(stripLines =>
stripLines.Add()
.Start(new DateTime(DateTime.Now)
.Option("optionName", "value")
.Title("CurrentTime");
stripLines.Add()
.Start(new Date(1920, 9, 10))
.End(new Date(1920, 11, 1))
.Title("Final Stage");
// ...
)
)
See Also