没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|使用教程|编辑:我只采一朵|2014-05-30 10:05:25.000|阅读 2210 次
概述:本节为你介绍的是日历组件Kendo.ui.Calendar的Configuration。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
相关链接:
本节为你介绍的是 Kendo.ui.Calendar,分为上下两节,本节为大家介绍的是Calendar日历组件的Configuration。
culture | String(default: "en-US")
指定组件的语言。
示例 - 指定为德语(German)
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ culture: "de-DE" }); </script>
dates Array
指定日期列表,并传递到month模板。
示例 - 指定日期列表
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ value: new Date(2000, 10, 1), dates: [ new Date(2000, 10, 10, 10, 0, 0), new Date(2000, 10, 10, 30, 0) ] //can manipulate month template depending on this array. }); </script>
depth String
指定导航深度,下面是可以用的一些值:
"month" - shows the days of the month
"year" - shows the months of the year
"decade" - shows the years of the decade
"century" - shows the decades from the century
注意:如果开始选项比实际的深度低,那century不会被应用,所以应该同时设置开始和depth选项。
示例-设置日历的导航深度
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ depth: "year" }); </script>
footer | String|Function
生成页脚的模板,如果为false,页脚则无法生成。
示例 - 将页脚模板定为一个函数
<div id="calendar"></div> <script id="footer-template" type="text/x-kendo-template"> Today - #: kendo.toString(data, "d") # </script> <script> $("#calendar").kendoCalendar({ footer: kendo.template($("#footer-template").html()) }); </script>
示例 - 将页脚模板定为一个字符串
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ footer: "Today - #: kendo.toString(data, 'd') #" }); </script>
format | String(default: "MM/dd/yyyy")
示例- 设定一个日期格式
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ format: "yyyy/MM/dd" }); </script>
max | Date(default: Date(2099, 11, 31))
指定日历可以显示的最大日期
示例-指定最大日期
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ max: new Date(2013, 0, 1) // set the max date to Jan 1st, 2013 }); </script>
min | Date(default: Date(1900, 0, 1))
指定日历上可以显示的最小日期。
示例-指定最小日期
<div id="calendar"></div> <script> // set the min date to Jan 1st, 2011 $("#calendar").kendoCalendar({ min: new Date(2011, 0, 1) }); </script>
month Object
cells模板以"month" 视图显示。
month.content String
默认情况下,组件会生成相应的日期的值。
示例-指定cell模板为字符串
<div id="calendar"></div> <script id="cell-template" type="text/x-kendo-template"> <div class="#= data.value < 10 ? 'exhibition' : 'party' #"></div> #= data.value # </script> <script> $("#calendar").kendoCalendar({ month: { content: $("#cell-template").html() } }); </script>
month.empty String
默认情况下,组件会生成一个空字符串。
示例-设定空cell模板为一个字符串
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ month: { empty: '-' } }); </script>
start String(default: "month")
设定开始视图,下面是开始视图支持的值:
"month" - shows the days of the month
"year" - shows the months of the year
"decade" - shows the years of the decade
"century" - shows the decades from the century
示例-设定日历显示的初始化视图
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ start: "year" }); </script>
value Date(default: null)
设定选中的日期。
示例-设定组件选中的日期值
<div id="calendar"></div> <script> $("#calendar").kendoCalendar({ value: new Date(2012, 0, 1) }); </script>
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com
文章转载自:慧都控件本文将探索如何在DevExpress Blazor DxAiChat组件中启用函数调用,欢迎下载最新版组件体验!
从事建筑、工程、施工行业,将 DGN 文件转换为 DXF 格式都能确保与各种 CAD 应用程序兼容并无缝集成。Aspose.CAD 能够简化转换过程,提供强大的功能和灵活性。
本教程将为大家介绍如何使用MyEclipse创建一个WEB项目,欢迎下载最新版IDE体验!
本文主要介绍如何使用DevExpress WPF Grid控件实现节点(Nodes)的遍历,欢迎下载最新版组件体验!
运用JavaScript和HTML5就能快速创建性能最优的Web应用程序
Kendo UI Mobile使用HTML5和JavaScript快速开发跨平台原生移动应用程序的移动应用程序框架
Kendo UI DataViz跨平台跨设备的数据可视化组件
Kendo UI Server Wrappers帮助你开发基于Kendo UI的出色的HTML5应用程序,并且无需亲自编写JavaScript。
Kendo UI CoreKendo UI Core是Kendo UI的开源免费版,是HTML5构架下的用于网络和移动开发的工具。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@evget.com
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
慧都科技 版权所有 Copyright 2003-
2025 渝ICP备12000582号-13 渝公网安备
50010702500608号