A full featured blog in RiotJS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
473 B

<categories>
<div class="tags">
<i class="fa fa-tag" aria-hidden="true"></i>
<label
each="{category in opts.names}"
class="chip category-chip"
onclick={browseCategories(category)}
>
{category}
</label>
</div>
<script>
import route from 'riot-route';
var self = this;
self.route = route;
browseCategories(name) {
return (ev) => {
ev.preventDefault();
window.RiotControl.trigger("browsecategories", name);
};
}
</script>
</categories>