Skip to content

Creating an Application

You can create a new app by calling the New method from the Cascade API. This returns a custom object merged with a ScreenGui.

The returned object exposes all built-in components such as Window, Tab, and others for UI composition.

Summary

Properties

Property Type Description
WindowPill boolean? Whether or not the window minimize/restore pill should be visible.
Theme Theme? Defines the color pallete used by the overall application.

View all inherited from ScreenGui

Methods

View all inherited from ScreenGui

Events

View all inherited from ScreenGui

Types

type AppProperties = ScreenGui & {
    WindowPill: boolean?,
    Theme: Theme?,
}

type App = AppProperties & Components

Function Signature

function(self, properties: AppProperties): App

Example

1
2
3
4
local app = cascade.New({
    WindowPill = true,
    Theme = cascade.Themes.Light
})