Created
September 30, 2015 14:51
-
-
Save bartonhammond/75e0e6dd6a9cae5ef3a9 to your computer and use it in GitHub Desktop.
Meteor Webix Datatable onClick event. posts_list.html has column w/ 'fa-comment-o' icon. datatable has <config> with 'onClick' and function provided by helper
This file contains 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
<template name="postslist"> | |
<div data-id="postslist" | |
data-view="datatable" | |
data-type="line" | |
data-autoheight=1> | |
<config name="onClick" fa-comment-o="{{onClick}}"></config> | |
<div data-view="column" | |
data-fillspace=1 | |
data-id="title"> | |
Title | |
</div> | |
<div data-view="column" | |
data-fillspace=1 | |
data-id="url"> | |
URL | |
</div> | |
<div data-view="column" | |
data-template="<span style='cursor:pointer; text-align:center' class='webix_icon fa-comment-o'></span>" | |
data-id="discuss"> | |
Discuss | |
</div> | |
<ul data-view="data"> | |
{{#each posts}} | |
{{> postItem}} | |
{{/each}} | |
</ul> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment