Appearance
wiz-popup
With the wiz-popup component, you can create pop-ups in eWizard Editor. You can add other components inside the pop-up.
Learn more about components
Usage
To add the wiz-popup component to your slide and change its properties, in the ./slides/default/index.vue file:
Add the
<wiz-popup></wiz-popup>tag to your slide template.html<!--./slides/default/index.vue --> <template> <wiz-slide class="editable-block"> <wiz-popup id="wiz-popup-08cb" class="default"></wiz-popup> </wiz-slide> </template>The
idandclassattributes are required for the correct display of the component styles in eWizard Editor.Add other components inside the pop-up. For example,
wiz-image:html<!--./slides/default/index.vue --> <template> <wiz-slide class="editable-block"> <wiz-text :text="$t('text')"></wiz-text> <wiz-popup id="wiz-popup-08cb" class="default"> <wiz-image id="wiz-image-3c3e" class="default" src="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-image> </wiz-popup> </wiz-slide> </template>
Attributes
You can change the wiz-popup component appearance and behavior using the following attributes within the <wiz-popup></wiz-popup> tag:
component-nameChange the component label displayed on the Properties tab in eWizard Editor.
html<wiz-popup id="wiz-popup-08cb" class="default" component-name="Pop-up"></wiz-popup>show-close-buttonTo display the pop-up close button in eWizard Editor, set the value to
true.html<wiz-popup id="wiz-popup-08cb" class="default" :show-close-button="true"></wiz-popup>close-button-iconAdd the path to the image of the close button icon.
html<wiz-popup id="wiz-popup-08cb" class="default" close-button-icon="./media/images/f6194d90-8f03-11ec-96c2-ea6c057b1b2f.jpg"></wiz-popup>close-button-positionSet the position of the close button on the pop-up.
html<wiz-popup id="wiz-popup-08cb" class="default" close-button-position="rightTop"></wiz-popup>Use the following attribute values for the close button positioning on the pop-up:
rightTop—the upper-right corner of the pop-uprightCenter—the center of the right side of the pop-uprightBottom—the lower-right corner of the pop-upcenterTop—the center of the upper side of the pop-upcenterCenter—the center of the pop-upcenterBottom—the center of the lower side of the pop-upleftTop—the upper-left corner of the pop-upleftCenter—the center of the left side of the pop-upleftBottom—the lower-left corner of the pop-up
show-on-enterTo show the pop-up on the slide opening, set the value to
true.html<wiz-popup id="wiz-popup-08cb" class="default" :show-on-enter="true"></wiz-popup>close-on-outside-tapTo close the pop-up when you click outside of it, set the value to
true.html<wiz-popup id="wiz-popup-08cb" class="default" :close-on-outside-tap="true"></wiz-popup>show-overlayTo add a gray background around the pop-up, set the value to
true.html<wiz-popup id="wiz-popup-08cb" class="default" :show-overlay="true"></wiz-popup>
Properties
The following properties are available:
| Property | Type | Default value | Description |
|---|---|---|---|
__id | string | N/A | The automatically generated item ID. |
closeButtonIcon | string | defaultIcon | The icon of the close button. |
closeButtonPosition | string | rightTop | The position of the close button |
closeOnOutsideTap | boolean | true | `true` activates pop-up closing by outside click or tap |
componentName | string | Pop-up | The text label displayed in eWizard Editor. |
showCloseButton | boolean | true | The close button visibility. |
showOnEnter | boolean | false | The pop-up visibility. |
showOverlay | boolean | true | `true` grays out the area behind the pop-up. |