Question:
Is it possible to get the value from a function in the functions section of the application panel without using parentheses?
Product:
Wix Blocks
What are you trying to achieve:
I have Function code in Wix Blocks as follows:
/** (I had to put a space. The forum was giving an error.)
- @ function
- @ description Function description
- @ returns {array} Return value description
- See Wix Blocks: Widget API Functions | Help Center | Wix.com for more information on widget API functions
*/
export function messageContent() {
return $w(‘#GeminiRepeater’).data;
}
Here I tried to create a function that stores data in a repeater.
I installed the application on my website and wrote the following code (User Panel):
Console result:
There are two problems here:
1 - We can only retrieve data as long as we use parentheses.
2 - Nothing I type in the application panel appears here. And he says ‘any’ to everything:
What have you already tried:
I’ve done almost all the things that can be tried with ‘@returns {}’. However, I still could not achieve the result I wanted. Also, it’s too bad that the function description I wrote in the application panel is not visible and everything is called ‘any’.
Additional information:
The only thing I’m trying to do is: get the data without using parentheses. For example, we write the following code to access data on a repeater:
$w.(‘#repeater’).data;
The user should get exactly like this in the code panel:
$w(‘#APP’).messageContent;
However, unfortunately, it can currently only be retrieved using parentheses.
Please help me on this. If such a thing is not possible, please consider adding this feature. I would also like to know the reason why the function description is not visible in the user panel.
Thank you for your interest. I will be waiting for an answer from someone knowledgeable or authorized on this subject.