Sha256: 50eda05d99b40bc7a1f4e8134a8e167f72937c552cde5d978188fdf4511d009e

Contents?: true

Size: 838 Bytes

Versions: 6

Compression:

Stored size: 838 Bytes

Contents

pageflow.ConfigurationEditorView.register('chart', {
  configure: function() {
    var supportedHosts = this.options.pageType.supportedHosts;

    this.tab('general', function() {
      this.group('general');
    });

    this.tab('files', function() {
      this.input('scraped_site_id', pageflow.chart.ScrapedUrlInputView, {
        supportedHosts: supportedHosts,
        displayPropertyName: 'display_scraped_site_url',
        required: true
      });
      this.view(pageflow.chart.DatawrapperAdView);
      this.input('full_width', pageflow.CheckBoxInputView);
      this.group('background');
      this.input('thumbnail_image_id', pageflow.FileInputView, {
        collection: pageflow.imageFiles,
        imagePositioning: false
      });
    });

    this.tab('options', function() {
      this.group('options');
    });
  }
});

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-chart-2.1.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-2.0.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-1.2.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-1.1.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-1.0.1 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-1.0.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js