Options
new yamoodow(tabs,{options});
- tabs - (array, Needed) array containing the tabs-information as objects - {url,text,iframe}:
- url - (string, Needed) The URL to load
- text - (string, Needed if buildTabs is true) The text of the Tab
- iframe - (boolean, Defaults to false) If true URL is loaded into iframe otherwise via Ajax
The following options are available:
- opener - (element, optional: defaults to null) An element that will get a event to open the window on click. (Removes other click-events and the href-attribute)
- title - (string, optional: defaults to '') The title of the window to display
- width - (mixed, optional: defaults to 500) The outer width of the window
- height - (mixed, optional: defaults to 400) The outer height of the window
- buildTabs - (boolean, optional: defaults to true) If set to false no tabs are built and shown
- cssPrefix - (string, optional: defaults to 'ymd') The prefix to that each id or class of elements built by yamoowin is added (e.g. ymdWindow)
- cache - (boolean, optional: defaults to true) If set to true the contents of every loaded tab are cached in not displayed containers - This means that they are still present in the document!
- lang - (object, optional: defaults below) Contains some texts needed for the status bar:
- loading - (string, optional: defaults to 'Loading...')
- loaded - (string, optional: defaults to 'Ready')
- failure - (string, optional: defaults to 'Error: ')
- loading - (string, optional: defaults to 'Loading...')
- httpCodes - (object, optional: defaults below) (Error) codes and theyr explanations. Added to lang.failure on failure while Ajax-Requests:
- '404':'page not found'
- '403':'forbidden'
- Add others if you need
- overlayOpacity - (number, optional: defaults to 0.8) A float number between 0-1. Will fade the overlay to this opacity
- overlayFadeDuration - (number, optional: defaults to 400) The duration of the overlay fading transition in ms
- windowFadeDuration - (number, optional: defaults to 400) The duration of the window fading transition in ms
For advanced usage and events see the Advanced-Section
