Comments (7)
Hi @aaronhayes
I dont understand what's problem about dataFormat
, would you describe it detail or give some example? :)
from react-bootstrap-table.
sorry about that, it was a pretty vague issue.
in your example you pass a function which returns a string to dataFormat
.
function priceFormatter(cell, row){ return '<i class="glyphicon glyphicon-usd"></i> ' + cell; }
Instead of returning a string I want to return a React Element.
return <ReactElement randomProp={3} />
Currently the way it works is to DangerouslySet the return valued, which of course would output [object Object] in my example.
Cheers.
from react-bootstrap-table.
Hi @aaronhayes
Ok! I understand, maybe I need to try it more, but need some time:)
Anyway, your idea is very good for react-bootstrap-table. 👍
from react-bootstrap-table.
awesome, thanks. I made a commit to my fork which has it working (~not fully tested). Still playing around with some things. 189860c
from react-bootstrap-table.
Great! I will try your code in these days. I think your solution is ok, you can create a PR for this issue so that I can help to do more testing and debug. Anyway, thanks for your contribution :)
from react-bootstrap-table.
Hi @aaronhayes
I have release the newest version v0.8.5 for this issue, plz update and run it again.
from react-bootstrap-table.
@AllenFang
Sorry about the late reply. Changes look great. Thanks for all your hard work!
Now using your latest changes in my project and it works beautifully.
from react-bootstrap-table.
Related Issues (20)
- Read only on editable table for a field, but insert it in insertmodal HOT 1
- Sort icon not visible when text overflows in th
- Select All checkbox customization (Display any other icon instead of checkbox) HOT 2
- CellEdit is not working in firefox.
- Not showing Table border Tried Everything of Scripts importing CSS of bootstrap but still
- Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code.
- Select All doesn't persist across pages. HOT 1
- Not compatible with React 17+ HOT 6
- How to hide/show checkbox on particular rows in react bootstrap table next
- React Hooks, state is reseting to initial state when called onChange is called inside Formatter
- Expanding one row updating the value of all the expanded rows with the latest value
- How to get value of column selectFilter with deprecated react-boot-strap-table
- React Bootstrap Table - Iterate over an array of Objects for Datafield
- BootstrapTable is not reloading data when row checkbox checked or unchecked in ReactJS
- Error when search on page 2/3/4/5 etc
- Can't run the examples using gulp
- How can I delete/disable the "Expand All - Collapse All" button in the table header?
- Dynamic TableHeaderColumns with search and exportToCSV props doesn't work in BootstrapTable
- How can i use navigate pages using row ?
- React-data-table Component header alone is overlapping when the model/Pop us is enabled, HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-bootstrap-table.