没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
 
                
            原创|使用教程|编辑:龚雪|2019-11-19 09:23:30.203|阅读 241 次
概述:Kendo UI Filter小部件是一个统一的控件,用于筛选具有数据源的数据绑定组件。全球化进程结合组件消息的翻译(本地化)和使其适应特定的文化(国际化和支持从右到左),通过过滤器消息的本地化可以启用过滤器的全球化功能。
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
相关链接:
Kendo UI目前最新提供Kendo UI for jQuery、Kendo UI for Angular、Kendo UI Support for React和Kendo UI Support for Vue四个控件。Kendo UI for jQuery是创建现代Web应用程序的最完整UI库。
小部件是一个统一的控件,用于筛选具有数据源的数据绑定组件。
全球化进程结合组件消息的翻译(本地化)和使其适应特定的文化(国际化和支持从右到左),通过过滤器消息的本地化可以启用过滤器的全球化功能。
过滤器提供用于定义其过滤器运算符(例如包含、等于或大于)和逻辑消息(例如,AND和OR)的文本选项。
要本地化消息,请在messages字段中设置所需的字符串。要本地化运算符的名称,请列出可用的运算符,然后在operators字段中设置其文本。
<div id="filter"></div><ul id="listView"></ul>
<script type="text/x-kendo-template" id="item">
  <li>
  <strong>#= name #</strong>, aged #= age #, is on vacation: #= isOnLeave #
  </li>
  </script>
<script>
  $(document).ready(function () {
  var dataSource = new kendo.data.DataSource({
  data: [
  { name: "Jane Doe", age: "25", isOnLeave: false },
  { name: "John Doe", age: "33", isOnLeave: true },
  { name: "John Smith", age: "37", isOnLeave: true },
  { name: "Nathan Doe", age: 42, isOnLeave: false }
  ],
  schema: {
  model: {
  fields: {
  name: { type: "string" },
  age: { type: "number" },
  isOnLeave: { type: "boolean" }
  }
  }
  }
  });
$("#filter").kendoFilter({
  dataSource: dataSource,
messages: {
  or: "OR", // The OR main logic text.
  and: "AND", // The AND main logic text.
  apply: "Set Filter" // The APPLY button text.
  },
  operators: {
  string: {
  eq: kendo.ui.Filter.fn.options.operators.string.eq, // Take the default Kendo UI text.
  contains: "Partially Matches" // Define a custom text.
  },
  number: {
  gte: "Larger Than", // Define a custom text.
  lt: kendo.ui.Filter.fn.options.operators.number.lt // Take the default Kendo UI text.
  }
  },
expressionPreview: true, // Shows a text preview of the filter expression.
  applyButton: true, // Shows the built-in Apply button.
  fields: [ // Defining the fields is not mandatory. Otherwise, they will be taken from the data source schema.
  // If you define the fields, their names and types must match the data source definition.
  { name: "name", type: "string", label: "Name" },
  { name: "age", type: "number", label: "Age" },
  { name: "isOnLeave", type: "boolean", label: "On Vacation" }
  ],
  expression: { // defining an initial filter expression is not required
  logic: "and",
  filters: [
  { field: "age", value: 30, operator: "gte" },
  { field: "name", value: "Doe", operator: "contains" }
  ]
  }
  }).data("kendoFilter").applyFilter();
  // Chain the method call to immediately apply filtering after the widget initialization because an initial filter is set.
$("#listView").kendoListView({
  dataSource: dataSource,
  template: kendo.template($("#item").html())
  });
  });
  </script>扫描关注慧聚IT微信公众号,及时获取最新动态及最新资讯

本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@ldacury.cn
文章转载自:慧都网



 
					本文将为大家介绍一些MyEclipse开发过程中能用到的EJB开发工具,欢迎下载最新版体验!
 
					本文主要介绍如何在MVVM应用程序中使用虚拟源,欢迎下载最新版组件体验!
 
					Parasoft C/C++test是一款功能强大的代码测试与分析工具,专为提升代码质量、确保软件安全与可靠性而设计。要在 Ubuntu 桌面环境中使用这一强大的工具,第一步就是完成其安装与许可证配置。
 
					注意: Cogent DataHub 软件 v11 包含一些新功能,您的目标操作系统可能不支持这些功能。
 相关产品
相关产品
	 全新升级的Kendo UI,是创建数据丰富的Web应用程序的最完整UI库。
Kendo UI for jQuery完整的jQuery UI组件库,可快速构建出色的高性能响应式Web应用程序。
 最新文章 MORE
最新文章 MORE  
		
 靠谱朗驰娱乐体育相关的文章 MORE
靠谱朗驰娱乐体育相关的文章 MORE  
		
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@ldacury.cn
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
 
                 
             靠谱朗驰娱乐体育
靠谱朗驰娱乐体育  
					 
					 
					 
					 
					