co3moz / eztable Goto Github PK
View Code? Open in Web Editor NEWEasy table generator with sort, search, edit for javascript
Easy table generator with sort, search, edit for javascript
module
. Module property is a container that holds extra scripts.page
property too. This property loads pager script.important: Module should cooperate with search and sort modules too.
- When some thing searching, user can use pager too
- When user sort things, pager should change too.
rowPerPage
(Integer) How much row will be print for each page.
onPageChange
(function) This event called when user click page.
var table = new ezTable({
headers: {
test: {
title: 'pager test'
}
},
module: {
pager: {
rowPerPage: 3,
onPageChange: function(old, new) {}
}
}
});
table.bind("pagerTest");
table.load([
{test: 1},
{test: 2},
{test: 3},
{test: 4},
{test: 5},
{test: 6},
{test: 7},
{test: 8},
{test: 9},
{test: 10},
{test: 11}
]);
generated view
module
. Module property is a container that holds extra scripts.search
property too. This property loads search script.important: Module should cooperate with pager and sort modules too.
- When click pager, user can use searching too
- When user sort things, search should change too.
type
(String) Tells how search mechanism will work
number
: Only numbers supported.select
: Possible choises will appears automaticly in comboboxsolidSelect
: Same as select, difference is developer must define selectionscheckbox
: Select for tickstring
: defaulttypeDefinition
(Any) Stores information about types.
.typeDefinition (type: solidSelect)
(Object) Stores Searching values. Key is Text that user see, Value is stores really search behind.
... deleted: { type: 'solidSelect', typeDefinition: { Yes: true, No: false } }
var table = new ezTable({
headers: {
test: {
title: 'search test'
},
cantSearchable: {
title: 'no search :('
}
},
module: {
search: {
test: {
type: 'number',
style: {
width: "100%"
},
onKeyUp: function (target, e) {
}
}
}
}
});
table.bind("searchTest");
table.load([
{test: 1},
{test: 2},
{test: 3},
{test: 4},
{test: 5},
{test: 6},
{test: 7},
{test: 8},
{test: 9},
{test: 10},
{test: 11}
]);
generated view
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.