Giter VIP home page Giter VIP logo

Comments (5)

bensladden avatar bensladden commented on May 25, 2024

Interesting use case If you were to copy dashItem.vue and not add it to layout (i.e. comment out line "this.layout.addDashItem(this.item);" then in theory yes. Hopfully it is that simple

from vue-responsive-dash.

bscbrn avatar bscbrn commented on May 25, 2024

I am sorry, I am not sure I got you.
Could you please explain a little bit more?

Thank you

from vue-responsive-dash.

bensladden avatar bensladden commented on May 25, 2024

Create you own DashItem.vue copying the code in this lib (you will need the ts file aswell.) and just comment out the line which adds it to layout. It is the layouts job to check collisions so if its never added to the layout it wont check it for collisions.

from vue-responsive-dash.

bscbrn avatar bscbrn commented on May 25, 2024

Thank you,
understood.
However I am not using the .vue file but I am including the js script in my HTML file as follows:

<script src=\"/resources/vue-responsive-dash.umd.min.js\"></script>

and then
Vue.use('vue-responsive-dash');
in my .js file.

Are there any chance to have a not minimized .js file in the dist folder so that I can make the suggested hack?

I am sorry but I am not very expert.

from vue-responsive-dash.

bensladden avatar bensladden commented on May 25, 2024

I'm assuming you don't have typescript in your project judging from the info above so what i recommended wont work. Unfortunately i don't have an easy solution for this. I also think that overlapping dashitems is problematic when trying to resize-drag anyway. Do you need to resize/drag the overlapping items? If not maybe this will help: #63 where we created dash items in the spare spaces.

from vue-responsive-dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.