Forum Archive

Push View from Table View

bmccardle

How do you push a view from tableview? You can push a view from a button since it is a subclass of view, but tableview is a subclass of scrollview and it does not look like it is possible.

dgelessus

Isn't ScrollView a View subclass? Thus TableView should also inherit all View properties. Also as far as I know the only kind of view supporting the push/pop functionality is NavigationView, though I haven't used those much yet, so I can't help you with the details there, sorry.

bmccardle

I think the problem is with listDataSource. When you link it to an action it does not support push view.

JonB

Why not put the table inside another view?

bmccardle

@JonB Thanks, I did put the table inside the navigation view.

I figured it out, when I had ListDataSource.action I was trying to send the action to push_view instead of NavigationView.push_view()