-
Notifications
You must be signed in to change notification settings - Fork 25
Teem Widgets
Antonio Tapiador edited this page Jan 5, 2016
·
9 revisions
Teem Widgets brings Teem content to your community's website, allowing your audience to discover what's going on your community and start engaging with your current issues.
Insert this javascript snippet inside your <body
tag in your page
<body>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//app.teem.works/js/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'teem-wjs'));</script>
</body>
The workspace widget shows three tabs: the pad, the need list and the chat
<div class="teem-project"
data-id="cHJvdG90eXBlLnAycHZhbHVlLmV1L3MrdmFzamZYdEM1TkE">
</div>
Example for creating workspaces dynamically, with a local ID:
<div class="teem-project"
data-title="Fancy proposal"
data-local-id="23">
</div>
-
data-id
: The Teem ID of the workspace -
data-title
: The title of the workspace, if it has not already one -
data-local-id
: Create a new workspace, based on a local id (link this workspace dynamically to a existing local entry). If it is already created, the workspace will be found by its local id.