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.
-
objectNamestring Component instance name. -
initOptionsstring Init options object (stringified).initOptions.componentOptionsobjectComponentconstructor options.
-
callbackany 1C callback identifier of this wrapper function.
Returns string
sync payloadInstantiated Component object name and DOM element id which will receive async responses from this object will be returnedasync payloadNone
skripio.runObjectMethod function
Executes given Component instance method.
objectstringComponentinstance name.methodstringComponentinstance method name.methodArgsstringComponentmethod arguments (stringified).callbackany 1C callback identifier of this function.
Returns any
sync payloadSee component method docsasync payloadSee component method docs
Component class
An object of this class is instantiated by the skripio.initObject function.
-
componentOptionsobject Constructor options interface object.componentOptions.undefinedcomponentOptions.undefined
Returns string
sync payloadNoneasync payloadNone
asyncMethod Component method
Returns result asynchronously after given timeout.
-
argsobject Method arguments object.
Returns string
sync payloadNoneasync payloadMessage passed
syncMethod Component method
Returns result synchronously.
-
argsobject Method arguments object.
Returns string
sync payloadMessage passedasync payloadNone