Greasy Fork is available in English.

Vanilla JS Dialog

A general purpose JavaScript class for Dialog Creation in Vanilla JS.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/465421/1471180/Vanilla%20JS%20Dialog.js

نووسەر
𝖢𝖸 𝖥𝗎𝗇𝗀
وەشان
0.1.2
Created
2023-05-03
Updated
2023-05-10
مۆڵەت
MIT

VanillaJSDialog

VanillaJSDialog 是一個輕量級 JavaScript 庫,用於在網頁上建立自定義的對話框。

這個庫把那些麻煩的元件設計都做好,配合特別的寫法就可以簡潔地做出設定用的UI介面。

近似功能的有 GM_Config

Description

Vanilla JS Dialog Plugin Demo

The Vanilla JS Dialog plugin is a lightweight, easy-to-use plugin for creating custom dialog boxes on your website. The plugin is written in pure JavaScript, which means that it does not require any external libraries or frameworks to work.

Features

  • Customizable dialog box content
  • Option to display a backdrop overlay
  • Support for custom CSS styling
  • Lightweight and fast

Usage

  • Include the plugin JavaScript file and CSS file in your HTML document.
  • Create a new instance of the dialog box with the desired content and options.
  • Call the show() method on the dialog instance to display the dialog box.
  • Call the dismiss() method on the dialog instance to hide the dialog box.

網頁支援

簡單說明

Main Demo

Coding Examples