2016-02-24 11:44:14 +01:00
|
|
|
# Wagtail client-side components
|
|
|
|
|
|
|
|
This library aims to give developers the ability to subclass and configure Wagtail's UI components.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
npm install wagtail
|
|
|
|
```
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
import { Explorer } from 'wagtail';
|
|
|
|
|
|
|
|
...
|
|
|
|
|
|
|
|
<Explorer onChoosePage={(page)=> { console.log(`You picked ${page}`); }} />
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Available components
|
|
|
|
|
|
|
|
TODO
|
|
|
|
|
|
|
|
- [ ] Explorer
|
|
|
|
- [ ] Modal
|
|
|
|
- [ ] DatePicker
|
|
|
|
- [ ] LinkChooser
|
|
|
|
- [ ] DropDown
|
|
|
|
|
|
|
|
## Building in development
|
|
|
|
|
|
|
|
Run `webpack` from the Wagtail project root.
|
|
|
|
|
|
|
|
```
|
|
|
|
webpack
|
|
|
|
```
|
|
|
|
|
|
|
|
## How to release
|
|
|
|
|
2016-08-18 06:49:19 +02:00
|
|
|
The front-end is bundled at the same time as the Wagtail project, via `setuptools`.
|
2016-02-24 11:44:14 +01:00
|
|
|
|
|
|
|
|