> For the complete documentation index, see [llms.txt](https://thebuildex.gitbook.io/enoria/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://thebuildex.gitbook.io/enoria/guide/widgets/pagelayout.md).

# PageLayout

Create UIPageLayout based layout. It is basically creating a Frame, with a UIPageLayout and given childrens inside.

## Example

```lua
e:RunApp({
	Name = script.Parent.Parent.Name,
	Home = e.PageLayout({
		Name = "Mypagelayout",
		Circular = true,
		Children = {
			e.Container({
				BackgroundColor3 = Color3.fromRGB(0, 170, 127),
			}),
			e.Container({
				BackgroundColor3 = Color3.fromRGB(255, 85, 0),
			})
		}
	})
})

--changing pages each 5 seconds
while true do
	wait(5)
	e.Context.GetElementByName("Mypagelayout").UIPageLayout:Next()
end
```
