Skip to content

Quickish question: How do you update the number of columns the grid is using dynamically?  #227

Closed
@playingwithbandits

Description

@playingwithbandits

When you create a new grid I know that you can define the number of columns by setting the 'width' in the options array.

For example:
$('.grid-stack').gridstack( {width: 3} );

Is there a way, through jQuery, to update this value to 2 for example.

I have tried:
$('.grid-stack').gridstack({ width: 2 });
$('.grid-stack').data('gridstack').width = 2;

Any ideas? Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions