Show Navigation
Next Topic »
The RuleEditorBuilder class provides a way to instantiate the RuleEditor class using the popular "dotted" notation.
Example
@{
ViewBag.Title = "MVC View Example";
Html.CodeEffects().Styles()
.SetTheme(ThemeType.Blue)
.Render();
}
@using (Html.BeginForm("Evaluate", "Test", FormMethod.Post))
{
<div>
@{
Html.CodeEffects().RuleEditor()
.Id("ruleEditor")
.SaveAction("Save", "Test")
.DeleteAction("Delete", "Test")
.LoadAction("Load", "Test")
.Mode(RuleType.Execution)
.Rule(ViewBag.Rule)
.Render();
}
</div>
}
@{
Html.CodeEffects().Scripts().Render();
}
Post your questions on
Stackoverflow and become a part of our growing community
Comments:
0
|
|