PluginComponent
  • Home
  • Get started
    • Get started
    • Callback event
    • BaseComponent
  • Components
    • Input
    • Jumbotron
    • Button
    • Container
  • AddProperties
    • Text
    • BackgroundColor
    • Padding
  • Extra functions
    • Validate
    • Color
  • Created with PluginComponent
Powered by GitBook
On this page
  • Create Frame
  • Create ScrollFrame
  • Methods
  • .SetHeight(Scale,Offset) .SetWidth(Scale,Offset)
  • .Resize()
  • .CollumMode()
  • Inherited from BaseComponent
  • Additional methods:
  • Properties
  • .isAutoResize = true
  1. Components

Container

The main component. Creates a Frame in which all elements are placed.

Create Frame

local Container = PluginComponents.Component.Container.New();

Container.SetParent(script.Parent)

.SetHeight(0, 600)

.SetWidth(0,360)

Create ScrollFrame

If you need to scroll through the window there is a second frame option

local Container = PluginComponents.Component.Container.New(PluginComponents.Component.Container.DesignVariant.Scroll);

Container.SetParent(script.Parent)

.SetHeight(0, 600)

.SetWidth(0,360)

Methods

.SetHeight(Scale,Offset) .SetWidth(Scale,Offset)

Changes the size of the Frame.

.Resize()

Adapts Frame size to the elements inside

.CollumMode()

Switches to speaker mode. All elements inside will be built horizontally. Suitable for custom Tabbar or Bottombar

Additional methods:

Properties

.isAutoResize = true

This parameter disables the automatic triggering of Resize()

PreviousButtonNextAddProperties

Last updated 3 years ago

Inherited from

BaseComponent
BackgroundColor
Padding