Paragraph Gridstack - provides a new paragraphs behavior plugin for dashboard layout and creation. Making a drag-and-drop, the multi-column responsive dashboard has never been more straightforward.
This module uses the GridstackJS library. Inspired by no-longer maintained gridster, built with love. Check http://gridstackjs.com and these demos.
Module and dependencies installation:
The composer way #1
Run composer require wikimedia/composer-merge-plugin
Update the root composer.json file. For example:
"extra": {
"merge-plugin": {
"include": [
"web/modules/contrib/paragraphs_gridstack/composer.libraries.json"
]
}
}
Run composer require drupal/paragraphs_gridstack gridstack/gridstack, and the GridstackJS library will automatically be installed in the libraries folder.
The composer way #2
Add a custom package to the root composer.json file. Its repository key looks like the following.
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "package",
"package": {
"name": "gridstack/gridstack",
"version": "8.2.1",
"type": "drupal-library",
"dist": {
"url": "https://registry.npmjs.org/gridstack/-/gridstack-8.2.1.tgz",
"type": "tar"
}
}
}
]
Run composer require drupal/paragraphs_gridstack gridstack/gridstack, and the GridstackJS library will be installed in the libraries folder automatically.
The composer way #3
Run composer require oomphinc/composer-installers-extender, to install an additional package allowing you to install Gridstack.JS as npm-asset from asset-packagist.org.
Update your composer.json file:
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
},
{
"type": "composer",
"url": "https://asset-packagist.org"
}
],
Set the new repository for the composer to download npm-asset packages.
"extra": {
"installer-types": ["bower-asset", "npm-asset"],
"drupal-scaffold": {
...
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library",
"type:bower-asset",
"type:npm-asset"
],
...
},
},
Update the extra settings to define new installers types and configure them as library assets.
Run composer require drupal/paragraphs_gridstack npm-asset/gridstack:8.2.1, to install an additional package allowing you to install Gridstack.JS as npm-asset from asset-packagist.org.
πΊπ¦
This module is maintained by Ukrainian developers.Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Paragraphs ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 1.0.0-alpha6 | Pre-release | Feb 10, 2024 | ||
| 1.0.0-alpha5 | Pre-release | Jun 24, 2023 | ||
| 1.0.0-alpha4 | Pre-release | Jun 2, 2023 | ||
| 1.0.0-alpha3 | Pre-release | May 29, 2023 | ||
| 1.0.0-alpha2 | Pre-release | May 20, 2023 |