| * Menu showing all key fields. |
| create : function (params) { |
| const obj = Object.create(menuClass) |
| prefixClass : prefixClass |
| // This is only domspecific |
| obj.element().addEventListener( |
| * Register callback for click event. |
| released : function (cb) { |
| * A click event was released |
| release : function (key, type) { |
| if (this._cb !== undefined) |
| * Return a key type based on a key. |
| * This is a linear search, but should work okay for small |
| * VCs and small key lists. |
| typeOf : function (key) { |
| const found = this._items.find(i => i.key() === key); |