Skip to content

Instantly share code, notes, and snippets.

@wizhippo
Created June 29, 2016 02:06
Show Gist options
  • Save wizhippo/92e8f7573a5e99b5a54615ab0ad70cd8 to your computer and use it in GitHub Desktop.
Save wizhippo/92e8f7573a5e99b5a54615ab0ad70cd8 to your computer and use it in GitHub Desktop.
YUI.add('app-navigationhubviewplugin', function (Y) {
"use strict";
Y.namespace('MyApp');
Y.MyApp.NavigationHubViewPlugin = Y.Base.create('appNavigationHubViewPlugin', Y.Plugin.Base, [], {
initializer: function () {
Y.log("newzone");
},
}, {
NS: 'MyApp',
ATTRS: {
zones: {
value: {
'platform': 'Content',
'studio': 'Page',
'studioplus': 'Performance',
'admin': 'Admin Panel',
'newzone': 'New zone',
},
readOnly: true,
},
newzoneNavigationItems: {
setter: '_buildNavigationViews',
writeOnce: true,
},
},
});
Y.eZ.PluginRegistry.registerPlugin(
Y.MyApp.NavigationHubViewPlugin, ['navigationHubView']
);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment