Sha256: 272ba24e9b8c4915d3b3d83a9456ca1db7afaecea116e46104a5752d351947b4
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
# class_template.erb # frozen_string_literal: true class Scarpe class <%= argument %> < Scarpe::Widget # Display Properties # These properties determine the visual characteristics of the widget # Customize them according to your requirements # Example display properties: # :background_color - Sets the background color of the widget (<%= argument %>) # :width - Specifies the width of the widget(<%= argument %>) # :height - Specifies the height of the widget(<%= argument %>) display_properties <%= display_properties %> def initialize super # Event Handlers # Define your event handlers here # to get broad idea on events look in wiki section # Example event handler: # bind_self_event("dummy") do # # Event handling code goes here # end # This method uses the DisplayService to create a visual representation of the widget # It generates a display widget based on the specified display properties create_display_widget end # other methods end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
scarpe-0.2.1 | templates/basic_class_template.erb |
scarpe-0.2.0 | templates/basic_class_template.erb |