Search by

infrangible / m2-select2

infrangible

Provides the Select2 library for styled, searchable drop-down lists in the Magento storefront and admin, used by other Infrangible modules.

Package info

github.com/infrangible-dev/m2-select2

Homepage

Language:Less

Type:magento2-module

pkg:composer/infrangible/m2-select2

Statistics

Installs: 117

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

2.0.1 2026-11-26 17:36 UTC

This package is auto-updated.

Last update: 2026-11-26 17:40:22 UTC


README

Provides Select2 4.1.0-rc.0 (MIT license) for other modules: select boxes with search, in the frontend and in the admin. The module changes nothing in the store on its own.

Usage

The script is the RequireJS module Infrangible_Select2/js/select2, a jQuery plugin:

define(['jquery', 'Infrangible_Select2/js/select2'], function ($) {
    $('select.my-select').select2();
});

The styles of Select2 are part of the styles of every theme (view/base/web/css/source/_module.less).

For example, Infrangible Catalog Product Option Select2 adds custom options of products with Select2.

Requirements

  • Magento Open Source or Adobe Commerce 2.4.6 or newer
  • PHP 8.1 or newer

Installation

composer require infrangible/m2-select2
bin/magento module:enable Infrangible_Select2
bin/magento setup:upgrade

In production mode, also run bin/magento setup:static-content:deploy.

License

Infrangible Select2 is licensed under the MIT License - see the LICENSE file for details.