Class: RemoteIndicator

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/liquid_cms/templates/vendor/plugins/remote_helpers/lib/remote_helpers.rb

Overview

Default values that can be overridden in environment.rb

  • default_image - The default image indicator

  • default_id - The default css id given to the indicator

  • default_class - The default css class given to the indicator

  • enable_all - Enable remote indicators on all remote functions by default

  • effect - The default effect to apply to the indicator when it is shown(before) and hidden(after)

Examples

  • RemoteIndicator.default_image = 'spinner.gif'

  • RemoteIndicator.default_id = 'spinner'

  • RemoteIndicator.default_class = 'spinner'

  • RemoteIndicator.enable_all = false

  • RemoteIndicator.effect = {:before => 'new Effect.Appear', :after => 'new Effect.Fade'}

Constant Summary collapse

@@default_image =
'indicator.gif'
@@default_id =
'indicator'
@@default_class =
'indicator'
@@enable_all =
true
@@effect =
{:before => 'Element.show', :after => 'Element.hide'}