Page 1 of 1

How could I call my function from newCustomItem()

Posted: Sun Nov 15, 2020 10:19 am
by ecloud
Adjustable.Container:newCustomItem()

for example I have a function aaa.bbb()
how could I call it?
I tried newCustomItem("aaa", "aaa.bbb")
it does not work.

Re: How could I call my function from newCustomItem()

Posted: Mon Nov 16, 2020 8:38 am
by Vadi
it would be
myAdjustableContainer:newCustomItem("aaa", aaa.bbb)

or
myAdjustableContainer:newCustomItem("aaa", function() aaa.bbb() end)


assuming aaa.bbb is a function

This is from @Edru