-
Notifications
You must be signed in to change notification settings - Fork 149
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
Is it possible to customise the base size and layout of widgets in the grid? #102
Comments
have you tried to override this file? https://github.com/gottfrois/dashing-rails/blob/master/app/assets/javascripts/dashing/dashing.coffee On your rails app, create an exact copy of this file, located at the same location and add your custom code. Please let me know. |
Oddly, that works in the development environment, but not in production. Looking at the generated application.js it looks like the overridden version of the file is not included in the compiled assets. |
Have you tried adding it manually in your |
That does something different again. The new code is included in the generated js, but never gets executed (I'm basing that on changing the text that gets printed to the JS console, plus the widgets don't change size. Works as expected in development environment. |
That's progress :) |
Agree it's weird, will have a poke at it over the weekend. It's a toy project at present so if I end up running it in development env then so be it! |
yeah, to be honest, dashing rails is not really production ready due to using the rails action live... |
Hi @jameswtelfer, did you solve this problem? I'm trying to customize the size at production too |
@NashL not really I'm afraid. It sort of worked if I tuned on all the options to enable the asset generation pipeline in production, but at that point you're practically in development anyway. |
the ideal approach would be to refactor the project using action cable instead |
With the original dashing it is possible to customise the size & layout of the widget grid via the application.coffee script that is generated for each dashboard.
I tried lifting the version out of the dashing-rails gem and replicating within my application assets with the new values, which worked so long as
config.assets.debug = true
is present within the environment config, which obviously means it doesn't work in production. In production the updated code is present withinapplication.js
, but does not get executed, instead the code from the gem is executed.Any suggestions appreciated as I've reached the limit of my abilities at this point!
The text was updated successfully, but these errors were encountered: