2023-09-12 23:37:02 +00:00
|
|
|
import { html } from '@design.estate/dees-element';
|
|
|
|
import { DeesModal } from './dees-modal.js';
|
|
|
|
|
|
|
|
export const demoFunc = () => html`
|
|
|
|
<dees-button @click=${() => {
|
|
|
|
DeesModal.createAndShow({
|
|
|
|
heading: 'This is a heading',
|
|
|
|
content: html`
|
|
|
|
<dees-form>
|
|
|
|
<dees-input-text
|
|
|
|
.label=${'Username'}
|
|
|
|
>
|
|
|
|
</dees-input-text>
|
|
|
|
<dees-input-text
|
|
|
|
.label=${'Password'}
|
|
|
|
>
|
|
|
|
</dees-input-text>
|
|
|
|
</dees-form>
|
2023-09-13 11:41:56 +00:00
|
|
|
`,
|
|
|
|
menuOptions: [{
|
|
|
|
name: 'Cancel',
|
|
|
|
iconName: null,
|
|
|
|
action: async (deesModalArg) => {
|
|
|
|
deesModalArg.destroy();
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
name: 'Ok',
|
|
|
|
iconName: null,
|
|
|
|
action: async (deesModalArg) => {
|
|
|
|
deesModalArg.destroy();
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}],
|
2023-09-12 23:37:02 +00:00
|
|
|
});
|
|
|
|
}}>open modal</dees-button>
|
|
|
|
`
|