Is it possible to render a react object in the definition of columns?

Is it possible to render a react object in the definition of columns?

jtliviojtlivio Posts: 11Questions: 4Answers: 0

Hi all,

I would like to do this:

 data: null,
          render: () => {
            return <DefaultButton onClick={(e) => this.Buttonclick(e)} text="Open Modal" />

But it give me object, object

Is it possible to do this and put the button in the columns?

Thank you

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    I'm not familiar with React, but you need to return it as a string, something like this,

    Colin

  • jtliviojtlivio Posts: 11Questions: 4Answers: 0

    Thanks @colin I'll try to find a way and post the solutions

Sign In or Register to comment.