Skip to content

Is there any way to access the data that is filtered when I use the search of the react bootstrap table next? #625

@rohankk2

Description

@rohankk2

Suppose my search is a custom search as follows:

handlechange=()=>{
        if(node===undefined)
            console.log('undefined')
         console.log(node.table.props.data);
    };

    render() {
        if(this.props.columns.length===0)
        return(<div></div>)


      return(
           <ToolkitProvider
                keyField="ID"
                data={this.props.data}
                columns={this.props.columns}
                search



            >

                {
                    props => (
                        <div>
                            <SearchBar {...props.searchProps}  />

                            <hr/>
                            <BootstrapTable {...props.baseProps} striped
                hover
                condensed
                            noDataIndication="No Values Found"   ref={ n => this.node = n } onTableChange={this.handlechange()}/>

                        </div>
                    )
                }
            </ToolkitProvider>
      )
    }

i get this.node as undefined.

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