Modal API Overview
Initialization
<script>
import { Modal, Text, Portal } from "wx-svelte-core";
</script>
<Portal>
<Modal>
<Text />
</Modal>
</Portal>
tip
- Visit the Features Guide to learn more about the control's functionality.
- Explore the samples to visualize the available features.
Modal Properties
buttons | an array of buttons for a modal box |
cancel | a function which is called on click of the Cancel button |
ok | a function which is called on click of the OK button |
title | sets the text of a modal box's header |