Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 21 Next »

So you’re writing an interface and you make some useful routines and then you realize that you’d like to use this library in other components.

How do you do this?

You can create libraries which are then re-usable from any other Iguana X component.

 Step 1: Start with a component which you have edit rights for and has a remote setup already.

If you need a reminder see Customizing components

 Step 2: Create a directory FOO

Click on the new folder icon and name the folder FOO.

 Step 3: Create a file FOObar.lua in the FOO directory and add a function FOObar

Start here:

In the context menu that comes up select Create File and create a FOObar.lua file with this content:

function FOObar()
   return "The world needs more FOO";
end

 Step 4: Invoke Create Library from the FOO folder ellipsis menu:

Click CREATE

 Step 5: Fill out the repository management screen to determine what remote git repository to put the library code in:

See Repository Management Screen if you need a refresher about this.

 Step 6: Commit and push the FOO library changes
 Step 7: After this the code will be in the remote git repository you configured it to be in

You should able to go to the repository management screen and from there navigate to the remote repository to see your changes.

  • No labels