mirror of
https://github.com/lucaspalomodevelop/JSSTE.git
synced 2026-03-13 07:19:37 +00:00
add StateFunction to README
This commit is contained in:
parent
dab7c7e78e
commit
347e83f7f6
11
README.md
11
README.md
@ -72,6 +72,17 @@ let result = Jsste.render(pagecode, templatecode);
|
||||
- `_TEMPLATE_` -> Defines the path to the temp file
|
||||
- `_STYLES_` -> Defines a list of CSS files that will be implemented
|
||||
|
||||
### Include States
|
||||
|
||||
You can include an Callbackfunction that will be called when the state is change
|
||||
|
||||
```javascript
|
||||
jsste.setStateFunction(({ status, statusMSG }) => {
|
||||
yourstatus = status;
|
||||
yourstatusMSG = statusMSG;
|
||||
});
|
||||
```
|
||||
|
||||
### States-Codes
|
||||
|
||||
| Code | Meaning |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user