Update README.md

This commit is contained in:
Yev Vlasenko
2017-05-23 17:31:35 +01:00
committed by GitHub
parent f17ec35347
commit dc0118abe9

View File

@@ -108,6 +108,7 @@ And then forbits closing it for the next 5000 ms
### Other
#### Close button
If you want to have a Close (x) button in the top-right corner, you can use "top-right" slot for it. There is deliberately no predefined Close button style - you will have to implement/use your own button.
Example:
@@ -121,12 +122,29 @@ Example:
</button>
</div>
Hello, world!
   Hello, !
</modal>
</template>
```
#### Draggable handler
Draggable property can accept not only `Boolean` but also `String` paramenters. With `String` value, you can specify a CSS selector to the element which will be a "handler" for dragging.
Example:
```
<modal name="bar" draggable=".window-header">
<div class="window-header">DRAG ME HERE</div>
<div>
    Hello, 🌎!
</div>
</modal>
```
### Developers
To run an example: