Sha256: de5acbcf015e2efafcd1b4ee267c638e0c20794a62ebf929250309ee47ded3c1

Contents?: true

Size: 906 Bytes

Versions: 3

Compression:

Stored size: 906 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.input('background_image_id', pageflow.FileInputView, {collection: pageflow.imageFiles});
      this.input('thumbnail_image_id', pageflow.FileInputView, {
        collection: pageflow.imageFiles,
        imagePositioning: false
      });
    });

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-chart-0.2.2 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-0.2.1 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-0.2.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js