PHPackages                             liquidlab-agency/magento2-multiline-grid - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. liquidlab-agency/magento2-multiline-grid

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

liquidlab-agency/magento2-multiline-grid
========================================

Magento 2 module that preserves line breaks in text area custom attributes when displayed in the admin product grid.

1.0.2(11mo ago)301MPL-2.0JavaScript

Since Jun 1Pushed 11mo agoCompare

[ Source](https://github.com/liquidlab-agency/magento2-multiline-grid)[ Packagist](https://packagist.org/packages/liquidlab-agency/magento2-multiline-grid)[ RSS](/packages/liquidlab-agency-magento2-multiline-grid/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

LiquidLab MultilineGrid Module
==============================

[](#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-and-after)

### Before

[](#before)

[![Before](media/before.png)](media/before.png)

### After

[](#after)

[![After](media/after.png)](media/after.png)

Installation
------------

[](#installation)

To install the module via Composer:

```
composer require liquidlab-agency/magento2-multiline-grid

```

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: ```
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy -f
    bin/magento cache:clean
    bin/magento cache:flush

    ```

Usage
-----

[](#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
------------

[](#how-it-works)

The module uses a mixin approach to:

1. Extend the default Magento UI column functionality
2. Convert newlines (`\n`) to HTML `` 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
-----------------

[](#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 `` 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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance51

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

344d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92c314c20b6d15684cff367c3d48732f1ea0074efedec77e2d5f9efc9b4384c5?d=identicon)[liquidlab](/maintainers/liquidlab)

![](https://www.gravatar.com/avatar/b5d9b3bcbbbebb62b1f53afd772f4a81d02a77e969b0acc23e565a28f64445c8?d=identicon)[hawksama](/maintainers/hawksama)

---

Top Contributors

[![Hawksama](https://avatars.githubusercontent.com/u/46504593?v=4)](https://github.com/Hawksama "Hawksama (5 commits)")

### Embed Badge

![Health badge](/badges/liquidlab-agency-magento2-multiline-grid/health.svg)

```
[![Health](https://phpackages.com/badges/liquidlab-agency-magento2-multiline-grid/health.svg)](https://phpackages.com/packages/liquidlab-agency-magento2-multiline-grid)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27659.1k4](/packages/nosto-module-nostotagging)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
