Display a Form instead of an ApplicationFrame

Continuing the discussion from Display a form instead of an overview:

Hi @soeren-round-ridge, I’ve opened this new thread to continue the discussion.

Hi @soeren-round-ridge,

hope I understand your use case correctly, but you can define a custom layout and either define your own implementation or even simpler: override the default ApplicationFrameLayout and provide a widgetMap with a custom applicationFrame widget. Here is an example, that just renders the content area:

const layoutProvider: FrameViews.LayoutProvider = name => {
	return name === "ApplicationFrame"
		? { component: CustomFrameLayout }
		: FrameFactories.layoutProvider(name);
};

function CustomFrameLayout(props: FrameViews.ApplicationFrameLayoutProps): ReactNode {
	return (
		<FrameViews.ApplicationFrameLayout
			{...props}
			widgetMap={{
				applicationFrame: NullApplicationFrame
			}}
		/>
	);
}

function NullApplicationFrame(props: ApplicationFrameProps): ReactNode {
	return ApplicationFrame.getContent(props.content);
}

Turns out I just reinvented the Null layout. If you don’t need any features like header or sidebar using this layout should be more than enough. Changing the layout in your app model to “Null” should be all you have to do.