deploy: 36c5e658c4
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# BenchmarkAPI
|
||||
Benchmark API methods
|
||||
# Benchmark
|
||||
This is the benchmark plugin. It provides performance measurement tools for elements and methods,
|
||||
with support for hierarchical profiling and detailed statistics. The plugin is meant to be used for very big projects
|
||||
where performance is critical. It allows you to measure the time taken by specific methods and log the results.
|
||||
|
||||
## Functions
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# BaseElement
|
||||
This is the benchmark plugin. It provides performance measurement tools for elements and methods,
|
||||
with support for hierarchical profiling and detailed statistics.
|
||||
The following methods are available for BaseElement
|
||||
|
||||
## Functions
|
||||
|
||||
|
||||
@@ -2,5 +2,14 @@
|
||||
This module provides reactive functionality for elements, it adds no new functionality for elements.
|
||||
It is used to evaluate expressions in property values and update the element when the expression changes.
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
local button = main:addButton({text="Exit"})
|
||||
button:setX("{parent.x - 12}")
|
||||
button:setBackground("{self.clicked and colors.red or colors.green}")
|
||||
button:setWidth("{self.text:len() + 2}")
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user