Skip to content

Content

editor.Content of package editor is the main area of an editor Screen. It wraps a single view in a scrollable container, either filling the whole area or styled as a centered page.

editor.Screen("Document").
	Content(editor.Content(Text("The document")).Style(editor.ContentPage))

Constructors

ConstructorDescription
editor.Content(view core.View) TContentCreates a new TContent with the given view and sets it visible by default.

Methods

MethodDescription
Style(style ContentStyle) TContentApplies ContentFull (the default, a scrollable full-size area) or ContentPage (a scrollable, styled page).

Related