question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Row event return Proxy

See original GitHub issue

I’m using row events like this

     const rowEvents = {
            onContextMenu: (e, row, rowIndex) => {
                console.log(`CONTEXT MENU e: `, e);
                console.log(`clicked on row: `, row);
            },
        };

the event is return PROXY object like this: image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AllenFangcommented, Feb 23, 2019

@ronaiza-cardoso how about upgrade your react.js? I test your case in react@16.4 is work

0reactions
ronaiza-cardosocommented, Feb 22, 2019

I’m using "react": "16.3"

 "react-bootstrap-table-next": "^2.1.1",
 "react-bootstrap-table2-paginator": "^2.0.2",
      <BootstrapTable
                    {...this.props}
                    keyField={'field'}
                    data={this.state.data}
                    columns={this.state.columns}
                    bordered={false}
                    loading={true}
                    selectRow={selectRow}
                    rowEvents={rowEvents}
                    onTableChange={this.handleTableChange}
                    remote={{ sort: true }}
                    pagination={paginationFactory()}
                />
      const selectRow = {
            mode: 'radio',
            clickToSelect: true,
            onSelect: (row, isSelect, rowIndex, e) => {
                console.log('=== selectRow row ===', row);
                console.log('=== selectRow event ===', e);
            }
        };
Read more comments on GitHub >

github_iconTop Results From Across the Web

Proxy - JavaScript - MDN Web Docs
The Proxy object enables you to create a proxy for another object, ... receiver) { return "world"; }, }; const proxy2 = new...
Read more >
row selection event not generated if proxy is called early
I'm wondering if there is a better method to pre select a table after its content updated(it's better to be very early, the...
Read more >
jQuery: Having one element act as event proxy for another
I have two elements laid over one another. I'd like whatever mouse events are triggered on the top-most element to not apply the...
Read more >
How to use JavaScript Proxies to Create Transposed Data ...
transposeGrid : This method adds a row header column to show the property names and handles the loadedRows event to apply to rows...
Read more >
sp_enum_proxy_for_subsystem (Transact-SQL) - SQL Server
The following example returns a row if the proxy Catalog application proxy has access to the ActiveScripting subsystem. Otherwise, the example ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found