Class: Scarpe::Webview::Progress

Inherits:
Drawable show all
Defined in:
lib/scarpe/wv/progress.rb

Constant Summary

Constants included from Shoes::Log

Shoes::Log::DEFAULT_COMPONENT, Shoes::Log::DEFAULT_DEBUG_LOG_CONFIG, Shoes::Log::DEFAULT_LOG_CONFIG

Instance Attribute Summary

Attributes inherited from Drawable

#children, #parent, #shoes_linkable_id

Attributes inherited from Shoes::Linkable

#linkable_id

Instance Method Summary collapse

Methods inherited from Drawable

#add_child, #bind, #destroy_self, display_class_for, #full_window_redraw!, #handler_js_code, #html_element, #html_id, #inspect, #needs_update!, #promise_update, #properties_changed, #remove_child, #set_parent, #shoes_styles, #to_html

Methods included from Shoes::Log

configure_logger, #log_init, logger

Methods inherited from Shoes::Linkable

#bind_shoes_event, #send_self_event, #send_shoes_event, #unsub_all_shoes_events, #unsub_shoes_event

Constructor Details

#initialize(properties) ⇒ Progress

Returns a new instance of Progress.



5
6
7
# File 'lib/scarpe/wv/progress.rb', line 5

def initialize(properties)
  super
end

Instance Method Details

#elementObject

For now do not catch properties_changed and do a small update. Tiranti updates some additional fields (e.g. aria-valuenow) that Calzini does not. We'll want Calzini and Tiranti to handle the updates more for themselves. See issue #419 for updates on how we'll handle this. But for right now we re-render the whole drawable every time we change the progress fraction.



15
16
17
# File 'lib/scarpe/wv/progress.rb', line 15

def element
  render("progress")
end