Giter Site home page Giter Site logo

tatulund / bean-table Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 1.45 MB

Simplified bean populated table component for Vaadin 14 backed by a dataprovider.

License: Other

Java 97.19% CSS 2.81%
a11y bean component html java table ui unit-testing vaadin vaadin14 vaadin23

bean-table's People

Contributors

tatulund avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

bean-table's Issues

Calling setItems doesn't clear previous rows

Calling setItems a second time doesn't clear rows generated by a previous call. BeanTable's override of setDataProvider calls reset, which in turn calls createRow and then addRow, but the rows generated by the previous call are not first removed.

Calling setDataProvider with a new provider also doesn't clear the old items.

If I precede the call to setItems with

myBeanTable.dataProvider.refreshAll()

I see that it calls the reset(false) method in BeanTable.java, setting bodyElement text to "" and reseting rows list, but the rendering doesn't remove the old rows.

Cannot style row

I am trying to "highlight" - change the background color - of a row in the table that is in error. I can style individual cells of the row in error, using the cell renderer, but am not clear on an approach for highlighting the entire row. Any thoughts on this? Perhaps I'll need to use javascript, as opposed to a pure CSS solution? Any pseudo-code to accomplish this is appreciated. Thanks.

Also, it would be nice to be able to access the Column's list, once it's been created.

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.