Skip to content

Instantly share code, notes, and snippets.

@khle
Created January 28, 2016 05:37
Show Gist options
  • Select an option

  • Save khle/34023c924b87ce44d951 to your computer and use it in GitHub Desktop.

Select an option

Save khle/34023c924b87ce44d951 to your computer and use it in GitHub Desktop.
CycleSocket Chat presencePane.js
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