Update dom.js
@@ -18,7 +18,11 @@ const myEl = el.div({ class:'alert' }, [
|
||||
### create(element, attr, children) → Element
|
||||
|
||||
```javascript
|
||||
const myButton = dom.create('button', { type:"button", class:"btn btn-primary", "on:click": () => doSomething() }, "Okay");
|
||||
const myButton = dom.create('button', {
|
||||
type:"button",
|
||||
class:"btn btn-primary",
|
||||
"on:click": () => doSomething()
|
||||
}, "Okay");
|
||||
```
|
||||
|
||||
### apply(element, attributes)
|
||||
|
||||
Reference in New Issue
Block a user