blob: bdc7bdf9be65c43d18e17540cd14971089ee1972 [file] [log] [blame]
define(['menu/prefix'], function (prefixClass) {
return {
/**
* Create prefix object for the hint helper menu.
*/
create : function (params) {
return Object.create(prefixClass).
upgradeTo(this)._init(params);
},
/**
* Override the prefix action.
*/
onclick : function () {
var m = this.menu();
var value = this.value();
var h = m.hint();
m.hide();
h.inputField().insert(value);
h.active = false;
}
};
});