Closed poc7667 closed 9 years ago
I found out , I should write the action bymyself.
Thank you :D
class NavigationScreen < ProMotion::TableScreen
def table_data
site_url = "https://tw.yahoo.com"
[{
title: nil,
cells: [
{
title: 'Home',
action: :show_webpage,
arguments: site_url
},
]
}]
end
def show_webpage(site_url)
app_delegate.menu.center_controller = WebScreen.new(url: site_url, nav_bar: true)
app_delegate.menu.toggle_left
end
end
I want to do this way for side menu,
But I got this error