Skip to content

(Suggestion) addWidget to accept object instead of bunch of parameters #907

@n1ghtie

Description

@n1ghtie

Hi, first of all THANK YOU for amazing plugin, loving it so far.
Working on a project that allows to create custom dashboards and need to create widgets dynamically (grid-stack-items).
I would be great that instead of putting each parameters separately, maybe to do an object so addWidget would look like this?

var options = {
    x: 10,
    y: 10,
    width: 5,
    height: 5,
    ...
}
addWidget(el, options);

Why? Well lets say that if i want to have min-height, with current structure I need to supply min-width and max-width, and i don't really want that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions