Comments (7)
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.
@timc3 you can do this a bit more easily now. See #88.
from backgrid.
@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.
@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.
Ok great, no problem.
from backgrid.
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.
This problem has already been addressed in a more flexible way in 74468a4, which is a solution for #263
from backgrid.
Related Issues (20)
- use Backgrid.UriCell but backbone router not work
- How to prevent multi-row selection? HOT 3
- Initial collection fetch causes table rows to double render HOT 1
- Export to excel + csv
- SelectCellEditor doesn't trigger an edited event in its model
- i want to compare inside cell render model attribute with one object which is out side.
- Backgrid Pagination infinite mode
- Can't use a cell instance as a Column's 'cell' attribute
- API docs site is down HOT 4
- ClientSideFilter .shadowCollection instance doesn't stopListening() on view.remove()
- Column header cell's become buttons HOT 2
- Question: Please help me understand how to correctly include an extension?
- Question: removing grid lines
- Conditional Cell Processing
- Module not found: Error: Can't resolve 'backgrid/lib/backgrid.css'
- Errors in the filter documentation
- [Feature Request] Expose comparator per column. sortValue does not work for special cases.
- Null pointer reference when
- Is there any way to filter out few entries and show them?. I want to show table records based on user, user is one of the key value pair in model. HOT 1
- Supporting child rows
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 backgrid.