y200subcontrols 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import ModalDialog from "./ModalDialog.svelte";
|
|
3
3
|
export let message = "Message goes here";
|
|
4
4
|
export let style = "warning";
|
|
5
|
+
export let okButtonContent = "<span>Ok</span>";
|
|
6
|
+
export let cancelButtonContent = "<span>Ok</span>";
|
|
5
7
|
let dialog;
|
|
6
8
|
export async function showDialog() {
|
|
7
9
|
const okButton = document.getElementById("okButtonDialog");
|
|
@@ -96,10 +98,10 @@ export async function showDialog() {
|
|
|
96
98
|
</slot>
|
|
97
99
|
<div class="grid grid-cols-2 gap-2" slot="buttons">
|
|
98
100
|
<Button type="button" id="okButtonDialog">
|
|
99
|
-
|
|
101
|
+
{@html okButtonContent}
|
|
100
102
|
</Button>
|
|
101
103
|
<Button type="button" buttonStyle="dark" id="cancelButtonDialog">
|
|
102
|
-
|
|
104
|
+
{@html cancelButtonContent}
|
|
103
105
|
</Button>
|
|
104
106
|
</div>
|
|
105
107
|
</ModalDialog>
|