Sha256: 2a81292692fc1f567e633be3f8bc6f0effb75bc8586505bd29e9c02d3e51039e

Contents?: true

Size: 979 Bytes

Versions: 2

Compression:

Stored size: 979 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.input('scraped_site_id', pageflow.FileProcessingStateDisplayView, {
        collection: 'pageflow_chart_scraped_sites'
      });
      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

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-chart-2.3.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-2.2.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js