/app/components/MenuComponent.io
http://github.com/pgregory/blackpool · Unknown · 18 lines · 14 code · 4 blank · 0 comment · 0 complexity · beb4169ee5ddeb8d9c5ae4ac08520f3e MD5 · raw file
- MenuComponent := Object clone do(
- init := method(
- entries ::= List clone
- )
- renderOn := method(html,
- entries foreach(v,
- html link(v at(0), v at(1))
- html space
- )
- )
- addEntry := method(name, callback,
- entries append(list(name, callback))
- )
- )