Giter Club home page Giter Club logo

Comments (6)

tiberiuzuld avatar tiberiuzuld commented on May 13, 2024 1

No.
gridType: fit will adjust to container size. Items will have row height and column width depending on that container sizes. So the dashboard will not have any scrollbars.

gridType: fixed will have the width and height of the container but the items will have a fixed row height and column width provided by the options fixedRowHeight and fixedColWidth. In this case the dashboard can have both scrollbars present.

gridType: fixed and some other options are not available in 1.x version. In case you use [email protected]

from angular-gridster2.

tiberiuzuld avatar tiberiuzuld commented on May 13, 2024

Hi @kirtiesl
What do you mean by strange ? the whole behavior depends on width and height of the container.

The defaultOptions here and explanation

So defaultItemCols and defaultItemRows is the number is set on an item that doesn't have cols and rows

These fixedColWidth and fixedRowHeight are for gridType:fixed and they say a fixed height for rows and width for columns in pixels.

These maxItemCols,minItemCols,maxItemRows,minItemRows refer to min and max the items in the grid can resize to by the user.

I hope this answers your questions
Let me know if you have any more questions

from angular-gridster2.

karanaditya993 avatar karanaditya993 commented on May 13, 2024

do you mean gridType: fit instead of gridType: fixed?

from angular-gridster2.

kirtiesl avatar kirtiesl commented on May 13, 2024

Could you tell how to set max number of grid-item in columns and rows??

from angular-gridster2.

tiberiuzuld avatar tiberiuzuld commented on May 13, 2024

You mean max number of items you can have in a grid ?
Then if you put in only 1:1 items in a grid of 2:2 you will have 4 items.
So defaultItemCols and defaultItemRows 1
And maxCols, maxRows 2
But I will do this check in the add button function more easily. grid.length > 3 then don't add.

Why would you want to restrict the grid this much ?
If you restrict the grid this much then why use it? Why don't you use the grid from material or bootstrap?

from angular-gridster2.

tiberiuzuld avatar tiberiuzuld commented on May 13, 2024

Closing issue because of no activity.

from angular-gridster2.

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.