gramener / gramener/uifactory

WIP: Document usage examples

Open
#4 2 comments 0 reactions 1 assignee Claimed by @sanand0 View on GitHub
Dominant language
HTML
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- [ ] Templates using child / custom elements
- [ ] Elaborate example for slots
- [x] Would like to set data via `fetch` / `Promises` inside the template. For example, ``. I should be able to set data variable in the script tag after promise is completed?
- [ ] Add example for integrating one of (vega-lite, d3 barchart) to element node using props.
- [ ] Explicitly mention using `e.target` in the example
- [ ] Document anti-patterns
- [x] Dynamic creation / custom element creation on the fly alternatives to
- [x] `$('elsewhere').html('')`
- [x] `document.createElement('main-element')` probably?
```html

<%= a %><%= b %>

$('body').on('click', 'child-element', console.log)

```
```javascript
$('elsewhere').html('')
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.