Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Vaadin アプリケーションの一部のレイアウトに 3 つのテーブル コンポーネントがアタッチされています。3 つのテーブルすべてに異なる背景色を使用したいと考えています。つまり、table1 は青色、table2 は黄色、table3 は赤色です。どうすればvaadinでそのようなことを達成できますか。ありがとう!
私は次の方法でそれを行いました:
次の CSS を styles.css ファイルに追加します
.classname .v-table-body{ yourstyle goes here }
テーブルのスタイルを次のように設定します。
table1.setStyleName("クラス名");
table1 のみにスタイルを適用します