Download the PHP package mkocansey/bladewind-sortable without Composer

On this page you can find all versions of the php package mkocansey/bladewind-sortable. 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 bladewind-sortable

License Packagist Version

BladewindUI

Sortable

BladewindUI — Drag and drop sortable list component, powered by SortableJS.

Installation

Or install the full library:

Usage

Attributes

Attribute Type Default Description
type simple\|shared simple shared lists can exchange items with other lists in the same group.
group string null Group name used by shared lists to know which lists can swap items.
clone bool false Leave a copy behind when dragging an item into another (shared) list.
sortable bool true Enable or disable sorting of items within the list.
hasHandle bool false Drag items by a dedicated handle instead of the whole item surface.
handleIcon string bars-3 Heroicon name used for the drag handle when hasHandle is true.
filter string null Space/comma separated class names whose items cannot be dragged.
multidrag bool false Select (ctrl/cmd + click) and drag multiple items at once.
swap bool false Swap items on drop instead of shifting them. Not combinable with multidrag.
animation int 150 Reorder animation duration in milliseconds.
inputName string null Renders a hidden <input> with this name, kept in sync with the order as a JSON array. Submit it with your form.
onSorted string null Name of a JS function called after each reorder as (order, event). Useful for saving via AJAX.

The sortable.item component accepts a value attribute (rendered as data-id) — this is the identifier reported in the order array, e.g. your model id.

Saving the order

Submitting with a form. Give the list an inputName and each item a value. A hidden input is kept in sync with the order and submitted like any other field:

On the server the field arrives as a JSON array of ids in their new order:

Saving with AJAX (no form submit). Point onSorted at a JS function that receives the order array:

Reading the order yourself. Each list is exposed as a JS variable named after its name, so you can call SortableJS methods directly — e.g. task_list.toArray() returns the current order at any time.

Sharing items between two lists

Documentation

Full documentation, live demos, and all available attributes are at bladewindui.com.

License

MIT — see the LICENSE file.


All versions of bladewind-sortable with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
mkocansey/bladewind-core Version ^4.4
mkocansey/bladewind-icon Version ^4.4
mkocansey/bladewind-script Version ^4.4
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 mkocansey/bladewind-sortable contains the following files

Loading the files please wait ...