zoukankan      html  css  js  c++  java
  • ligerui+json_002_Grid用法、属性总结

    原文更全面,地址:
    http://blog.csdn.net/dxnn520/article/details/8216560

    // ========================================= 【每一项的TYPE类型】
    { display: '主键', name: 'id', 50, type: 'int' }, // 整型
    { display: '生日', name: 'birthday', type: 'date', 100 }, // 日期型{ display: '主键', name: 'id', 50, type: 'Text' }, // 文本型

    {display: "序号", name: "Sort", 50, type: "text", align: "left" },

    //========================================== 【详细说明】
    【display】 -- 标题内容 -- 【display: "序号"】 【name】 -- 对应字段名称 -- 【name: "Sort"】
    【width】 -- 宽度 -- 【 50】
    【type】 -- 文本型、数值型、日期型 -- 【type: "text",type: "int",type: "Text",type: "date",type:"float"】
    【align】 -- 左对齐、右对齐、居中 -- 【align: "left" --left/center/right】
    【minWidth: 140 】 --列的最小宽度-- 【minWidth: 140】
    【hide】 -- 是否隐藏 -- 【hide: false】
    【minWidth 】 -- 列的最小宽度 -- 【minWidth: 40】
    【isSort】 -- 是否允许此列排序,默认为允许排序 -- 【isSort: true】
    【sAllowHide】 -- 是否允许隐藏,如果允许,将会出现在【显示/隐藏列右键菜单】 -- 【isAllowHide: true】
    【string】 -- 类型,用于排序 -- 【type: 'string'】
    【editor】 -- 单元格编辑器 -- 所有的编辑器的构造的定义在$.ligerDefaults.Grid.editors,比如
    editor: { type: 'text'}, // 【文本框】 editor: { type: 'select'}, // 【选择框】

  • 相关阅读:
    SQL语句熟悉
    CSS3 attribute
    轮播器
    PHP 邮箱操作的Action
    Hole puncher Show Picture
    力扣算法——133.CloneGraph【M】
    力扣算法——134GasStation【M】
    力扣算法——135Candy【H】
    力扣算法——136SingleNumber【E】
    力扣算法——137SingleNumberII【M】
  • 原文地址:https://www.cnblogs.com/zjsy/p/4390035.html
Copyright © 2011-2022 走看看