Skip to main content

HtmlEditorToolbarBuilder.Items(IEnumerable<HtmlEditorToolbarItem>) Method

Configures toolbar items. These items allow users to format text and execute commands. Mirrors the client-side items option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public HtmlEditorToolbarBuilder Items(
    IEnumerable<HtmlEditorToolbarItem> value
)

Parameters

Name Type Description
value IEnumerable<HtmlEditorToolbarItem>

The option value.

Returns

Type Description
HtmlEditorToolbarBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option’s value:

@(Html.DevExtreme().HtmlEditor()
    .Toolbar(toolbar => toolbar
        .Items(new[] { HtmlEditorToolbarItem.AlignCenter })
    )
)
See Also