gruntjsbowergrunt-useminember-table

ember 3rd party component: link or something else?


I would like to use ember-table in my ember app. I have just installed it via bower. However, it seems that ember requires the various pieces (such as templates, etc) to be in specific directories.

Should I just ln -s these, or is there some way to tell ember to search inside bower_components/ember-table?

UPDATE:

by analogy with ember-table example app, this block seems to mostly give me what I need:

// ember-table w/ requirements
require('bower_components/bootstrap/js/bootstrap.min');
require('bower_components/jquery-mousewheel/jquery.mousewheel.js');
require('bower_components/antiscroll/antiscroll');
require('bower_components/datejs/build/date.js');
require('bower_components/ember-addpar-mixins/resize_handler');
require('bower_components/ember-addepar-mixins/style_bindings');
require('bower_components/ember-table/dist/ember-table');

It turns out that ember-table injects templates into ember, so they don't need to be in templates/components. (NB ember guide on components might want to discuss how to do this...)

More problematic so far for me is disentangling bootstrap from ember-table. (Subquestions: 1) is there a way to convert less to scss as ember-table is less-based? Is there a version of bootstrap that uses a css namespace so that it doesn't make global changes?)


Solution

  • With apologies to Steve for confusing question... see:

    https://github.com/Addepar/ember-table/issues/109

    For future reference, in fact even at first most things were working, but it didn't look like it because css wasn't right. (For one thing, ember tables must be rendered in suitably confined space if you want to see them do their magic scroll trick.)

    The example repo mentioned by arzibel: https://github.com/FellowMD/ember-table-scroll-issue I found quite helpful.