Sha256: 0814e42aecb0499e791540fe792ef63f27f980ea458dcef9db19b98678089bd2

Contents?: true

Size: 848 Bytes

Versions: 3

Compression:

Stored size: 848 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('chart_url', pageflow.UrlInputView, {
        displayPropertyName: 'display_scraped_site_url',
        supportedHosts: supportedHosts,
        required: true,
        permitHttps: 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

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-chart-2.6.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-2.5.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js
pageflow-chart-2.4.0 app/assets/javascripts/pageflow/chart/editor/views/configuration_editor.js