Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2376 from lenriquez/issue-2020
Browse files Browse the repository at this point in the history
Horizontal stacking of fields
  • Loading branch information
Sam Foo committed Jun 3, 2021
2 parents 788c184 + 331ef55 commit 68df9b7
Show file tree
Hide file tree
Showing 22 changed files with 826 additions and 929 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/2020-lenriquez
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Horizontal stacking of fields
1 change: 1 addition & 0 deletions cmd/octant-sample-plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ func initRoutes(router *service.Router) {
form := component.Form{Fields: []component.FormField{
component.NewFormFieldHidden("action", pluginActionName),
}}

testButton := component.Action{
Name: "Test Button",
Title: "Test Button",
Expand Down
2 changes: 2 additions & 0 deletions pkg/view/component/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const (
TypeExpressionSelector = "expressionSelector"
// TypeFlexLayout is a flex layout component.
TypeFlexLayout = "flexlayout"
// TypeFormField is a form field component.
TypeFormField = "formField"
// TypeGraphviz is a graphviz component.
TypeGraphviz = "graphviz"
// TypeGridActions is a grid actions component.
Expand Down
2 changes: 1 addition & 1 deletion pkg/view/component/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ type containersMarshal Containers
// MarshalJSON implements json.Marshaler
func (t *Containers) MarshalJSON() ([]byte, error) {
m := containersMarshal(*t)
m.Metadata.Type = "containers"
m.Metadata.Type = TypeContainers
return json.Marshal(&m)
}
Loading

0 comments on commit 68df9b7

Please sign in to comment.