toggle_expanded

@accepts(RB.DisplayPage)
@returns(none)
def toggle_expanded(page)

If @page is expanded (children visible), collapses it, otherwise expands it.

page :

the RB.DisplayPage to toggle