blob: dc14d5c739a61681938ae43982c46c9681c7a7e0 [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;
}
};
});