GithubHelp home page GithubHelp logo

Comments (7)

AllenFang avatar AllenFang commented on June 8, 2024

Hi @aaronhayes
I dont understand what's problem about dataFormat, would you describe it detail or give some example? :)

from react-bootstrap-table.

aaronhayes avatar aaronhayes commented on June 8, 2024

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.

AllenFang avatar AllenFang commented on June 8, 2024

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.

aaronhayes avatar aaronhayes commented on June 8, 2024

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.

AllenFang avatar AllenFang commented on June 8, 2024

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.

AllenFang avatar AllenFang commented on June 8, 2024

Hi @aaronhayes
I have release the newest version v0.8.5 for this issue, plz update and run it again.

from react-bootstrap-table.

aaronhayes avatar aaronhayes commented on June 8, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.