33 lines
675 B
Markdown
33 lines
675 B
Markdown
# Frame : Container
|
|
This is the frame class. It serves as a grouping container for other elements.
|
|
|
|
## Functions
|
|
|
|
|Method|Returns|Description|
|
|
|---|---|---|
|
|
|[Frame.new](#Frame.new)|Frame|Creates a new Frame instance
|
|
|[Frame:init](#Frame:init)|Frame|Initializes the Frame instance
|
|
|
|
## Frame.new()
|
|
Creates a new Frame instance
|
|
|
|
### Returns
|
|
* `Frame` `self` The newly created Frame instance
|
|
|
|
### Usage
|
|
```lua
|
|
local frame = Frame.new()
|
|
```
|
|
|
|
## Frame:init(props, basalt)
|
|
Initializes the Frame instance
|
|
|
|
### Parameters
|
|
* `props` `table` The properties to initialize the element with
|
|
* `basalt` `table` The basalt instance
|
|
|
|
### Returns
|
|
* `Frame` `self` The initialized instance
|
|
|
|
|