justin-lu / dynamic_grids Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mouse-lin/dynamic_grids
动态grid(ExtJs实现前台)
License: MIT License
This project forked from mouse-lin/dynamic_grids
动态grid(ExtJs实现前台)
License: MIT License
DynamicGrids(wando) ============ #在你的Gemfile 添加上composite_primary_keys gem 'composite_primary_keys', '=3.1.0' #获取需要的辅助插件 plugins provider #创建dynamic_grid 需要用到的数据 rails generate create_dynamic_grid #添加必要的Js文件到application中 <%= javascript_include_tag 'dynamic_grids_js/dynamic_grids.js' %> #ExtJs 文件中的使用方式: var grid = new Wando.grid.DynamicGridPanel({ storeUrl: 'controllers/actions', columnsConfig: { header_column_name: {width: 1000, renderer: some_render_action } #example }, }) #Rails controller 使用方式: def dynamic_grids dynamic_grids Model,grid_name,option end #跨表获取字段,倘若在需要获取的表头项不在表内,请参考provider使用方式来赋值Headers的index order 表 Order(id: integer, name: string) order_item 表 order_item(id: integer, order_id: integer, name: string) #通过order需要获取order_item的name,header的写法 Header.create(:index => "order_item/name") Example ======= Example goes here. Copyright (c) 2011 [name of plugin creator], released under the MIT license
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.