Browse Source

Add custom modal demo

pull/3795/head
Artur Arseniev 4 years ago
parent
commit
74ab362038
  1. 9
      docs/.vuepress/components/DemoViewer.vue
  2. 4
      docs/modules/Modal.md

9
docs/.vuepress/components/DemoViewer.vue

@ -22,11 +22,16 @@ export default {
type: String,
default: '300',
},
darkcode: {
type: Boolean,
default: false,
},
},
computed: {
src() {
const { value, user } = this;
return `//jsfiddle.net/${user}/${value}/embedded/js,html,css,result`;
const { value, user, darkcode } = this;
const dcStr = darkcode ? '/dark/?menuColor=fff&fontColor=333&accentColor=e67891' : '';
return `//jsfiddle.net/${user}/${value}/embedded/js,html,css,result${dcStr}`;
}
}
}

4
docs/modules/Modal.md

@ -117,6 +117,10 @@ editor.on('modal', props => {
});
```
Here an example of using the Bootstrap modal.
<demo-viewer value="x70amv3f" height="500" darkcode/>
## Events

Loading…
Cancel
Save