reactjs - React : Get value of table to edit it -
i've form fields. when submit form, complete bootstrap table fields values
i want call form each row, , values table on form edit its.
i call form empty, without values. how can call form values reference ?
<bootstraptable data={this.props.items} celledit={this.celledit}> <tableheadercolumn datafield='reference' dataformat={this.editformatter.bind(this)}>edit</tableheadercolumn</bootstraptable> editformatter(cell, row) { return ( <button onclick={() => this.editformatterclick = (reference: string) => { }}>{cell}</button> ); } editformatterclick = (reference:string) => { this.props.ondocumentselected(reference) } ondocumentselected: (documentreference: string) => void
this property ondocumentselected call form. how can call form values list ? thank you
Comments
Post a Comment