blob: 0662b893dd8d8af9f81c6181b0e5c6020f8af841 [file] [log] [blame]
define(['menu/lengthField'], function (lengthFieldClass) {
return {
/**
* Create lengthField object for the hint helper menu.
*/
create : function () {
return Object.create(lengthFieldClass).
upgradeTo(this)._init();
},
/**
* Override the prefix action.
*/
add : function (param) {
this._element.appendChild(document.createElement('span'))
.appendChild(document.createTextNode(param[0] + '--'));
var desc = this._element.appendChild(document.createElement('span'));
desc.classList.add("desc");
desc.appendChild(document.createTextNode(param[2] + '--'));
this._element.appendChild(desc);
}
};
});