Sha256: a92aa05c1a497cd553cc2885133e27fa41d40696505be66590c72cea57067962
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
//= require_tree ./editor/models //= require_self pageflow.editor.pageTypes.register('timeline_page', { configurationEditorView: pageflow.ConfigurationEditorView.extend({ configure: function() { this.tab('general', function() { this.group('general'); }); this.tab('files', function() { this.input('background_image_id', pageflow.FileInputView, { collection: 'image_files' }); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: 'image_files', positioning: false }); }); this.tab('links', function() { this.input('timeline_layout', pageflow.SelectInputView, { values: ['center', 'left', 'right', 'margin'] }); this.view(pageflow.PageLinksView, { model: this.model.page }); }); this.tab('options', function() { this.group('options'); }); } }), pageLinks: function(configuration) { configuration._timelinePageLinks = configuration._timelinePageLinks || new pageflow.OrderedPageLinksCollection(null, { model: pageflow.timelinePage.PageLink, configuration: configuration }); return configuration._timelinePageLinks; }, pageLinkConfigurationEditorView: pageflow.ConfigurationEditorView.extend({ configure: function() { this.tab('general', function() { this.group('page_link'); this.input('thumbnail_image_id', pageflow.FileInputView, { collection: 'image_files', fileSelectionHandler: 'pageLink' }); this.input('timeline_item_position', pageflow.SelectInputView, { values: ['left', 'right'] }); this.input('timeline_item_size', pageflow.SelectInputView, { values: ['small', 'medium', 'large'] }); this.input('tagline', pageflow.TextInputView); this.input('title', pageflow.TextInputView); }); } }) });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-timeline-page-0.1.0 | app/assets/javascripts/pageflow/timeline_page/editor.js |