GithubHelp home page GithubHelp logo

Link Cell about backgrid HOT 7 CLOSED

cloudflarearchive avatar cloudflarearchive commented on August 16, 2024
Link Cell

from backgrid.

Comments (7)

wyuenho avatar wyuenho commented on August 16, 2024

Nope. There's no built-in cell type that does custom URL rendering. This is something best implemented by yourself as an end-user. However, if you are happy with your custom cell type and have it on a public repo, you are welcomed to put a link to it on Backgrid's repo wiki.

from backgrid.

dandavison avatar dandavison commented on August 16, 2024

@timc3 you can do this a bit more easily now. See #88.

from backgrid.

wyuenho avatar wyuenho commented on August 16, 2024

@dandavison @timc3 I've decided to revert #90 and #88 because displayText is inconsistent with Backgrid's design. There are already a number of ways where you can dictate how a column value is displayed. You can either subclass a cell type, or use a custom formatter.

http://wyuenho.github.com/backgrid/#api-formatter
http://wyuenho.github.com/backgrid/api/index.html#!/api/Backgrid.Column-method-initialize

from backgrid.

dandavison avatar dandavison commented on August 16, 2024

@wyuenho That's fine, I understand. It was just a hack, creating an ad-hoc interface for one particular class. I'll try to think abut whether anything else could be done (e.g. documentation) to make this common task easier for the user.

from backgrid.

timc3 avatar timc3 commented on August 16, 2024

Ok great, no problem.

from backgrid.

morficus avatar morficus commented on August 16, 2024

sorry for reactivating an old issue, but would you mind taking a look at my implementation of this enhancement and let me know if I should issue a PR: https://github.com/morficus/backgrid/compare

I believe that it's cleaner than the previously submited ones, and follows the same implementation patterns as the current UriCell (displayText is an optional configuration option vs being a function that needs to be over written)

from backgrid.

wyuenho avatar wyuenho commented on August 16, 2024

This problem has already been addressed in a more flexible way in 74468a4, which is a solution for #263

from backgrid.

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.