... | @@ -40,17 +40,17 @@ The outline of `main.js`is as follows: |
... | @@ -40,17 +40,17 @@ The outline of `main.js`is as follows: |
|
* Functions for handling patching and saving of new data
|
|
* Functions for handling patching and saving of new data
|
|
* Ractive decorators. These are used to handle different ui requirements, such as select2 style select components, sliding elements, accordion, input field ornamentation, special formatting, maintaining support panel positioning
|
|
* Ractive decorators. These are used to handle different ui requirements, such as select2 style select components, sliding elements, accordion, input field ornamentation, special formatting, maintaining support panel positioning
|
|
* The ractive instance, with
|
|
* The ractive instance, with
|
|
* * Event handlers. These are called on any `on-click`, `on-enter` etc events from user interface markup.
|
|
* Event handlers. These are called on any `on-click`, `on-enter` etc events from user interface markup.
|
|
* * Observers. These are called when particular values in the state models changes.
|
|
* Observers. These are called when particular values in the state models changes.
|
|
|
|
|
|
#### Exposed objects
|
|
#### Exposed objects
|
|
The `main.js` exposes some handy channels into the belly of Catalinker with which one can poke and peek around. Among these are the main ractive instance, underscore.js and jQuery.js. These are accessible in browser console as
|
|
The `main.js` exposes some handy channels into the belly of Catalinker with which one can poke and peek around. Among these are the main ractive instance, underscore.js and jQuery.js. These are accessible in browser console as
|
|
* `document.main.getRactive()``
|
|
* `document.main.getRactive()`
|
|
* `document.main._`
|
|
* `document.main._`
|
|
* `document.main.$`
|
|
* `document.main.$`
|
|
and are handy tools for debugging and development.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These are handy tools for debugging and development.
|
|
|
|
|
|
### workflow_config.js
|
|
### workflow_config.js
|
|
The configuration file mainly consists of these groups:
|
|
The configuration file mainly consists of these groups:
|
|
* inputForms
|
|
* inputForms
|
... | | ... | |