HtmlEditorToolbarBuilder.Items(IEnumerable<HtmlEditorToolbarItem>) Method
In This Article
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
C#
public HtmlEditorToolbarBuilder Items(
IEnumerable<HtmlEditorToolbarItem> value
)
#Parameters
Name | Type | Description |
---|---|---|
value | IEnumerable<Html |
The option value. |
#Returns
Type | Description |
---|---|
Html |
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