react-tabulator icon indicating copy to clipboard operation
react-tabulator copied to clipboard

bug: onRendered is not a function

Open kodeine opened this issue 6 years ago • 7 comments

image

kodeine avatar Jul 14 '19 17:07 kodeine

I don't see that error in the examples.

@kodeine Could you post your code? Codesandbox is even better.

ngduc avatar Sep 07 '19 03:09 ngduc

Having the same problem when using reactFormatter() in combination with responsiveLayout: "collapse" option

Sandbox: https://codesandbox.io/s/react-tabulator-examples-oofnb

bschulz87 avatar Mar 01 '20 14:03 bschulz87

Same error here... any workaround for this at least?

manuFL avatar Jun 09 '20 10:06 manuFL

Can you try this with the latest example? It works:

https://codesandbox.io/s/0mwpy612xw?module=/src/components/Home.js&file=/src/components/Home.js

image

ngduc avatar Jul 18 '20 20:07 ngduc

Hi @ngduc , it seems that in your error you are not using responsiveLayout: "collapse"

manuFL avatar Jul 23 '20 12:07 manuFL

@ngduc Sorry for asking question here. The documentation doesn't provide or mention about properties, events or callbacks which are available in tabulator, such as rowClick. I only find them in the examples page. My question is : are all callbacks in tabulator can be used as props in ReactTabulator component ? I prefer to use React props if available than using standard/regular tabulator way, because I want to refer the callbacks props to my React methods. For example : <ReactTabulator rowClick={this.handleRowClick} /> like in the examples page or in that codesandbox gist above. Fortunately, because I use Visual Studio Code, when coding, the callbacks list is displayed, so I assume they are available.

Lexiebkm avatar Jul 30 '20 05:07 Lexiebkm

@Lexiebkm yes, you can try the callbacks as props (see ConfigUtils.tsx, propsToOptions). otherwise, you can pass the callbacks in the "options" props as stated in README (props.options are passed to Tabulator's options).

ngduc avatar Sep 13 '20 18:09 ngduc