Download the PHP package threadi/react-dialog without Composer
On this page you can find all versions of the php package threadi/react-dialog. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download threadi/react-dialog
More information about threadi/react-dialog
Files in threadi/react-dialog
Download threadi/react-dialog
More information about threadi/react-dialog
Files in threadi/react-dialog
Vendor threadi
Package react-dialog
Short Description Provides a simple react-driven dialog-modal for WordPress-frontend.
License GPL-3.0-or-later
Package react-dialog
Short Description Provides a simple react-driven dialog-modal for WordPress-frontend.
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package react-dialog
React 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/react-dialog
- Switch to
vendor/thread/react-dialog
- Run
npm i
to install dependencies. - Run
npm run build
to compile the scripts. - Add the codes from
doc/embed.php
to your WordPress-projekt (plugin or theme).
Configuration
Each dialog is configured with the following options as array:
- className
- string with names the modal should become to set individual styles
- title
- represents the title as single text
- hide_title
- value set to
true
to hide the title
- value set to
- 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
- variant
- string to define button-styling
- possible values:
- primary
- secondary
- this setting is optional
- text
- string for the button-text
- action
Usage
PHP
JavaScript
Custom styles
You can customize the output of the dialog with your custom css.
E.g.:
FAQ
Is it possible to create multiple dialogs on one screen?
No, this is not possible.
How to open a new dialog after click on dialog-button?
Call your own function as callback for the button.
Example:
All versions of react-dialog with dependencies
PHP Build Version
Package Version
No informations.
The package threadi/react-dialog contains the following files
Loading the files please wait ....