ayrozjlc/yii2-datatables-mark

AssetBundle for Search Datatables highlighting with mark.js

dev-master 2021-07-27 20:52 UTC

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
});