Advanced search: UI/UX WIP.

SVN:b1162[5540]
This commit is contained in:
Guillaume Lajarige
2018-03-27 08:18:42 +00:00
parent 7664633f18
commit ba04725ee3
4 changed files with 55 additions and 2 deletions

View File

@@ -0,0 +1,52 @@
//iTop Search form criteria hierarchical key
;
$(function()
{
// the widget definition, where 'itop' is the namespace,
// 'search_form_criteria_hierarchical_key' the widget name
$.widget( 'itop.search_form_criteria_hierarchical_key', $.itop.search_form_criteria_enum,
{
// default options
options:
{
},
// the constructor
_create: function()
{
var me = this;
this._super();
this.element.addClass('search_form_criteria_hierarchical_key');
},
// called when created, and later when changing options
_refresh: function()
{
},
// events bound via _bind are removed automatically
// revert other modifications here
_destroy: function()
{
this.element.removeClass('search_form_criteria_hierarchical_key');
this._super();
},
// _setOptions is called with a hash of all options that are changing
// always refresh when changing options
_setOptions: function()
{
this._superApply(arguments);
},
// _setOption is called for each individual option that is changing
_setOption: function( key, value )
{
this._super( key, value );
},
//------------------
// Inherited methods
//------------------
});
});