deploy: e10d3c1ae8
This commit is contained in:
@@ -17,38 +17,11 @@ Extends: `VisualElement`
|
||||
|
||||
|Method|Returns|Description|
|
||||
|---|---|---|
|
||||
|[Program.new](#program-new)|-||
|
||||
|[Program:run](#program-run)|-||
|
||||
|[Program:resize](#program-resize)|-||
|
||||
|[Program:resume](#program-resume)|-||
|
||||
|[Program:stop](#program-stop)|-||
|
||||
|[Program.new](#program-new)|Program|Creates a new Program instance|
|
||||
|[Program:init](#program-init-props-basalt)|Program|Initializes the Program instance|
|
||||
|[Program:execute](#program-execute-path-env-addenvironment)|Program|Executes a program|
|
||||
|[Program:stop](#program-stop)|Program|Stops the program|
|
||||
|[Program:sendEvent](#program-sendevent-event-any)|Program|Sends an event to the program|
|
||||
|[Program:onError](#program-onerror-fn)|Program|Registers a callback for the program's error event|
|
||||
|[Program:onDone](#program-ondone-fn)|Program|Registers a callback for the program's done event|
|
||||
|[Program:dispatchEvent](#program-dispatchevent-event-any)|any|Handles all incomming events|
|
||||
|[Program:focus](#program-focus)|-|Gets called when the element gets focused|
|
||||
|[Program:render](#program-render)|-|Renders the program|
|
||||
|
||||
## Program.new()
|
||||
## Program:run()
|
||||
## Program:resize()
|
||||
## Program:resume()
|
||||
## Program:stop()
|
||||
## Program.new()
|
||||
### Returns
|
||||
* `Program` `object` The newly created Program instance
|
||||
|
||||
## Program:init(props, basalt)
|
||||
### Parameters
|
||||
* `props` `table` The properties to initialize the element with
|
||||
* `basalt` `table` The basalt instance
|
||||
|
||||
### Returns
|
||||
* `Program` `self` The initialized instance
|
||||
|
||||
## Program:execute(path, env?, addEnvironment?)
|
||||
|
||||
@@ -99,14 +72,3 @@ Registers a callback for the program's done event
|
||||
|
||||
### Returns
|
||||
* `Program` `self` The Program instance
|
||||
|
||||
## Program:dispatchEvent(event, any)
|
||||
### Parameters
|
||||
* `event` `string` The event to handle
|
||||
* `any` `The` event arguments
|
||||
|
||||
### Returns
|
||||
* `any` `result` The event result
|
||||
|
||||
## Program:focus()
|
||||
## Program:render()
|
||||
Reference in New Issue
Block a user