-
Notifications
You must be signed in to change notification settings - Fork 4
Net
Eric edited this page Jan 24, 2024
·
10 revisions
Net
is a static class that acts as a file loader.Net
caches then the loaded file in Cache. It automatically preloads everything found in thepreload
node of yourapp.json
.
To check out this page to learn to use the
prepare
command of the CLI to prepare your app and automatically add files to preload to yourapp.json
config.
Load files and store them into the cache
OGX.Net.load(_FILEPATH_, _CALLBACK_, _PARAMS_);
Example
OGX.Net.load('/img/my.png', () => {...});
To trigger the file upload/select process
OGX.Net.upload(_EXT_, _MULTIPLE_FILES_, _CALLBACK_);
Example
OGX.Net.upload(['.png', '.jpg'], true, (__files) => {...});
Automatically create a download link and click it
OGX.Net.download(_STRING_);
Example
OGX.Net.download('https://myserver.com/myfile.png');
- Welcome
- Changelog
- Structure
- Configuration
- Getting started
- CLI
- Poly
- Core
- Templating
- Routing
- Controllers
- Components
- Extra Components
- Helpers
- Styling
- Debugging