Giter VIP home page Giter VIP logo

Comments (7)

ota-meshi avatar ota-meshi commented on May 12, 2024

Thank you for this question.

This is correct behavior.
vue-cheetah-grid does not display elements of <div class=define>.

from cheetah-grid.

drpcken avatar drpcken commented on May 12, 2024

Thank you for this question.

This is correct behavior.
vue-cheetah-grid does not display elements of <div class=define>.

Oh ok I see, but how do I implement it to display? I'm sorry but I'm confused why it doesn't show initially. I'm importing it globally, then creating my own component with the grid.

Thank you !

from cheetah-grid.

ota-meshi avatar ota-meshi commented on May 12, 2024

I may have misunderstood your question.

In your implementation, is the container element of the grid displayed when the grid is initialized?
There may be a problem if the container element is not displayed when initializing the grid.

In this case, after the container element is displayed, you need to call the following methods of the grid instance.
updateSize(), updateScroll() and invalidate()

(You need to use [email protected].)

from cheetah-grid.

drpcken avatar drpcken commented on May 12, 2024

I'm using a single page vue application. Using "cheetah-grid": "^0.7.1" and "vue-cheetah-grid": "^0.7.1" The grid is in a component. I'm not running any methods at runtime (this is probably my problem). I guess I need to read up more on this. The only way I was able to get this to display was adding this scoped css to my component: https://www.codepile.net/pile/PdPEgMV7

from cheetah-grid.

ota-meshi avatar ota-meshi commented on May 12, 2024

Perhaps there is this problem if you do not set the height and width of the container element.
I will try to reproduce it if I have the next work time.

I will close this issue.
If the problem persists please reopen this issue or open a new issue.

from cheetah-grid.

drpcken avatar drpcken commented on May 12, 2024

Sorry to keep commenting on this, but I did just as you said and didn't even use a vue component, same exact issue. I even ran grid.updateSize(), grid.updateScroll() and grid.invalidate(). If add that css back like I showed you in my previous link, it displays the grid and data. Otherwise I see nothing... https://www.codepile.net/pile/xOgrzDZg

from cheetah-grid.

ota-meshi avatar ota-meshi commented on May 12, 2024

@drpcken Thank you for additional information.

I checked the workings of the grid.
I noticed that the grid is not displayed if you do not set the height for the parent element of <div class="cheetah-grid">.

So, as you say, css defining is required.

In order to avoid confusion, I added html with style to the document sample.
https://future-architect.github.io/cheetah-grid/0.7/demos/gettingstarted/download_vue.html#vue-instance-template
https://future-architect.github.io/cheetah-grid/0.7/demos/gettingstarted/download.html#javascript-html

Thank you for your help.

from cheetah-grid.

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.