Skip to main content

DiagramToolboxBuilder.ShapeIconsPerRow(JS) Method

Specifies the number of shape icons in a row. Mirrors the client-side shapeIconsPerRow option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DiagramToolboxBuilder ShapeIconsPerRow(
    JS value
)

Parameters

Name Type Description
value JS

A JavaScript expression that specifies the option value.

Returns

Type Description
DiagramToolboxBuilder

A reference to this instance after the method is called.

Remarks

Use the new JS() expression to set the option’s value.

<script>
    var myValue = ...;
</script>

```cshtml
@(Html.DevExtreme().Diagram()
    .Toolbox(toolbox => toolbox
        .ShapeIconsPerRow(new JS("myValue"))
)
See Also