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
  • Example
  • Events
  • .MouseButton1Click:Connect
  • .MouseButton2Click:Connect
  • Methods
  • .SetBackgroundColor(color3)
  • .SetText(val)
  • .Disabled()
  • .UnDisabled()
  • .RemovePaddingAndText()
  • Inherited from BaseComponent
  1. Components

Button

Just a button

Example

local BtnExapmle = PluginComponents.Component.Btn.New()
.SetBackgroundColor(PluginComponents.Color.Blue)
.SetText("Click me!")
.MouseButton1Click:Connect(function()
    print("Click")
end)

Events

.MouseButton1Click:Connect

Clicking with the mouse

.MouseButton2Click:Connect

Right-click

Methods

.SetBackgroundColor(color3)

МChanges the background of the button

.SetText(val)

Меняет текст кнопки

.Disabled()

Disables the element. Making it greyed out.

.UnDisabled()

Restores the element

.RemovePaddingAndText()

Removes unnecessary space around it. Needed for the Table component

PreviousJumbotronNextContainer

Last updated 3 years ago

Inherited from

BaseComponent