Render button
This commit is contained in:
parent
119933b9b6
commit
0114209320
3 changed files with 26 additions and 6 deletions
src
|
@ -1,3 +1,4 @@
|
|||
import { Button } from './lib/button';
|
||||
import { Card, CardVm, GetField } from './lib/card';
|
||||
import { Here, RegisterJumpHere } from './lib/debug';
|
||||
import { Expr } from './lib/expr';
|
||||
|
@ -121,7 +122,13 @@ function render() {
|
|||
|
||||
const vm: CardVm = {
|
||||
mode: "render",
|
||||
commands: { ...HTML, get: GetField, expr: Expr, here: Here },
|
||||
commands: {
|
||||
...HTML,
|
||||
get: GetField,
|
||||
expr: Expr,
|
||||
here: Here,
|
||||
button: Button,
|
||||
},
|
||||
output: "",
|
||||
card: theCard,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue