GithubHelp home page GithubHelp logo

Comments (2)

bradleyayers avatar bradleyayers commented on August 29, 2024

I can see value in adding this. It's in the original django-tables and most (all?) of the other forks. I took it out because I wanted to simplify the API -- have a single table class to subclass, and specify the columns you want. I also imagine that the majority of the time you would not want a plain Column, you'd often want a LinkColumn. In a simple implementation, this would mean that the programmer would still have to redefine the columns that should be more than just a Column.

Another question I'm thinking about is how to handle the order that columns are rendered. If I wanted to add two columns, one to each side of the table, what would be the API? I've considered perhaps another class Meta option, e.g. column_order (that would allow columns to be ordered much like fieldsets does for a ModelAdmin), but I think it might be confusing what the difference is between column_order and ordering.

More thinking is required on this before I try to implement something. Let me know if you have any good ideas to these problems.

from django-tables2.

kwevej avatar kwevej commented on August 29, 2024

This is what I do, to automatically generate basic table for a model. Maybe, someone could find it useful.
http://paste2.org/p/1438665

from django-tables2.

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.