Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a full example #148

Open
tbarbugli opened this issue Nov 3, 2014 · 3 comments
Open

add a full example #148

tbarbugli opened this issue Nov 3, 2014 · 3 comments

Comments

@tbarbugli
Copy link

it would be great to have a full working example that one can copy paste after bower install is ok. I am probably not going to use this library for this exact reason :(

@EvHaus
Copy link
Owner

EvHaus commented Nov 4, 2014

There are many examples in the examples/ section: https://github.com/globexdesigns/doby-grid/tree/master/examples

basic.js is probably the simplest of them all. The only thing that you'll need to do is use

new DobyGrid({
    columns: columns,
    data: dataset
});

instead of just the:

return {
    columns: columns,
    data: dataset
};

@EricWoodsCF
Copy link

@tbarbugli - I totally agree.
@globexdesigns - personally, I found the examples fine, I ran them fine. I could edit the example js files fine. I don't want to learn Require JS. BUT after that, it is not trivial to create a basic html file that creates a grid on a page. The whole obfuscation behind Require JS is very tidy and efficient but confusing as heck for a newcomer. So I'll probably not use this library too.

So that is two devs going elsewhere in a single month. Or should I say two devs going elsewhere that have taken the time to lodge an issue - I'm sure there are an order of magnitude more that gave up without saying anything.

@EvHaus
Copy link
Owner

EvHaus commented Nov 27, 2014

@EricWoodsCF Thank you for the feedback. As part of the next release for v0.1.0 we're definitely planning a revamp of the example pages.

Right now the examples serve two purposes:

  1. To allow DobyGrid developers (mainly just us) to quickly test through various scenarios
  2. To allow DobyGrid users (you) to see how to quickly construct some samples

The examples definitely focus a bit too much on #1 and now enough on #2. We plan to correct this by splitting up the examples into two categories to better help new users to discover how to use the library.

@EvHaus EvHaus added this to the v0.1.0 milestone Nov 27, 2014
@EvHaus EvHaus modified the milestone: v0.1.0 Dec 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants