blob: 75866179698c1c6ab3a0c1f56d9a69fa144e37b8 [file] [log] [blame]
Nils Diewald0e6992a2015-04-14 20:13:52 +00001define(['menu/prefix'], function (prefixClass) {
2 return {
Nils Diewald7148c6f2015-05-04 15:07:53 +00003
4 /**
5 * Create prefix object for the hint helper menu.
6 */
Nils Diewald0e6992a2015-04-14 20:13:52 +00007 create : function (params) {
Nils Diewald7148c6f2015-05-04 15:07:53 +00008 return Object.create(prefixClass).
9 upgradeTo(this)._init(params);
Nils Diewald0e6992a2015-04-14 20:13:52 +000010 },
Nils Diewald7148c6f2015-05-04 15:07:53 +000011
12 /**
13 * Override the prefix action.
14 */
Nils Diewald0e6992a2015-04-14 20:13:52 +000015 onclick : function () {
16 var m = this.menu();
17 var h = m.hint();
18 m.hide();
19
20 h.inputField().insert(this.value());
21 h.active = false;
22 }
23 };
24});