Comments (4)
The grid and form can be created in memory and then rendered into the main panel.
$().w2grid({ name: 'grid' });
$().w2form({ name: 'form' });
// ...
w2ui.app_layout.content('main', w2ui.grid);
// or
w2ui.app_layout.content('main', w2ui.form);
from kickstart.
Thank you vitmalina!
Can you suggest how can I use the "grid.columns" to build a form?
I see the examples in http://w2ui.com/web/docs/form and I realized that "form.items" represent the technical data of the form, such as ID, SIZE, TYPE, etc., but nothing about caption, style, etc., this information should be build by HTML.
I would like to reuse the style/items/columns/etc from "grid" to build the form. Is it possible? Any idea?
tks.
from kickstart.
Ye, as of 1.3 you can specify additional items and then if form has not HTML, it will generate it. See generateHTML in the form. When you add columns do this
{ field: 'name', type: 'text', html: { caption: '...', attr: '', span: 1, page: 0 }}
Generation is only called when you do $('...').w2form(form-config) and when there is no formURL, formHTML and inside container there is no HTML.
No documentation yet, but this week I am working on it.
from kickstart.
Great! I'll try it out.
from kickstart.
Related Issues (11)
- Add Postgres for starting requirements HOT 1
- MongoDB starting line should not require specific dbpath HOT 1
- How start demo with JSON Back-End HOT 4
- scrolling's grid HOT 1
- What is the state of the project ? HOT 5
- how to translate string in HTML template ? HOT 4
- kickstart on ie9 HOT 1
- error in package.json of KickStart
- looks (from src) like a cool project - but is hard to tell what it's about HOT 4
- Separate backend from the frontend? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kickstart.