FormItemEditorFactory.ColorBox() Method
In This Article
Creates a ColorBox control that is used as a form item’s editor.
Namespace: DevExtreme.AspNet.Mvc.Factories
Assembly: DevExtreme.AspNet.Core.dll
#Declaration
C#
public ColorBoxBuilder ColorBox()
#Returns
Type | Description |
---|---|
Color |
An instance of Color |
#Remarks
@(Html.DevExtreme().Form()
.Items(items => {
items.AddSimple()
.Editor(e => e.ColorBox()
// call methods in a chain to customize the control
);
})
)
See Also