PHP Classes

File: vendor/datatables/SearchBuilder-1.3.4/js/searchBuilder.semanticui.js

Recommend this page to a friend!
  Classes of Braun Okoi Boniface   eprotech   vendor/datatables/SearchBuilder-1.3.4/js/searchBuilder.semanticui.js   Download  
File: vendor/datatables/SearchBuilder-1.3.4/js/searchBuilder.semanticui.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: eprotech
Application to access medical product suppliers
Author: By
Last change:
Date: 1 year ago
Size: 2,392 bytes
 

Contents

Class file image Download
/*! semantic ui integration for DataTables' SearchBuilder * 2016 SpryMedia Ltd - datatables.net/license */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD define(['jquery', 'datatables.net-se', 'datatables.net-searchbuilder'], function ($) { return factory($); }); } else if (typeof exports === 'object') { // CommonJS module.exports = function (root, $) { if (!root) { root = window; } if (!$ || !$.fn.dataTable) { // eslint-disable-next-line @typescript-eslint/no-var-requires $ = require('datatables.net-se')(root, $).$; } if (!$.fn.dataTable.searchBuilder) { // eslint-disable-next-line @typescript-eslint/no-var-requires require('datatables.net-searchbuilder')(root, $); } return factory($); }; } else { // Browser factory(jQuery); } }(function ($) { 'use strict'; var dataTable = $.fn.dataTable; $.extend(true, dataTable.SearchBuilder.classes, { clearAll: 'basic ui button dtsb-clearAll' }); $.extend(true, dataTable.Group.classes, { add: 'basic ui button dtsb-add', clearGroup: 'basic ui button dtsb-clearGroup', logic: 'basic ui button dtsb-logic' }); $.extend(true, dataTable.Criteria.classes, { condition: 'ui selection dropdown dtsb-condition', data: 'ui selection dropdown dtsb-data', "delete": 'basic ui button dtsb-delete', left: 'basic ui button dtsb-left', right: 'basic ui button dtsb-right', value: 'basic ui selection dropdown dtsb-value' }); dataTable.ext.buttons.searchBuilder.action = function (e, dt, node, config) { e.stopPropagation(); this.popover(config._searchBuilder.getNode(), { align: 'container', span: 'container' }); // Need to redraw the contents to calculate the correct positions for the elements if (config._searchBuilder.s.topGroup !== undefined) { config._searchBuilder.s.topGroup.dom.container.trigger('dtsb-redrawContents'); } $('div.dtsb-searchBuilder').removeClass('ui basic vertical buttons'); }; return dataTable.searchPanes; }));