Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

95
Views
Custom place of filter input in react-bootstrap-table

I'm using react-bootstrap-table and I want to place the input filter of table columns in top of the table not on top/bottom on the column (default behavior).

I looked at this question Showing Select filter at custom place in react-bootstrap-table2, but I couldn't implement what he suggested:

.. i added a select> & created ref for respective column & write a simple line that runs on Change event of select> this.refs.COLUMN_NAME.applyFilter("column_value_from_select_control");

I created a ref for the table, and I placed an input field on top of the table like this:

<input type="text" class="form-control" id="id1" placeholder="enter name" onChange={handleFilter}></input>

    <BootstrapTable
            bootstrap4
            marginLeft="20px"
            keyField="id"
            data={data}
            columns={columns}
            hover
            ref={inputRef}
            ..
    />

onChange of the input I call this method, in console log i can see the the column that i want to filter with its data, but I don't know how to call textFilter() of react-bootstrap-table.

const handleFilter = () => {
    console.log("test = ", inputRef.current.props.columns[5])
  };
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!