Class: Wedge::Plugins::Pjax
- Defined in:
- lib/wedge/plugins/pjax.rb
Defined Under Namespace
Classes: Nanobar
Constant Summary
Constants inherited from Component
Component::REJECTED_CLIENT_OPTS
Instance Method Summary collapse
Methods inherited from Component
client_wedge_opts, #client_wedge_opts, config, dom, #method_missing, method_missing, new, opts, tmpl, #wedge, wedge_components, #wedge_config, wedge_config, wedge_dom, #wedge_dom, #wedge_function, #wedge_javascript, wedge_on, wedge_on_server, wedge_opts, #wedge_opts, wedge_setup, wedge_tmpl, #wedge_tmpl, #wedge_trigger
Methods included from Methods
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Wedge::Component
Instance Method Details
#get(href = false) ⇒ Object
24 25 26 27 28 29 |
# File 'lib/wedge/plugins/pjax.rb', line 24 def get href = false $pjax_progress_bar = Nanobar.new({bg: '#f99f22'}.to_n) .start `$(document).trigger('page:click')` $window.history.push href, pjax: true end |
#progress_bar ⇒ Object
20 21 22 |
# File 'lib/wedge/plugins/pjax.rb', line 20 def $pjax_progress_bar end |