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(1y ago)30MPL-2.0JavaScript

Since Jun 1Pushed 1y 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 today

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

26

—

LowBetter than 41% of packages

Maintenance47

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

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

397d 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

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2842.6M](/packages/elgentos-regenerate-catalog-urls)[nosto/module-nostotagging

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

27703.7k4](/packages/nosto-module-nostotagging)[tig/postnl-magento2

TIG Magento 2 PostNL extension

59570.5k5](/packages/tig-postnl-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

244.9k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

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