You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 19, 2022. It is now read-only.
@@ -64,6 +74,10 @@ Rendered HTML (the `<ul>` element below) should be contained in a `js-task-list-
64
74
Enable Task List updates with:
65
75
66
76
```javascript
77
+
// Vanilla JS API
78
+
var container =document.querySelector('.js-task-list-container')
79
+
newTaskList(container)
80
+
// or jQuery API
67
81
$('.js-task-list-container').taskList('enable')
68
82
```
69
83
@@ -87,12 +101,16 @@ And then execute:
87
101
88
102
$ bundle
89
103
104
+
### Frontend: NPM / Yarn
105
+
106
+
For the frontend components, add `deckar01-task_list` to your npm dependencies config.
107
+
108
+
This is the preferred method for including the frontend assets in your application.
109
+
90
110
### Frontend: Bower
91
111
92
112
For the frontend components, add `deckar01-task_list` to your Bower dependencies config.
93
113
94
-
This is the preferred method for including the frontend assets in your application. Alternatively, for Rails methods using `Sprockets`, see below.
95
-
96
114
### Frontend: Rails 3+ Railtie method
97
115
98
116
```ruby
@@ -120,7 +138,31 @@ to manage building your asset bundles.
120
138
121
139
### Dependencies
122
140
123
-
At a high level, the Ruby components integrate with the [`html-pipeline`](https://github.com/jch/html-pipeline) library, and the frontend components depend on the jQuery library. The frontend components are written in CoffeeScript and need to be preprocessed for production use.
141
+
- Ruby >= 2.1.0
142
+
143
+
At a high level, the Ruby components integrate with the [`html-pipeline`](https://github.com/jch/html-pipeline) library. The frontend components are vanilla JavaScript and include a thin jQuery wrapper that supports the original plugin interface. The frontend components are written in CoffeeScript and need to be preprocessed for production use.
144
+
145
+
[A polyfill for custom events](https://github.com/krambuhl/custom-event-polyfill) must be included to support IE10 and below.
146
+
147
+
### Upgrading
148
+
149
+
#### 1.x to 2.x
150
+
151
+
The event interface no longer passes data directly to the callbacks arguments
152
+
list. Instead the CustomEvent API is used, which adds data to the
0 commit comments