Sha256: 7322e402ae0b8f954507878bea9f73ba4a5ee921ab6d5f32b5ed0a18284ddcd8

Contents?: true

Size: 454 Bytes

Versions: 21

Compression:

Stored size: 454 Bytes

Contents

Voom::Presenters.define(:code) do
  if context[:file]
    grid do
      column 12 do
        body ''
        expansion_panel 'Show Source' do
          content do
            form do
              source = File.read(context[:file])
              text_area full_width: true, rows: source.split("\n").size do
                value source
                label 'Source'
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 app/demo/shared/code.pom
voom-presenters-2.1.0 app/demo/shared/code.pom
voom-presenters-2.0.3 app/demo/shared/code.pom
voom-presenters-2.0.2 app/demo/shared/code.pom
voom-presenters-2.0.1 app/demo/shared/code.pom
voom-presenters-2.0.0 app/demo/shared/code.pom
voom-presenters-0.2.0 app/demo/shared/code.pom
voom-presenters-0.1.13 app/demo/shared/code.pom
voom-presenters-0.1.12 app/demo/shared/code.pom
voom-presenters-0.1.11 app/demo/shared/code.pom
voom-presenters-0.1.10 app/demo/shared/code.pom
voom-presenters-0.1.9 app/demo/shared/code.pom
voom-presenters-0.1.8 app/demo/shared/code.pom
voom-presenters-0.1.7 app/demo/shared/code.pom
voom-presenters-0.1.6 app/demo/shared/code.pom
voom-presenters-0.1.5 app/demo/shared/code.pom
voom-presenters-0.1.4 app/demo/shared/code.pom
voom-presenters-0.1.3 app/demo/shared/code.pom
voom-presenters-0.1.2 app/demo/shared/code.pom
voom-presenters-0.1.1 app/demo/shared/code.pom