ayrozjlc / yii2-datatables-mark
AssetBundle for Search Datatables highlighting with mark.js
Package info
github.com/ayrozjlc/yii2-datatables-mark
Type:yii2-extension
pkg:composer/ayrozjlc/yii2-datatables-mark
dev-master
2021-07-27 20:52 UTC
Requires
- bower-asset/datatables.mark.js: *
- bower-asset/mark.js: *
- yiisoft/yii2: 2.0.*
This package is auto-updated.
Last update: 2026-02-28 07:48:42 UTC
README
AssetBundle for Search Datatables highlighting with mark.js
Installation
Composer
composer require --prefer-dist "ayrozjlc/yii2-datatables-mark:*"
or add
"ayrozjlc/yii2-datatables-mark": "dev-master"
to the require section of your composer.json file.
Usage
in view (for example: @app/views/layouts/main.php)
// ... use ayrozjlc\datatablesmark\DataTablesMarkAsset; // ... DataTablesMarkAsset::register($this);
or add to your assets/AppAsset.php
public $depends = [ // ... 'ayrozjlc\datatablesmark\DataTablesMarkAsset', ];
add option in datatables
$(".myTable").DataTable({ mark: true });