Compare commits
2 Commits
db90a10bf6
...
2ccd4e998b
| Author | SHA1 | Date | |
|---|---|---|---|
| 2ccd4e998b | |||
| 3699454b1e |
17
basics/calculator.md
Normal file
17
basics/calculator.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Component definitions
|
||||
|
||||
## Simple calculator
|
||||
|
||||
```yaml
|
||||
code: basics.calculator
|
||||
description: Do simple operations for numbers in `args` input.
|
||||
inputs:
|
||||
- operator: string enum { add, subtract, multiply, divide }
|
||||
- args: object[]
|
||||
outputs:
|
||||
- result: object
|
||||
source: S8n.Components.Packages (project)
|
||||
class: S8n.Components.Basics.Calculator
|
||||
methods: Calc()
|
||||
gui: CalculatorComponent.vue
|
||||
```
|
||||
Reference in New Issue
Block a user