1.3.0 • Published 1 year ago

wc-todo-list v1.3.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

TodoList WC

A todolist "app" built with web components.

How to use

import "todo-list-wc";
<todo-list>
    <input ref="input" type="text">
    <button type="button" ref="submit">Add Todo</button>
    <ul ref="list">
        <!-- ... -->
    </ul>
</todo-list>

The <todo-list> element will automatically add event listeners by looking for the given refs^1:

Ref NameExpected Element Type
inputHTMLInputElement
submitHTMLButtonElement
listHTMLUListElement^2

^1: The elements in the example with a ref attribute are required. How you place them and the HTML inside the <todo-list> element is up to you.

^2: The list ref could be swapped for a HTMLOListElement and work fine, but other list HTMLElements will not work.

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago