diff --git a/CHANGELOG.md b/CHANGELOG.md
index 86f093998..f13f84ea4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Buefy Changelog
+## 0.3.2
+
+* Modal can be used in template as well (non programmatic)
+
## 0.3.1
* Field ``grouped`` now also works on nested Fields
diff --git a/docs/pages/documentation/general/Modal.vue b/docs/pages/documentation/general/Modal.vue
index a92f631d4..021a10e18 100644
--- a/docs/pages/documentation/general/Modal.vue
+++ b/docs/pages/documentation/general/Modal.vue
@@ -1,28 +1,90 @@
+ John Smith @johnsmith A modal with an injected component. When you want to close the Modal, emit a 'close' event — The component will receive all props from the Note: You should't mutate a prop directly, this is just an example. A modal with an injected component. When you want to close the Modal, emit a 'close' event — The component will receive all props from the
+ John Smith @johnsmithModal
- Programatically modal overlay to include any content you may need
+ Classic modal overlay to include any content you may need
+ {{ code1 | pre }}
+
+
+
+ 11:09 PM - 1 Jan 2016
+ {{ template1 | pre }}
- Component Modal
+ Component Modal
this.$emit('close')
— from the component.props
object.{{ template2 | pre }}
+
{{ code2 | pre }}
ModalForm component
+ {{ component | pre }}
+
+ Programmatically opening
+
+
+
+ {{ code3 | pre }}
+
+ Programmatically opening Component Modal
+ this.$emit('close')
— from the component.props
object.{{ code4 | pre }}
@@ -46,6 +108,21 @@
+
+ Events
+ active
',
+ description: 'Whether modal is active or not, use the .sync
modifier to make it two-way binding',
+ type: 'Boolean',
+ values: '—',
+ default: 'false
'
+ },
{
name: 'component
',
description: `Component to be shown. Close Modal programatically by emitting a 'close' event — this.$emit('close')
— from the component`,
@@ -67,7 +157,7 @@
},
{
name: 'props
',
- description: 'Props to be binded to the component',
+ description: 'Props to be binded to the injected component',
type: 'Object',
values: '—',
default: '—'
@@ -101,7 +191,79 @@
default: '—'
}
],
- code1: `
+ events: [
+ {
+ name: 'close
',
+ description: 'Triggers when user closed/canceled or called programmatically from the injected component',
+ parameters: '—'
+ }
+ ],
+ template1: `
+
+
+
+
+
+
+
+ 11:09 PM - 1 Jan 2016
+
John Smith
-@johnsmith
-John Smith
+@johnsmith
+