New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cat-grid

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cat-grid

## 功能

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Cat-Grid

功能

  • 展示行列数据
  • 单元格数据格式化
  • 增、删、查、改
  • 分页
  • 全选
  • 排序
  • 额外信息展示

Tips

  • If u do not need Pagination, just prevent 'offset\limit\total'
  • When using 'renderer', Grid will offer u current value in td, current line Data, info about this td

API

Props属性如下

props说明类型默认值备选
columns列的定义array[]
rows数据列表array[]
offset分页码、不设置相关属性则不会产生分页组件number-1
total总页数number0
limit每页数量number20
renderKeykey,需要自定义绑定到一个key,如果数据没有唯一的key,将会自定采用indexstring
enableSelection使用全选功能booleanfalse
className自定义容器的类名stringtable-responsive
heightControl高度限制string‘’
TableStyle表格风格array['bordered']bordered\triped\condensed
myHeadStyle表格头风格stringactiveactive\success\info\warning\danger
batch自定义绑定多选功能的按钮array[]
  • 每一行都可以单独设定divStyle、className, className可以直接传递字符串

  • 每一单元格可以单独设定divStyle、className、orderBy、renderer

  • 行的回调参数是line info

  • 单元格的回调参数分别是value line info

FAQs

Package last updated on 22 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts