Download the PHP package liquidlab-agency/magento2-multiline-grid without Composer

On this page you can find all versions of the php package liquidlab-agency/magento2-multiline-grid. 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 magento2-multiline-grid

LiquidLab MultilineGrid Module

This module provides a solution for displaying multiline text in Magento 2 admin grids. It preserves line breaks in text area custom attributes when displayed in the admin product grid.

Before and After

Before

After

Installation

To install the module via Composer:

After installation:

  1. The module is already installed in your Magento 2 instance.
  2. After making any changes to the module, you need to deploy the static content and clear the cache:

Usage

The module automatically applies to all columns in the admin grid. No additional configuration is needed in your UI component XML.

How It Works

The module uses a mixin approach to:

  1. Extend the default Magento UI column functionality
  2. Convert newlines (\n) to HTML <br> tags
  3. Use Knockout's html binding instead of text binding to preserve HTML formatting

This ensures that line breaks in text area fields are properly displayed in the admin grid without requiring any changes to your UI component XML files.

Technical Details

The module follows Magento's best practices for mixins:

  1. The requirejs-config.js file is placed in the view/adminhtml directory
  2. It defines a mixin for the Magento_Ui/js/grid/columns/column component
  3. The mixin overrides the getLabel method to convert newlines to <br> tags 4The mixin sets the bodyTmpl to use a custom template with the html binding using the mapped path: bodyTmpl: 'Liquidlab_MultilineGrid/grid/cells/multiline'

This approach automatically applies to all columns in the admin grid, making it a more elegant solution than creating a custom column type.

After making changes to the module, always run the deployment commands listed in the Installation section to ensure the changes take effect. This is especially important when modifying RequireJS configurations and template paths.


All versions of magento2-multiline-grid with dependencies

PHP Build Version
Package Version
Requires magento/framework Version *
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 liquidlab-agency/magento2-multiline-grid contains the following files

Loading the files please wait ...