Sha256: 2b8f3dc001c36de0083b48c8d52b9f231ec605f1edf4fb5a2866a726bab3a258

Contents?: true

Size: 212 Bytes

Versions: 4

Compression:

Stored size: 212 Bytes

Contents

// get image of position
function getImageOfPosition(position, e) {
  switch (position) {
    case 'left':
    case 'right':
      return e.left_or_right.url;

    case 'center':
      return e.center.url;
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_admin_content_builder_rails_6-1.2.0 app/assets/javascripts/rails_admin/helpers/get_image_of_position.js
rails_admin_content_builder_rails_6-1.1.0 app/assets/javascripts/rails_admin/helpers/get_image_of_position.js
rails_admin_content_builder_rails_6-1.0.1 app/assets/javascripts/rails_admin/helpers/get_image_of_position.js
rails_admin_content_builder_rails_6-1.0.0 app/assets/javascripts/rails_admin/helpers/get_image_of_position.js