FormSimpleItemBuilder.Editor(Func<FormItemEditorFactory, WidgetBuilder>) Method
In This Article
Configures a control that is used as a form item’s editor.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public FormSimpleItemBuilder Editor(
Func<FormItemEditorFactory, WidgetBuilder> widgetFactory
)
#Parameters
Name | Type | Description |
---|---|---|
widget |
Func<Form |
A function that allows you to configure the control. |
#Returns
Type | Description |
---|---|
Form |
A reference to this instance after the method is called. |
#Remarks
@(Html.DevExtreme().Form()
.Items(items => {
items.AddSimple()
.Editor(e => e.CheckBox()
// call methods in a chain to customize the control
);
})
)
See Also