WIP
This commit is contained in:
@@ -23,6 +23,7 @@ type Context interface {
|
||||
GetKind() int
|
||||
GetViewName() string
|
||||
GetKey() string
|
||||
GetSelectedItemId() string
|
||||
}
|
||||
|
||||
type BasicContext struct {
|
||||
@@ -34,6 +35,11 @@ type BasicContext struct {
|
||||
ViewName string
|
||||
}
|
||||
|
||||
// TODO: think about whether we need this on the Context interface or if it should just be on the ListContext struct
|
||||
func (c BasicContext) GetSelectedItemId() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (c BasicContext) HandleRender() error {
|
||||
if c.OnRender != nil {
|
||||
return c.OnRender()
|
||||
|
||||
Reference in New Issue
Block a user