Members
AV
- Source:
The global object for the viewer. Used for providing an API to the surrounding page.
(constant) avDefaults
- Source:
These are global values defined in the AV registry. They can be overridden by creating a global AV
object with the same properties before injector.js
is executed.
Methods
$on(eventName, listener) → {function}
- Source:
A shorthand for $rootScope.$on; no need to inject $rootScope
separately;
Parameters:
Name | Type | Description |
---|---|---|
eventName |
String | event name to listen once |
listener |
function | a callback function to execute |
Returns:
a deregister function
- Type
- function
applyDefault(name, value)
- Source:
Checks if a property is already set and applies the default.
Parameters:
Name | Type | Description |
---|---|---|
name |
String | property name |
value |
String | Object | Number | default value |
compile($q, translations, $translate) → {function}
- Source:
Translate service
Parameters:
Name | Type | Description |
---|---|---|
$q |
Object | Angular object |
translations |
Object | Translation object who contains one properties for every language |
$translate |
Object | Angular object |
Returns:
Function who contain translation data
- Type
- function
configureParser()
- Source:
Configures the praser provider by adding accented characters as valid identifiers in Angular expressions. This solves the problem with French characters used in datatable field names when they are bound to the template. Potentially, it should work for other languages using accented characters. The condition can be expanded if needed.
(private) initLanguages($rootElement, $translate, commonService)
- Source:
Initialize author by setting the languages.
Parameters:
Name | Type | Description |
---|---|---|
$rootElement |
Object | Angular object |
$translate |
Object | Angular object |
commonService |
Object | Common service |
(private) initShortcut(keyNames, formService)
- Source:
Initialize keyboard shortcut.
Parameters:
Name | Type | Description |
---|---|---|
keyNames |
Object | key names with corresponding key code |
formService |
Object | Form service |
loadExtensions($rootElement, $rootScope, externalService)
- Source:
Fetches any data-av-extensions
scripts.
Parameters:
Name | Type | Description |
---|---|---|
$rootElement |
Object | the root element |
$rootScope |
Object | the root scope element |
externalService |
Object | external service for extension functions |
(private) uploadDefault($rootElement, $http, modelManager)
- Source:
Starts default configuration upload.
Parameters:
Name | Type | Description |
---|---|---|
$rootElement |
Object | Angular object |
$http |
Object | Angular object to read file |
modelManager |
Object | Model Manager service |
(private) uploadSchema($http, $timeout, $rootElement, events, constants, modelManager)
- Source:
Starts schema upload.
Parameters:
Name | Type | Description |
---|---|---|
$http |
Object | Angular object to read file |
$timeout |
Object | Angular object to read file |
$rootElement |
Object | Angular object |
events |
Object | Angular object |
constants |
Object | Constants service |
modelManager |
Object | Model Manager service |