Created
January 28, 2016 05:37
-
-
Save khle/34023c924b87ce44d951 to your computer and use it in GitHub Desktop.
CycleSocket Chat presencePane.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Observable} from 'rx'; | |
| import {h4, div, table, thead, tbody, th, tr, td} from '@cycle/dom'; | |
| export function presencePane({DOM}) { | |
| let vdom$ = Observable.of( | |
| div([ | |
| h4('Active Users'), | |
| table({className: 'striped'}, [ | |
| thead([ | |
| tr([ | |
| th({'data-field': 'id'}, 'Nickname', []), | |
| th({'data-field': 'name'}, 'Time joined', []) | |
| ]) | |
| ]) | |
| ]) | |
| ]) | |
| ); | |
| return { | |
| DOM: vdom$, | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment