vue-tables-2
Version:
Vue.js 2 grid components
23 lines (20 loc) • 696 B
JavaScript
;
var debounce = require('debounce');
module.exports = function (h) {
var _this = this;
return function (classes, id) {
var search = _this.source == 'client' ? _this.search.bind(_this, _this.data) : _this.serverSearch.bind(_this);
return h("input", {
"class": "VueTables__search__input ".concat(classes.input, " ").concat(classes.small),
attrs: {
type: "text",
placeholder: _this.display('filterPlaceholder'),
id: "VueTables__search_".concat(props.id),
autocomplete: "off"
},
on: {
"keyup": _this.opts.debounce ? debounce(search, _this.opts.debounce) : search
}
});
};
};