Skip to content

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Infrangible Select2

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.

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages