Feature Request - Add Link attribute to Button

UI Components for React
Post Reply
chrishj
Posts: 182
Joined: 11 Jul 2011, 21:58

11 May 2019, 12:15

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.
J2EE 6 Glassfish 4.1 Mojarra 2.2.7 primefaces 6.2.7
Netbeans 8.1
database postgresql-9.4
Theme - Barcelona

Lola10
Posts: 1
Joined: 17 May 2019, 12:48

17 May 2019, 12:51

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 });
})

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest