-
Notifications
You must be signed in to change notification settings - Fork 4
Core
Eric edited this page Oct 29, 2017
·
129 revisions
OGX.MobileCore as its name indicates, is the core of the mobile application. It can hold multi stages, add/remove windows into stages, add/remove views into stages and windows as well as some other base functions.
let config = {
scopes:_ARRAY_ //List of current permissions the user has - Defaults to ['public']
};
let app = new OGX.MobileCore(config);
app.addStage(_STAGE_NAME_, _STAGE_OBJECT, _CONFIG_);
app.removeStage(_STAGE_NAME_);
app.useStage(_STAGE_NAME_);
app.snoozeStage(_STAGE_NAME_);
app.wakeStage(_STAGE_NAME_);
app.showStage(_STAGE_NAME_, _ANIMATION_);
app.addToStage(_SELETOR_, _VIEW_, _VIEW_CONFIG_);
app.removeFromStage(_SELECTOR_);
app.addWindow(_WINDOW_NAME_, _CONFIG_, _ANIMATION_, _ZINDEX_);
app.getWindow(_WINDOW_NAME_);
app.windowExists(_WINDOW_NAME_);
app.showWindow(_WINDOW_NAME_, _ANIMATION_, _ANIMATION_PARAMS_);
app.hideWindow(_WINDOW_NAME_, _CALLBACK_, _ANIMATION_, _ANIMATION_PARAMS_);
app.snoozeWindow(_WINDOW_NAME_);
app.wakeWindow(_WINDOW_NAME_);
app.blurWindow(_WINDOW_NAME_);
app.focusWindow(_WINDOW_NAME_);
app.removeWindow(_WINDOW_NAME_);
app.addToWindow(_WINDOW_NAME_, _VIEW_, _VIEW_CONFIG_, _SELECTOR_);
app.removeFromWindow(_WINDOW_NAME_, _SELECTOR_);
app.getWindowView(_WINDOW_NAME_, _SELECTOR_);
By default, a window has a view element. If SELECTOR is not specified, app will use the default view element to display the view. But you can also create a custom window that holds 2 views (or more - #view1 and #view2 DIVs) and assign a view to each of these elements.
- Welcome
- Changelog
- Structure
- Configuration
- Getting started
- CLI
- Poly
- Core
- Templating
- Routing
- Controllers
- Components
- Extra Components
- Helpers
- Styling
- Debugging