Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

[Dialog] Create MDC Dialogs dynamically from JavaScriptΒ #6376

Closed
@maicol07

Description

Feature Request

Create a new dialog and open it with JS

Proposed solution

For example:

const dialog = new Dialog({
	title: "...",
	body: "...",
	actions: {
		confirm: {
			title: "OK",
			icon: "..."
		},
		cancel: {
			title: "Cancel",
		},
		...,
		position: "right"
	},
	...
});
dialog.open()

While the open method already exists, building a dialog from JS is missing and can be useful when receiving a request response and you want to output it in a beautiful dialog, instead that ugly JS alert window.

Alternatives considered

Building a JS wrapper

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.feature-request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions