ayrozjlc / yii2-datatables-mark
AssetBundle for Search Datatables highlighting with mark.js
Installs: 23
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/datatables.mark.js: *
- bower-asset/mark.js: *
- yiisoft/yii2: 2.0.*
This package is auto-updated.
Last update: 2024-10-28 04:51:34 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 });