Download the PHP package threadi/easy-dialog-for-wordpress without Composer
On this page you can find all versions of the php package threadi/easy-dialog-for-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download threadi/easy-dialog-for-wordpress
More information about threadi/easy-dialog-for-wordpress
Files in threadi/easy-dialog-for-wordpress
Download threadi/easy-dialog-for-wordpress
More information about threadi/easy-dialog-for-wordpress
Files in threadi/easy-dialog-for-wordpress
Vendor threadi
Package easy-dialog-for-wordpress
Short Description Provides a simple react-driven dialog-modal for the WordPress-backend.
License GPL-3.0-or-later
Package easy-dialog-for-wordpress
Short Description Provides a simple react-driven dialog-modal for the WordPress-backend.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package easy-dialog-for-wordpress
Easy Dialog for WordPress
Hint
This is the successor to WP Easy Dialog. The new name became necessary due to the abbreviations used.
Changes
- wp-easy-dialog => new: easy-dialog
Requirements
- composer to install this package.
- npm to compile the scripts.
- WordPress-plugin, theme or Code Snippet-plugin to embed them in your project.
Installation
composer require threadi/easy-dialog-for-wordpress
- Switch to
vendor/thread/easy-dialog-for-wordpress
- Run
npm i
to install dependencies. - Run
npm run build
to compile the scripts. - Add the codes from
doc/embed.php
to your WordPress-project (plugin or theme).
Configuration
Any dialog is configured with the following options as array (each is optional):
- className
- string with names the modal should become to set individual styles
- title
- represents the title as single text
- texts
- array of texts for the dialog
- each entry contains a single string
- buttons
- array of buttons for the dialog
- each entry is an array with following settings:
- action
- string of JavaScript to run on click
- href
- string for href-attribute on the button
- variant
- string to define button-styling
- possible values:
- primary
- secondary
- this setting is optional
- className
- string for additional css-class on the button
- text
- string for the button-text
- hide_title
- value set to
true
to hide the title
- value set to
- isDismissible
- value set to
true
to show X to close the dialog
- value set to
- shouldCloseOnClickOutside
- value set to
true
to close the dialog on click outside of the dialog
- value set to
- shouldCloseOnEsc
- value set to
true
to close the dialog via key "esc"
- value set to
Usage
PHP
Example 1
Example 2
JavaScript
Example
Custom styles
You can customize the output of the dialog with your custom css.
E.g.:
FAQ
Which WordPress version is required?
Lowest tested version is WordPress 5.9.
How to simply close the active dialog?
Use this JS-function: closeDialog();
Is it possible to create multiple dialogs on one screen?
No, you will be able to show only 1 dialog at same time.
How to open a new dialog after click on dialog-button?
Call your own function as callback for the button.
Example:
All versions of easy-dialog-for-wordpress with dependencies
PHP Build Version
Package Version
No informations.
The package threadi/easy-dialog-for-wordpress contains the following files
Loading the files please wait ....