Sha256: 03672c658f91bc120de1680841a3aa9faaae2aff49baff650ffb924458e4daf2
Contents?: true
Size: 1.28 KB
Versions: 58
Compression:
Stored size: 1.28 KB
Contents
pageflow.ConfigurationEditorTabView.groups.define('background', function(options) { options = options || {}; var prefix = options.propertyNamePrefix ? options.propertyNamePrefix + '_' : ''; var backgroundTypeProperty = prefix + 'background_type'; this.input(backgroundTypeProperty, pageflow.SelectInputView, { values: ['image', 'video'], ensureValueDefined: true }); this.input(prefix + 'background_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, visibleBinding: backgroundTypeProperty, visibleBindingValue: 'image', fileSelectionHandlerOptions: options }); this.input(prefix + 'video_file_id', pageflow.FileInputView, { collection: pageflow.videoFiles, visibleBinding: backgroundTypeProperty, visibleBindingValue: 'video', fileSelectionHandlerOptions: options }); this.input(prefix + 'poster_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, visibleBinding: backgroundTypeProperty, visibleBindingValue: 'video', fileSelectionHandlerOptions: options }); this.input(prefix + 'mobile_poster_image_id', pageflow.FileInputView, { collection: pageflow.imageFiles, visibleBinding: backgroundTypeProperty, visibleBindingValue: 'video', fileSelectionHandlerOptions: options }); });
Version data entries
58 entries across 58 versions & 1 rubygems