From e4d70a54e97551f974a04379817e8baf152fa8d3 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 13 Aug 2023 17:05:06 +0530 Subject: feat: adds applying css properties for instances + adds --cssx-text eval + fixes issues --- tests/fixtures/todo-app/index.html | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'tests/fixtures/todo-app') diff --git a/tests/fixtures/todo-app/index.html b/tests/fixtures/todo-app/index.html index 66a9798..55996f3 100644 --- a/tests/fixtures/todo-app/index.html +++ b/tests/fixtures/todo-app/index.html @@ -10,7 +10,11 @@ #task-input-form { --cssx-on-submit: prevent-default() - js-eval('console.log("todo: implement add new task")') + add-children(task-list, + instance(li#task-item, map( + --text: "Hello world", + )) + ) ; --cssx-children: @@ -21,24 +25,13 @@ #text-input {} #create-task-btn { - --cssx-text: Submit; + --cssx-text: "Submit"; } - #task-list { - --cssx-children: - instance(li#task-item, map( - --text: "hello world", - --checked: 0 - )) - instance(li#task-item, map( - --text: "coolio stuff", - --checked: 0 - )) - ; - } + #task-list { } [data-instance="task-item"] { - --text: "default text"; + --text: default text; --checked: 0; --cssx-text: var(--text); -- cgit v1.3.1