Have got the item view working

This commit is contained in:
Leon Mika 2022-03-27 21:43:53 +00:00 committed by GitHub
parent 2638597f42
commit c3d19d5891
4 changed files with 112 additions and 4 deletions

View file

@ -21,6 +21,7 @@ import (
"github.com/lmika/awstools/internal/dynamo-browse/services/tables"
"github.com/lmika/awstools/internal/dynamo-browse/ui"
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels"
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels/dynamoitemview"
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels/dynamotableview"
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels/frame"
"github.com/lmika/awstools/internal/dynamo-browse/ui/teamodels/layout"
@ -81,7 +82,7 @@ func main() {
layout.NewVBox(
layout.LastChildFixedAt(11),
frame.NewFrame("This is the header", true, dynamotableview.New(tableReadController)),
frame.NewFrame("This is another header", false, layout.Model(newTestModel("this is the bottom"))),
frame.NewFrame("This is another header", false, dynamoitemview.New()),
),
"Hello world",
)