Artifact Content
Artifact 5ac54a781e4e3d9ee05638db9d6c162491a52562da1a671a94bf1078668805e3:
- File public/riot-3.13.2/test/tag/table-multibody.tag — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 448)
<table-multibody> <h3>Bodies</h3> <table border=1> <tbody each={ body, i in bodies }> <tr style="background-color:{ bgcolor[i&1] }"><td each={ body }>{ body[i] }</td></tr> </tbody> </table> <button onclick={ swapColor }>Swap color</button> this.bodies = [['A1', 'A2', 'A3'], ['B1', 'B2', 'B3'], ['C1', 'C2', 'C3']] this.bgcolor = [ 'white', 'lime' ] swapColor(i) { this.bgcolor.reverse() } </table-multibody>