Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (50 sloc) 1.13 KB
<!DOCTYPE html>
<title>Todo Item Component</title>
<element name="todo-item" extends="li" constructor="TodoItem">
<style scoped>
* {
list-bullet-style: none;
:root {
padding: 12px 20px 11px 0;
position: relative;
font-size: 24px;
line-height: 1.1em;
border-bottom: 1px solid #cccccc;
:root:after {
content: "\0020";
display: block;
height: 0;
clear: both;
overflow: hidden;
visibility: hidden;
<div class="todo">
<div class="display">
<input class="check" type="checkbox">
<label class="todo-content"><content></content></label>
<span class="todo-destroy"></span>
var root = null;
created: function(r) {
root = r;
TodoItem.prototype.setTitle = function(title) {
root.querySelector('.todo-content').innerText = title;
Jump to Line
Something went wrong with that request. Please try again.