-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to populate boolean value to table column #607
Comments
@parisking, I'll check this out. but what warning you got? |
warning.js:44 Warning: Failed propType: Invalid prop stacktrace is: warning @ warning.js:44 |
Hi @parisking @AllenFang I had the same problem. I think the warning is the next:
I used the function supportedFormatter(cell, row){
return '<i></i> ' + cell;
}
<BootstrapTable data={products} >
<TableHeaderColumn isKey={true} dataField="id">ID</TableHeaderColumn>
<TableHeaderColumn dataField='name'>Name</TableHeaderColumn>
<TableHeaderColumn dataField='isSupported ' dateFormat={supportedFormatter}>Supported</TableHeaderColumn>
</BootstrapTable> The table will display the text 'true' or 'false' depending on the boolean value. Using the function, you can change the value to be displayed to 'supported' or 'unsupported' instead. This could be an approach to solve your problem. |
Thanks. I will try again |
Anyway, I'll keep to track this issue in recent, if necessary, I'll open it again. Thanks guys :) |
Still have warning and can't populate the boolean data even with suggestion of LuisBurgos |
FYI I'm having the same issue and had to use a formatter like above to fix it |
I'll check out this issues quickly. Sorry for lately fixing... busy on work ;( |
I finally find that it works with LuisBurgos's solution. |
HI all, this issue fixed on |
there's one thing to notice, on v2.4.4 I move the css files from css to dist folder, remember to update the css path. I apologize for it. BTW, you can also update to |
Thanks @AllenFang!! |
I have issue to populate data with boolean value. I always got warning:
Is there a recommended way to display the isSupported field below?
The text was updated successfully, but these errors were encountered: