使用telerik ui的asp.net mvc vue.js [英] using telerik ui for asp.net mvc vue.js

查看:140
本文介绍了使用telerik ui的asp.net mvc vue.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人将vue.js与Telerik UI一起用于ASP.Net MVC吗?不是Kendo UI控件吗?

Has anyone used vue.js with Telerik UI for ASP.Net MVC? Not the Kendo UI controls?

专门查找有关将v-bind和v-model与控件一起使用的示例.

Specifically looking for examples on using v-bind and v-model with the controls.

例如一个复选框

@ Html.Kendo.Checkbox().Name()

@Html.Kendo.Checkbox().Name()

我想绑定名称并设置选中的内容,就像我为标准html复选框所做的那样

I'd like to bind the name and set the checked and such like I've done for a standard html checkbox

type="checkbox" v-bind:id="thePlan.Id"    class="plan-selection" v-bind:checked="thePlan.IsSelected" v-model="thePlan.IsSelected"

有人做过这样的事情吗?

Has anyone done something like this?

推荐答案

您可以使用HtmlAttributes中的new Dictionary<string, object>添加所需的所有HTML属性.

You can add all HTML attributes you need using new Dictionary<string, object> in HtmlAttributes.

喜欢这个:

@Html.Kendo().CheckBox().Name("checkBox").HtmlAttributes(new Dictionary<string, object> { { "class", "plan-selection" }, { "v-bind:id", "thePlan.Id" } })

这篇关于使用telerik ui的asp.net mvc vue.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆