Skip to content

Back Button

layout.WithBackButton of package layout puts a localized back button above a view. The button navigates back in the browser history. Use it for detail pages which are reached from a list.

Back Button

return VStack(
	layout.WithBackButton(wnd, VStack(
		Text("Order #4711").Font(HeadlineSmall),
		Text("Shipped on 2 October."),
	).Alignment(Leading).FullWidth()),
).Frame(Frame{Width: L480})

Constructors

FunctionDescription
layout.WithBackButton(wnd core.Window, view core.View) core.ViewWraps a view with a back button at the top.

The result is a full-width VStack; there are no methods to configure it further.

Related