/app/components/ListComponent.io

http://github.com/pgregory/blackpool · Unknown · 16 lines · 13 code · 3 blank · 0 comment · 0 complexity · cc438841e3317c0b6a0a310ccddacaaa MD5 · raw file

  1. ListComponent := Object clone do(
  2. init := method(
  3. items ::= List clone
  4. filterBlock ::= block(items, items)
  5. )
  6. renderOn := method(html,
  7. html table with(
  8. filterBlock call(items) foreach(i,
  9. renderItem(i, html)
  10. )
  11. )
  12. )
  13. )