Sha256: cf94330bed251ff5df268f399df74472f9bddac01f3f130604e53d5d35842c7c

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 Bytes

Contents

<%
  init = <<~JAVASCRIPT
    promethee.definitions.push({
      name: 'Aside',
      icon: #{render('promethee/components/aside/icon').to_json.html_safe},
      position: 30,
      data: {
        type: 'aside',
        attributes: {
          visible_content: '<p>Edit me</p>',
          collapsed_content: '',
          open_label: 'See more'
        },
        children: []
      }
    })
  JAVASCRIPT
%>

<%= content_tag :div, nil, 'ng-init': init %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
promethee-1.6.10 app/views/promethee/components/aside/_edit.define.html.erb
promethee-1.6.8 app/views/promethee/components/aside/_edit.define.html.erb
promethee-1.6.7 app/views/promethee/components/aside/_edit.define.html.erb
promethee-1.6.6 app/views/promethee/components/aside/_edit.define.html.erb