Sha256: ad976ed8068403078dda1d2c3799e302deb77efcb2fc81700c21164a9c2a8dcd
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'glimmer/swt/grid_layout_proxy' require 'glimmer/swt/widget_proxy' module Glimmer module SWT class CompositeProxy < WidgetProxy attr_reader :layout def initialize(parent, args, block) super(parent, args, block) @layout = GridLayoutProxy.new(self, []) end def dom div_id = id div_style = css div_class = name @dom ||= html { div(id: div_id, class: div_class, style: div_style) }.to_s end def layout=(the_layout) @layout = the_layout end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
glimmer-dsl-opal-0.7.0 | lib/glimmer/swt/composite_proxy.rb |
glimmer-dsl-opal-0.6.1 | lib/glimmer/swt/composite_proxy.rb |