Giter VIP home page Giter VIP logo

Comments (4)

andyreagan avatar andyreagan commented on July 18, 2024 3

It seems to "just work" for me.

I added a column to my dataframe like

df["link_col"] = "<a href=\"http://google.com\" target=\"_blank\">test link</a>"

and it works!

from qgrid.

TimShawver avatar TimShawver commented on July 18, 2024

You can set SlickGrid's grid options https://github.com/mleibman/SlickGrid/wiki/Grid-Options via the show_grid method. You might be able to define your formatter function in a cell using a javascript cell magic (i.e. %%javascript) and then set it as the defaultFormatter option for all your grids like this: qgrid.set_grid_option('defaultFormatter', 'myFormatterFunction'. I honestly haven't tried using a cell magic to customize the grid so I'm not sure if it would work. Let me know if you get it working though because that would be pretty cool.

from qgrid.

janmechtel avatar janmechtel commented on July 18, 2024

Great thanks!
On Sep 2, 2015 7:19 AM, "Tim Shawver" [email protected] wrote:

You can set SlickGrid's grid options
https://github.com/mleibman/SlickGrid/wiki/Grid-Options via the show_grid
method. You might be able to define your formatter function in a cell using
a javascript cell magic (i.e. %%javascript) and then set it as the
defaultFormatter option for all your grids like this: qgrid.set_grid_option('defaultFormatter',
'myFormatterFunction'. I honestly haven't tried using a cell magic to
customize the grid so I'm not sure if it would work. Let me know if you get
it working though because that would be pretty cool.


Reply to this email directly or view it on GitHub
#30 (comment).

from qgrid.

dwwkelly avatar dwwkelly commented on July 18, 2024

Any more details on how make this work?

from qgrid.

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.