All Projects → julmot → datatables.mark.js

julmot / datatables.mark.js

Licence: MIT license
A DataTables plugin for mark.js to highlight search terms in tables

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to datatables.mark.js

jQuery-datatable-server-side-net-core
A simple Visual Studio solution using jQuery DataTable with Server-Side processing using .NET 5
Stars: ✭ 71 (+61.36%)
Mutual labels:  datatables, datatables-plugin
react-datatable
React-datatable is a component which provide ability to create multifunctional table using single component like jQuery Datatable. It's fully customizable and easy to integrate in any react component. Bootstrap compatible.
Stars: ✭ 72 (+63.64%)
Mutual labels:  datatables, datatables-plugin
Mark.js
JavaScript keyword highlighting. Mark text with with options that fit every application. Also available as jQuery plugin.
Stars: ✭ 2,004 (+4454.55%)
Mutual labels:  highlight, mark
datatables-bulma
DataTables styling for the Bulma CSS framework
Stars: ✭ 80 (+81.82%)
Mutual labels:  datatables, datatables-plugin
ColReorderWithResize
Column reordering and resizing plug-in for DataTables
Stars: ✭ 41 (-6.82%)
Mutual labels:  datatables, datatables-plugin
laravel-datatables-fractal
Laravel DataTables Fractal Plugin.
Stars: ✭ 94 (+113.64%)
Mutual labels:  datatables, datatables-plugin
Base2Tone-iterm2
Syntax highlighting colorschemes for iTerm2
Stars: ✭ 29 (-34.09%)
Mutual labels:  highlight
mongo-datatables
A package for using the jQuery plug-in DataTables server-side processing (and DataTables Editor) with MongoDB.
Stars: ✭ 14 (-68.18%)
Mutual labels:  datatables
guide
A new feature guide component by react 🧭
Stars: ✭ 597 (+1256.82%)
Mutual labels:  highlight
react-tisch
Table component for React and Bootstrap with real React components as cells
Stars: ✭ 17 (-61.36%)
Mutual labels:  datatables
EasyDataTable
易用和全面的纯Ajax分页插件(中文)
Stars: ✭ 18 (-59.09%)
Mutual labels:  datatables
laravel-vue-datatable
Vue.js Datatable made for Laravel
Stars: ✭ 153 (+247.73%)
Mutual labels:  datatables
laratables-demo
Demo of the Laratables package
Stars: ✭ 21 (-52.27%)
Mutual labels:  datatables
ng-walkthrough
A walkthrough for Angular
Stars: ✭ 21 (-52.27%)
Mutual labels:  highlight
Simple-UI-Semantic-UI-Admin
Free Semantic UI (Fomantic-UI) Admin Template
Stars: ✭ 50 (+13.64%)
Mutual labels:  datatables
DataTables.jl
(DEPRECATED) A rewrite of DataFrames.jl based on Nullable
Stars: ✭ 28 (-36.36%)
Mutual labels:  datatables
POS---Point-Of-Sales
Point of sales proof of concept developed using Asp.Net Core 2.2. Features: Customer, Vendor, Product, Purchase Order, Goods Receive, Sales Order, Inventory Transactions and POS form.
Stars: ✭ 120 (+172.73%)
Mutual labels:  datatables
piu.clj
Simple pastebin
Stars: ✭ 14 (-68.18%)
Mutual labels:  highlight
editable-react-table
React table built to resemble a database.
Stars: ✭ 519 (+1079.55%)
Mutual labels:  datatables
DyAnnotationExtractor
DyAnnotationExtractor is software for extracting annotations (highlighted text and comments) from e-documents like PDF.
Stars: ✭ 34 (-22.73%)
Mutual labels:  highlight

datatables.mark.js

A DataTables plugin for mark.js to highlight search terms in tables

Build Status npm Version Bower Version License

Examples

Getting Started

datatables.mark.js is a plugin to integrate mark.js – a JavaScript keyword highlighter – into DataTables. It detects column specific or global searches and highlights the search term in the table.

Download

Either clone or download this plugin manually, or with npm:

$ npm install datatables.mark.js --save-dev

Or with Bower using:

$ bower install datatables.mark.js --save-dev

CDN

Alternatively the plugin is also available on the following CDN's:

Because the DataTables CDN only updates plugins at own releases and you can't specify an explicit plugin version, it's recommended to use jsDelivr.

Dependencies

This plugin depends on:

  • DataTables v1.10.6+
  • jQuery v1.7+ (necessary by DataTables)
  • mark.js v6.2+ (the jQuery version)

When using a module loader like CommonJS (e.g. Webpack) or AMD (e.g. RequireJS) they will be loaded automatically.

Integration

Finally, you'll have to embed one of these files:

  • datatables.mark.es6.js: Uncompressed ES6
  • datatables.mark.es6.min.js: Compressed ES6 (recommended when using ES6)
  • datatables.mark.js: Uncompressed ES5
  • datatables.mark.min.js: Compressed ES5 (recommended when using ES5)

into your application, by either referencing the file manually using e.g.:

<script src="vendor/datatables.mark.js/dist/datatables.mark.js"></script>

or loading it with AMD or CommonJS.

When using RequireJS you should configure the names of dependent modules as following:

  • jQuery must be named "jquery"
  • DataTables must be named "datatables.net" (defined by DataTables itself)
  • mark.js must be named "markjs"

This is important as datatables.mark.js will load these modules as dependencies. You might have a look at this example.

Usage

Activation

Activation in the DataTables options:

$(".myTable").DataTable({
    mark: true
});

Activation by default for all DataTables instances:

$.extend(true, $.fn.dataTable.defaults, {
    mark: true
});

Activation with custom mark.js options:

$(".myTable").DataTable({
    mark: {
        // ... custom option properties, e.g.
        // className: "highlight"
    }
});

Please head over to the mark.js website for an overview of possible options.

Styling

Now that you've activated the plugin you just need to define your custom styles for the highlighted elements. If you haven't defined a custom element or className in the mark.js options the default element will be mark without having a class assigned. If you don't want to have custom styles, you can embed one of the default CSS files:

Contributing

See the contribution guidelines.

Changelog

Changes are documented in release descriptions.


Happy hacking!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].