FormSimpleItemBuilder.Editor(Func<FormItemEditorFactory, WidgetBuilder>) Method
Configures a control that is used as a form item’s editor.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public FormSimpleItemBuilder Editor(
Func<FormItemEditorFactory, WidgetBuilder> widgetFactory
)
Parameters
Name | Type | Description |
---|---|---|
widgetFactory | Func<FormItemEditorFactory, WidgetBuilder> | A function that allows you to configure the control. |
Returns
Type | Description |
---|---|
FormSimpleItemBuilder | 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