You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
623 B
Plaintext
36 lines
623 B
Plaintext
task-list
|
|
use(path="./task", as="task")
|
|
|
|
h1 Task List
|
|
|
|
rx-each(for="task", in="{data.tasks}")
|
|
task(data="{task}", parent="{tag}", on-click="{logTask(task)}")
|
|
|
|
style(type="text/scss").
|
|
.rx-scope {
|
|
border: 1px solid black;
|
|
|
|
h1 {
|
|
color: red;
|
|
}
|
|
|
|
task {
|
|
background-color: rgb(204, 204, 204);
|
|
border-bottom: 1px solid rgb(50, 50, 50);
|
|
}
|
|
|
|
button.rx-all {
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
script.
|
|
console.log("data:", data);
|
|
console.log("tag:", tag);
|
|
|
|
function logTask(tag, task) {
|
|
console.log("task:", task);
|
|
console.log("this:", tag);
|
|
}
|