blob: 84f6ae9f985e6d2a7ca01b2210d9604ca713dc3d [file] [log] [blame]
Akron48b1e4d2015-06-17 18:47:01 +02001/**
2 * Menu showing all predefined virtual collections.
3 * THIS IS EXPERIMENTAL AND MAY BE REMOVED!
4 */
5define(['vc/menu', 'api'], function (menuClass, itemClass) {
6 return {
7 create : function (params) {
8 return Object.create(menuClass)
Akron0b489ad2018-02-02 16:49:32 +01009 .upgradeTo(this)
10 ._init(itemClass, undefined, undefined, params);
Akron48b1e4d2015-06-17 18:47:01 +020011 },
12
13 /**
14 * A click event was released
15 */
16 release : function (id, name) {
17 if (this._cb !== undefined)
Akron0b489ad2018-02-02 16:49:32 +010018 this._cb(id, name);
Akron48b1e4d2015-06-17 18:47:01 +020019 }
20 };
21});