您的位置:首页 > Web前端 > HTML5

HTML5 UI框架Kendo UI Web中如何实现Grid网格控件本地化

2013-11-07 10:12 567 查看
Kendo UI Web包含数百个创建HTML5 web app的必备元素,包括UI组件、数据源、验证、一个MVVM框架、主题、模板等。

为了使得产品可以符合不同市场的本地化需求和语言,Kendo UI中的网格控件提供了一种方法,来帮助用户通过使用配置选项来本地化用户的界面。

工具栏控件的本地化

toolbar: [
//name - name of the available commands, text - text to be set on the button
{ name: "create", text: "Custom Create" },
{ name: "save", text: "Custom Save" },
{ name: "cancel", text: "Custom Cancel" }
]


[b]列命令的本地化[/b]

columns: [
{ field: "FirstName", title: "First Name" },
{ field: "LastName", title: "Last Name" },
{ command: [
{
name: "edit",
text: { // sets the text of the "Edit", "Update" and "Cancel" buttons
edit: "CustomEdit",
update: "CustomUpdate",
cancel: "CustomCancel"
}
},
{ name: "destroy", text: "CustomDelete" } // sets the text of the "Delete" button
],
title: " "
}
]


[b]过滤器菜单本地化[/b]

[b][b]组头本地化[/b][/b]

[b][b][b]列菜单本地化[/b][/b][/b]

[b][b][b]页面本地化[/b][/b][/b]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: