Sha256: 4a52e1413369545ddb355f59df0b4603d6266c532e7d8b1aee8fa47c0cfb50aa
Contents?: true
Size: 1.13 KB
Versions: 23
Compression:
Stored size: 1.13 KB
Contents
pageflow.ConfigurationEditorView = Backbone.Marionette.View.extend({ className: 'configuration_editor', initialize: function() { this.tabsView = new pageflow.TabsView({ i18n: this.options.tabTranslationKeyPrefix || 'pageflow.ui.configuration_editor.tabs', defaultTab: this.options.tab }); this.configure(); }, configure: function() {}, tab: function(name, callback) { this.tabsView.tab(name, _.bind(function() { var tabView = new pageflow.ConfigurationEditorTabView({ model: this.model, placeholderModel: this.options.placeholderModel, tab: name, attributeTranslationKeyPrefixes: this.options.attributeTranslationKeyPrefixes }); callback.call(tabView); return tabView; }, this)); }, refresh: function() { this.tabsView.refresh(); }, render: function() { this.$el.append(this.subview(this.tabsView).el); return this; } }); _.extend(pageflow.ConfigurationEditorView, { repository: {}, register: function(pageTypeName, prototype) { this.repository[pageTypeName] = pageflow.ConfigurationEditorView.extend(prototype); } });
Version data entries
23 entries across 23 versions & 1 rubygems