⌈⌋ ⎇ branch:  Bitrhythm


Hex Artifact Content

Artifact 8fa9a28bee41fe24e39e7e7d0bfb469b0b6951d74a1ca3e62e6de036bb17a19c:


0000: 3c 6e 61 6d 65 64 2d 73 65 6c 65 63 74 3e 0a 20  <named-select>. 
0010: 20 3c 73 65 6c 65 63 74 20 72 65 66 3d 22 64 61   <select ref="da
0020: 53 65 6c 65 63 74 22 20 65 61 63 68 3d 7b 20 69  Select" each={ i
0030: 74 65 6d 20 69 6e 20 69 74 65 6d 73 20 7d 3e 0a  tem in items }>.
0040: 20 20 20 20 3c 6f 70 74 69 6f 6e 3e 2d 2d 2d 3c      <option>---<
0050: 2f 6f 70 74 69 6f 6e 3e 0a 20 20 20 20 3c 6f 70  /option>.    <op
0060: 74 69 6f 6e 20 65 61 63 68 3d 7b 20 6f 70 74 69  tion each={ opti
0070: 6f 6e 20 69 6e 20 69 74 65 6d 20 7d 3e 7b 20 6f  on in item }>{ o
0080: 70 74 69 6f 6e 20 7d 3c 2f 6f 70 74 69 6f 6e 3e  ption }</option>
0090: 0a 20 20 3c 2f 73 65 6c 65 63 74 3e 0a 0a 20 20  .  </select>..  
00a0: 74 68 69 73 2e 69 74 65 6d 73 20 3d 20 5b 0a 20  this.items = [. 
00b0: 20 20 20 5b 27 66 6f 6f 27 2c 20 27 62 61 72 27     ['foo', 'bar'
00c0: 5d 2c 0a 20 20 20 20 5b 27 62 61 7a 27 2c 20 27  ],.    ['baz', '
00d0: 66 6f 6f 27 5d 0a 20 20 5d 0a 3c 2f 6e 61 6d 65  foo'].  ].</name
00e0: 64 2d 73 65 6c 65 63 74 3e 0a                    d-select>.