Sha256: e65744d4c412c393195e401207b664a9c42d9027836c768f07d8b5fd608e3959
Contents?: true
Size: 832 Bytes
Versions: 27
Compression:
Stored size: 832 Bytes
Contents
### Vedeu.views Define a view (content) for an interface. The views declared within this block are stored in their respective interface back buffers until a refresh event occurs. When the refresh event is triggered, the back buffers are swapped into the front buffers and the content here will be rendered. Multiple views can be rendered inside a `views` block as the example below shows: Vedeu.views do # view :some_interface do # line do # stream do # left 'Title goes here', width: 35 # end # stream do # right Time.now.strftime('%H:%m'), width: 7 # end # end # end # view :other_interface do # lines do # line 'This is content for the main interface.' # line '' # line 'Pretty easy eh?' # end # end end
Version data entries
27 entries across 27 versions & 1 rubygems