blackhydrogen/noop-sewi — pull request #11 by TheFuzzy (2014-09-15 23:34:50+00:00)
Title: Configurator

Configurator and TabContainer implemented.

Configurator must be constructed with an `options` object, with the following keys:

- `titleView` - a selector, DOM element or jQuery object in which the title of the encounter will be displayed (required)
- `basicInfoView` - a selector, DOM element or jQuery object in which the basic encounter information will be displayed (required)
- `resViewerView` - a selector, DOM element or jQuery object in which resources will be displayed (required)
- `resGalleryView` - a selector, DOM element or jQuery object in which the resource gallery will be displayed (required)
- `animated` - whether the above views are animated when resizing (default: `true`)
- `isBasicInfoMinimized` - whether the basic information view is initially minimized (default: `true`)
- `isResourceViewerHidden` - whether the resource view is initially hidden, expanding the resource gallery to fit (default: `true`)
- `title` - The initial title to be displayed (default: `'Loading'`)
- `subtitle` - The initial subtitle to be displayed (default: `'Please wait'`)

Configurator (for now) will be fail-safe, and will not throw an error if the sub-components (e.g. TabContainer) are missing.

TabContainer is now working; it can open new tabs and close tabs, but has no limit to the number of open tabs.