Giter Club home page Giter Club logo

Comments (3)

Lissy93 avatar Lissy93 commented on May 22, 2024 1

Hey @shadowKing001

Just to let you know, I've added some new data attributes that will fix this for you in #8 (specifically 10ec99d).

Under displayData for a given section, you can now specify layout: grid, and they use itemCountX to set how many items will display horizontally, and optionally itemCountY to do the same vertically.

Don't forget to update to the latest version. Hope that helps :)

from dashy.

Lissy93 avatar Lissy93 commented on May 22, 2024

Thanks so much for raising this.

The issue is in fact my bad documentation, as I didn't really explain it well.
The rows and columns are in fact as a proportion of screen width / height, rather than by number of items within each tile. It's because I'm using CSS Grid Layout to make the page responsive.

For example:
Example of rows and cols

By default, on most screens there will be 4 columns, but large screens will have 5, and small will have 3 or 2 (depending on how much space there is), and small mobiles will just have 1. Rows are dynamic depending on how much content you have divided by number of columns.

In the meantime I'll update the docs, but in the future I would like to make the whole process much more intuitive. I'd not thought about measuring each section by number of items, as you expected, but I think that's a great idea :) And sorry for the confusion

P.s thanks for spotting the typo in the pop-up message, I've fixed that now :)

from dashy.

shad-lp avatar shad-lp commented on May 22, 2024

Thanks a lot I'll look into it in the coming days. 👌

from dashy.

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.