-
buildURL(val)
-
Creates url from value content
Parameters:
| Name |
Type |
Description |
val |
object
|
|
-
getActionName(name)
-
Transform route name in action name
Parameters:
| Name |
Type |
Description |
name |
String
|
tranform action name |
Returns:
-
Type
-
String
-
getApp()
-
Returns current notApp
Returns:
-
Type
-
notApp
-
getAppOptions()
-
Return application options
Returns:
-
Type
-
object
-
getComponents(moduleName)
-
Returns module components
Parameters:
| Name |
Type |
Description |
moduleName |
string
|
name of the module which components requested |
Returns:
-
Type
-
object
-
getCurrentAction()
-
Gets working action
Returns:
current action name
-
Type
-
string
-
getDefaultActionName()
-
Get default controller action name
Returns:
default action from options
-
Type
-
String
-
getModel(data)
-
Returns current model
Parameters:
| Name |
Type |
Description |
data |
object
|
model data |
Returns:
-
Type
-
notRecord
-
getModelActionURL(id, action)
-
Returns this model action URL with URL prefix
Parameters:
| Name |
Type |
Default |
Description |
id |
string
|
|
some identificator of model |
action |
string
|
false
|
action name |
Returns:
url path
-
Type
-
string
-
getModelIDFieldName()
-
Returns current model primary ID field name
Returns:
-
Type
-
notRecord
-
getModelName()
-
Returns current model name
Returns:
-
Type
-
string
-
getModelURL()
-
Returns this model URL with URL prefix
Returns:
url path
-
Type
-
string
-
getModuleName()
-
Returns module name
Returns:
module name
-
Type
-
string
-
getModuleOptions(moduleName)
-
Returns module options
Parameters:
| Name |
Type |
Description |
moduleName |
string
|
name of the module which options requested |
Returns:
-
Type
-
object
-
getModulePrefix()
-
Returns this module path prefix
Returns:
path to module dir
-
Type
-
string
-
getName()
-
Gets object name
Returns:
-
Type
-
string
-
getServices(moduleName)
-
Returns module services
Parameters:
| Name |
Type |
Description |
moduleName |
string
|
name of the module which services requested |
Returns:
-
Type
-
object
-
getURLPrefix()
-
Returns module url prefix
Returns:
prefix
-
Type
-
string
-
onAfterRender()
-
emits afterRender event
-
preloadLib(list)
-
Preload records from server, using listAll method,
returns Promise
Parameters:
| Name |
Type |
Description |
list |
object
|
map of preloaded records |
Returns:
-
Type
-
Promise
-
refresh(timeout)
-
Refreshes current URL, re-run all action
Parameters:
| Name |
Type |
Default |
Description |
timeout |
integer
|
0
|
time to wait in ms |
-
route(params)
-
Route params into specific run[Route_name] function
Parameters:
| Name |
Type |
Description |
params |
array
|
controller input params |
Returns:
-
Type
-
undefined
-
setCurrentAction()
-
Sets working action
-
setModel(model)
-
Sets default controller model
Parameters:
| Name |
Type |
Description |
model |
notRecord
|
notRecord interface object |
Returns:
-
Type
-
notController
-
setModelIDFieldName()
-
Sets current model primary ID field name
Returns:
-
Type
-
notRecord
-
setModelName(modelName)
-
Sets default controller model name
Parameters:
| Name |
Type |
Description |
modelName |
string
|
notRecord interface object |
Returns:
-
Type
-
notController
-
setModuleName(val)
-
Sets module name
Parameters:
| Name |
Type |
Description |
val |
sting
|
name of the module |
Returns:
this
-
Type
-
notController
-
setName(val)
-
Sets object name
Parameters:
| Name |
Type |
Description |
val |
sting
|
name of the object |
Returns:
this
-
Type
-
notController
-
setReady(val)
-
Marks this controller as ready
emits "ready"/"busy" events
Parameters:
| Name |
Type |
Default |
Description |
val |
Boolean
|
true
|
true/false |
-
setURLPrefix(val)
-
Sets module URL prefix
Parameters:
| Name |
Type |
Description |
val |
sting
|
URL prefix |
Returns:
this
-
Type
-
notController
-
updateAutoName(val)
-
Updates working name
Parameters:
| Name |
Type |
Description |
val |
sting
|
name of the module |
Returns:
this
-
Type
-
notController
-
<static> getControllerRoute()
-
Returns path pattern for router
Returns:
pattern for controller supported url
-
Type
-
string
-
<static> getControllerRoutes()
-
Returns path patterns for router
Returns:
patterns for controller supported url in order of simplification
-
Type
-
Array.<string>
-
<static> getRoutes()
-
Returns router rule.
Returns:
router rule {paths:String[], controller:notController}
-
Type
-
Object