diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-13 17:05:06 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-13 17:05:06 +0530 |
| commit | e4d70a54e97551f974a04379817e8baf152fa8d3 (patch) | |
| tree | 2b2ce59a654e7e50f2ba945ccfe6e494e07e8449 /tests/fixtures/todo-app/index.html | |
| parent | c327a1dfc40b834b31c3488020859223f3583b4c (diff) | |
| download | css-everything-e4d70a54e97551f974a04379817e8baf152fa8d3.tar.gz css-everything-e4d70a54e97551f974a04379817e8baf152fa8d3.zip | |
feat: adds applying css properties for instances + adds --cssx-text eval + fixes issues
Diffstat (limited to 'tests/fixtures/todo-app/index.html')
| -rw-r--r-- | tests/fixtures/todo-app/index.html | 23 |
1 files changed, 8 insertions, 15 deletions
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); |
