Sha256: 301eb572276b71ef2f305ca572a3fb289694bac392d4b27030ccb51da84b22eb
Contents?: true
Size: 751 Bytes
Versions: 10
Compression:
Stored size: 751 Bytes
Contents
pageflow.WidgetType = pageflow.Object.extend({ initialize: function(serverSideConfig, clientSideConfig) { this.name = serverSideConfig.name; this.translationKey = serverSideConfig.translationKey; this.configurationEditorView = clientSideConfig.configurationEditorView; this.isOptional = clientSideConfig.isOptional; }, hasConfiguration: function() { return !!this.configurationEditorView; }, createConfigurationEditorView: function(options) { var constructor = this.configurationEditorView; return new constructor(_.extend({ attributeTranslationKeyPrefixes: [ 'pageflow.editor.widgets.attributes.' + this.name, 'pageflow.editor.widgets.common_attributes' ] }, options)); } });
Version data entries
10 entries across 10 versions & 1 rubygems