Skip to content

Is there anyway to add html into the card, not just text? #5

@JakeGreer

Description

@JakeGreer

For instance I want the ability to add some react buttons along with some text underneath these buttons. I am trying to do this:

 <GridStack cellHeight={100} verticalMargin={10}>
     <GridStackItem id="item_1" x={0} y={0} height={6} width={4}>
         <button type="button" className="btn btn-danger"><span><i className="fa fa-remove"></i></span></button>
      </GridStackItem>
  </GridStack>

The problem is that this is causing an error because it can not run the forEach loop on the children, which in this case is the button. I have brought your classes inside of my own code due to npm issues
and so I can change the code accordingly. Would there be anyway I could modify the GridStack class to fix this issue? Any help would be appreciated thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions