⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact a4e26b4e2ac6ed29923fe696ecd4b695424f870807630ee000cdd7ae155a93bf:


0000: 0a 3c 74 61 62 6c 65 2d 64 61 74 61 3e 0a 0a 20  .<table-data>.. 
0010: 20 3c 68 33 3e 43 65 6c 6c 73 3c 2f 68 33 3e 0a   <h3>Cells</h3>.
0020: 20 20 3c 74 61 62 6c 65 20 62 6f 72 64 65 72 3d    <table border=
0030: 31 3e 0a 20 20 20 20 3c 74 72 3e 3c 74 68 20 65  1>.    <tr><th e
0040: 61 63 68 3d 7b 20 72 6f 77 73 20 7d 3e 7b 20 63  ach={ rows }>{ c
0050: 65 6c 6c 20 7d 3c 2f 74 68 3e 3c 2f 74 72 3e 0a  ell }</th></tr>.
0060: 20 20 20 20 3c 74 72 3e 3c 74 64 20 65 61 63 68      <tr><td each
0070: 3d 7b 20 72 6f 77 73 20 7d 3e 7b 20 63 65 6c 6c  ={ rows }>{ cell
0080: 20 7d 3c 2f 74 64 3e 3c 2f 74 72 3e 0a 20 20 3c   }</td></tr>.  <
0090: 2f 74 61 62 6c 65 3e 0a 0a 20 20 3c 68 33 3e 52  /table>..  <h3>R
00a0: 6f 77 73 3c 2f 68 33 3e 0a 20 20 3c 74 61 62 6c  ows</h3>.  <tabl
00b0: 65 20 62 6f 72 64 65 72 3d 31 3e 0a 20 20 20 20  e border=1>.    
00c0: 3c 74 72 20 65 61 63 68 3d 7b 20 72 6f 77 73 20  <tr each={ rows 
00d0: 7d 3e 0a 20 20 20 20 20 20 3c 74 64 3e 7b 20 63  }>.      <td>{ c
00e0: 65 6c 6c 20 7d 3c 2f 74 64 3e 0a 20 20 20 20 20  ell }</td>.     
00f0: 20 3c 74 64 3e 7b 20 63 65 6c 6c 20 7d 20 61 6e   <td>{ cell } an
0100: 6f 74 68 65 72 3c 2f 74 64 3e 0a 20 20 20 20 3c  other</td>.    <
0110: 2f 74 72 3e 0a 20 20 3c 2f 74 61 62 6c 65 3e 0a  /tr>.  </table>.
0120: 0a 20 20 74 68 69 73 2e 72 6f 77 73 20 3d 20 5b  .  this.rows = [
0130: 7b 20 63 65 6c 6c 3a 20 27 4f 6e 65 27 7d 2c 20  { cell: 'One'}, 
0140: 7b 20 63 65 6c 6c 3a 20 27 54 77 6f 27 7d 2c 20  { cell: 'Two'}, 
0150: 7b 20 63 65 6c 6c 3a 20 27 54 68 72 65 65 27 7d  { cell: 'Three'}
0160: 5d 0a 0a 3c 2f 74 61 62 6c 65 2d 64 61 74 61 3e  ]..</table-data>