一个通用的Web UI构建结构化搜索或筛选查询:structured-filter

jopen 8年前

structured-filter是一个通用的Web UI构建结构化搜索或筛选查询。structured-filter 是 jQuery UI 部件,支持各种配置和主题。

<script type="text/javascript">      $(document).ready(function() {          $("#search").structFilter({              fields: [                  {type:"text", id:"lastname", label:"Lastname"},                  {type:"text", id:"firstname", label:"Firstname"},                  {type:"boolean", id:"active", label:"Is active"},                  {type:"number", id:"age", label:"Age"},                  {type:"date", id:"bday", label:"Birthday"},                  {type:"list", id:"category", label:"Category",                      list:[                          {id:'1', label:"Family"},                          {id:'2', label:"Friends"},                          {id:'3', label:"Business"},                          {id:'4', label:"Acquaintances"},                          {id:'5', label:"Other"}                      ]                  }              ]          });      });  </script>    <div style="width:100px;" id="search"></div>

在线演示

一个通用的Web UI构建结构化搜索或筛选查询:structured-filter

项目主页:http://www.open-open.com/lib/view/home/1417435779149