Download the PHP package dragonsoftware/modalizable without Composer

On this page you can find all versions of the php package dragonsoftware/modalizable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package modalizable

Issues Forks Stars

Modalizable is a bootstrap 4 styled popup modal edit plugin that enables you create edit modal popup with ease and could be customized to fit your needs. it currently supports all input types and could as well auto submit the form

Requirement

require via composer

publish assets

include scripts

The click, modal and autoSubmit key in the array of the @include above are optional. But do provide them if you want to give the bootstrap modal a different id, by default, the click is a html 5 class attribute that triggers the modal when the edit button on your front end is clicked. This is set to modalizable by default, this implies that if you have a mark up code for your edit you should have the following class attached to it.

The modal denotes the id to be given to the modal by default this is modalizableModal

The autoSubmit denotes if when you click on the save button should this library automatically use ajax and also process error handling for you

Features!

To use the library do ensure you do the following

Then you also pass a label to be used for selectLabel argument(6th) of the modalizableGenerator method. for select option this label is used as the optgroup, for radios, checkboxes and switch it is used as a caption for what the entire radio or checkbox is meant for.

The next argument(7th) are the selected values that shows the item to be selected or checked this should be passed as an array. for select a single value is needed for checkboxes multiple or single are required e.g. for the above values array previously defined

The next argument(8th) is the keys which is to be defined to know what key is to be used from the values argument array for label, value, and which is to be used to determine what is selected or checked e.g.

The next argument(9th) is the custom attribute, this is to be used if you want an array to be passed as a custom attribute of selext,radio, checkbox, switch tag each index of the value key is used for attribute e.g.

The last argument is parent class which defines what class to be appended at main div housing the entire input tag

To initialize this do make sure your button to be clicked for edit has the following

The id denotes a unique identifier of the currently edited form,

The caption denotes the caption to be used as modal heading,

The url denotes the where the form is to be submitted,

The class denotes what should be used to trigger autoSubmit when the save button on the modal is clicked,

The placeholder denotes the name it should give to the id of the tag where the errors should be shown,

The errors denotes the class to be used to clear field found to have validation errors this is automatically handled if autosubmit is enabled

The type denotes what was used to prefix id's in markup on modalizable Controller e.g. edit-name

More Examples

checkbox usage

select Option Usage

Performing Complex formating

to perform complex task do listen for bootstrap modal open event

Upcoming features


All versions of modalizable with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dragonsoftware/modalizable contains the following files

Loading the files please wait ....