More Area features (#168)

* Add scrolling area

* Gradients

* Fix typo and add scrolling to area docs

* Implement imperative gradient api

As per discussion in #130

* Fix links in area documentation

* Update example for area gradients

* Add docs for new gradient api

* Format all docs with prettier

* Really fix docs hyperlinks

* Added to docs: ignore ...opacity for gradients
This commit is contained in:
Niklas Mischkulnig 2018-11-09 03:04:32 +01:00 committed by Gustav Hansen
parent 00d0eddba4
commit 6d2d32f6fc
49 changed files with 1492 additions and 1851 deletions

View file

@ -11,8 +11,8 @@ class Example extends Component {
render() {
return (
<App>
<Window title="Example" size={{w: 500, h: 500}}>
           <TextInput onChange={() => Dialog('Error', {title: "Message"})}/>
<Window title="Example" size={{ w: 500, h: 500 }}>
<TextInput onChange={() => Dialog('Error', { title: 'Message' })} />
</Window>
</App>
);
@ -38,14 +38,14 @@ What type the dialog is. The current types are:
- Open - open a file
- Save - save a file
| **Type** | **Required** |
| --- | --- |
| enum('Message', 'Error', 'Open', 'Save') | Yes |
| **Type** | **Required** |
| ---------------------------------------- | ------------ |
| enum('Message', 'Error', 'Open', 'Save') | Yes |
### options
Options for the title and description if it is a Message or Error.
| **Type** | **Required** |
| --- | --- |
| **Type** | **Required** |
| ------------------------------------ | ------------------------------- |
| {title: string, description: string} | One (if it is Message or Error) |