Class: Ambling::Stock::Settings::ContextMenu

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/stock.rb

Overview

“function_name” specifies JavaScript function which will be called when user clicks on

this menu. You can pass variables, for example: function_name="alert('something')".
"title" sets menu item text. Do not use for title: Show all, Zoom in, Zoom out, Print, Settings...     
You can have any number of custom menus. Uncomment the line below to enable this menu and add
apropriate JS function to your html file. #

Defined Under Namespace

Classes: DefaultItems

Constant Summary collapse

VALUES =
[:menu,:default_items]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#default_itemsObject

false

(true / false) to show or not flash player zoom menu#



1826
1827
1828
# File 'lib/ambling/stock.rb', line 1826

def default_items
  @default_items
end

Returns the value of attribute menu.



1822
1823
1824
# File 'lib/ambling/stock.rb', line 1822

def menu
  @menu
end