New tacnet interface functional

This commit is contained in:
2020-12-09 09:18:52 -06:00
parent 691cafb697
commit d36211cb5e
5 changed files with 76 additions and 18 deletions

View File

@@ -5,12 +5,18 @@ module TAC
attr_reader :menu_bar, :status_bar, :body
def initialize(host:, header_bar_label:, menu_bar:, status_bar:, body:)
def initialize(host:)
@host = host
@header_bar_label = header_bar_label
@menu_bar = menu_bar
@status_bar = status_bar
@body = body
@header_bar_label = host.header_bar_label
@menu_bar = host.menu_bar
@status_bar = host.status_bar
@body = host.body
@options = {}
end
def options=(options)
@options = options
end
def page(klass)