PluginFramework
  • Welcome!
  • Quick Start
  • Page
  • Navigation (PageOpen)
  • Publishing a plug-in
  • Untitled
    • Created with PluginFramework
  • Created with PluginFramework
Powered by GitBook
On this page
  • Blank page
  • Methods
  • .Init = function()
  • .Open = function()
  • Properties
  • Page.Container
  • .Controller

Page

Page - This is the Container that opens within the plugin. There can be components inside the Container. The page itself is just a module with a few functions.

Blank page

The basic version of the page looks like this

local Setting = require(script.Parent.Parent.Setting);
local PluginComponents = require(script.Parent.Parent.libs.PluginComponents.PluginComponents);


local Page = {}


Page.Container = nil;
Page.Controller = nil;



Page.Init = function()

   
end


Page.Open = function()


end

return Page

Methods

.Init = function()

Called when the plug-in starts up. It is only called once.

.Open = function()

Called up every time a page opens

Properties

Page.Container

This is the container of the current page.

Initially equal to nil:

Page.Container = nil;

But after init you can refer to it as a normal container. For example

Page.Container.Frame.Visible = false;

Or

Page.Container.Hide();

.Controller

After initialisation, this will be a reference to the controller. And you will be able to use its features.

But usually only the jump function between pages is used:

Page.Controller.PageOpen("Example2" );

PreviousQuick StartNextNavigation (PageOpen)

Last updated 3 years ago

LogoContainerPluginComponent