Add Controls to a Project
Follow the instructions below to add a control to your application:
- Open a Razor file (.cshtml or .vbhtml).
- Call the
DevExtreme()
HtmlHelper extension method. - Call the control’s builder method.
For example, the following code adds the Button control to a view, specifies the control’s id and text:
@using MyApp.Models
<h2>Home</h2>
@(Html.DevExtreme()
.Button()
.ID("submitButton")
.Text("submit")
)
Refer to Create a Control and Scaffold Controls for more information on how to configure controls.