Coder Social home page Coder Social logo

[Feature requests] Table scroll about photon HOT 7 OPEN

connors avatar connors commented on July 21, 2024
[Feature requests] Table scroll

from photon.

Comments (7)

developit avatar developit commented on July 21, 2024

It's not possible via CSS without breaking the table's automatic column widths.

Here's the closest I could get, but it requires a width:
http://jsfiddle.net/developit/sdvuu1nx/

from photon.

goodseller avatar goodseller commented on July 21, 2024

It looks good with the above hacks.

Seem it needs to apply the width attribute to all element or it will breaks as content changes.

http://jsfiddle.net/66yca1re/

from photon.

goodseller avatar goodseller commented on July 21, 2024

I found another issue:

http://jsfiddle.net/m9jbxn3a/

Seems js is a must to do so.

from photon.

developit avatar developit commented on July 21, 2024

@goodseller / @connors one useful outcome here could be adding support for using the table styles on non-table nodes. This is obviously possibly by passing Photon through a preprocessor, but it could be use to "export" the styles as .table, .table-row, etc. Tables can be useful for showing tabular data, but there are just a lot of cases where they stop working even though data is still very much tabular.

For example: http://jsfiddle.net/developit/j8swt8zb/ (scroll-list)

from photon.

connors avatar connors commented on July 21, 2024

@developit Yeah that might be a solution. We might even be able to use position: sticky to acheive the desired effect on table headings. I'll look into it.

from photon.

developit avatar developit commented on July 21, 2024

Sounds promising. I actually ended up rolling with the separate header table solution, but ran into more general issues with tables being unweildly to work with, so I'm probably switching to a static or flexbox layout to get around automatic column widths.

from photon.

bradparks avatar bradparks commented on July 21, 2024

any more on this? I think having a sticky table header is a must for real apps!

from photon.

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.