Template to init new skripio component repo.
This template contains all necessary assets and build tools as well as config files to quickly start creating a new skripio component.
See CONTRIBUTEJS.MD for details on how to develop new skripio component.
skripio
namespace
skripio.initObject
function
Creates a Component
instance.
-
objectName
string Component instance name. -
initOptions
string Init options object (stringified).initOptions.componentOptions
objectComponent
constructor options.
-
callback
any 1C callback identifier of this wrapper function.
Returns string
sync payload
Instantiated Component object name and DOM element id which will receive async responses from this object will be returnedasync payload
None
skripio.runObjectMethod
function
Executes given Component
instance method.
object
stringComponent
instance name.method
stringComponent
instance method name.methodArgs
stringComponent
method arguments (stringified).callback
any 1C callback identifier of this function.
Returns any
sync payload
See component method docsasync payload
See component method docs
Component
class
An object of this class is instantiated by the skripio.initObject
function.
-
componentOptions
object Constructor options interface object.componentOptions.undefined
componentOptions.undefined
Returns string
sync payload
Noneasync payload
None
asyncMethod
Component method
Returns result asynchronously after given timeout.
-
args
object Method arguments object.
Returns string
sync payload
Noneasync payload
Message passed
syncMethod
Component method
Returns result synchronously.
-
args
object Method arguments object.
Returns string
sync payload
Message passedasync payload
None