Page 1 of 1

Feature Request - Add Link attribute to Button

Posted: 11 May 2019, 12:15
by chrishj
Would it be possible to add a "Link to='./xxx' " to the button where Link is from react-router-dom?

This would integrate with the react routing when building SPA application. Currently, the button on supports href as the target I believe.

Re: Feature Request - Add Link attribute to Button

Posted: 17 May 2019, 12:51
by Lola10
super(props);
let columns = [
{ field: "foo", header: "bar", sortable: true, sortFunction: this.mySort }
]
this.state = {
cols: columns
}
this.colOptions = [];
for (let col of this.state.cols) {
this.colOptions.push({ label: ` ${col.header}`, value: col });
})

Re: Feature Request - Add Link attribute to Button

Posted: 24 Jun 2019, 10:48
by mert.sincan
Hi @chrishj,

Please examine https://stackoverflow.com/a/35354844. I think you can use these solutions.

Best Regards,

Re: Feature Request - Add Link attribute to Button

Posted: 06 Jul 2019, 00:55
by chrishj
Thanks for this.
I think it provides a redirect to the page instead of using the SPA react-router