metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
53 lines (40 loc) • 1.31 kB
JavaScript
/* global Metro */
/* eslint-disable */
(function(Metro, $) {
'use strict';
var SearcherDefaultConfig = {
onSearcherCreate: Metro.noop
};
Metro.searcherSetup = function (options) {
SearcherDefaultConfig = $.extend({}, SearcherDefaultConfig, options);
};
if (typeof window["metroSearcherSetup"] !== undefined) {
Metro.searcherSetup(window["metroSearcherSetup"]);
}
Metro.Component('searcher', {
init: function( options, elem ) {
this._super(elem, options, SearcherDefaultConfig, {
// define instance vars here
});
return this;
},
_create: function(){
var that = this, element = this.element, o = this.options;
this._createStructure();
this._createEvents();
this._fireEvent('searcher-create');
},
_createStructure: function(){
var that = this, element = this.element, o = this.options;
},
_createEvents: function(){
var that = this, element = this.element, o = this.options;
},
changeAttribute: function(attr, newValue){
},
destroy: function(){
this.element.remove();
}
});
}(Metro, m4q));
/* eslint-enable */