Get View Builder Property Within The View?

Hi there,

I am trying to get a view builder variable from within the view.
So for instance, when I have someting like this:

vb:multiline_text {
id = ‘multi’,
text = get_text(),
notifier = save_text(vb.views.multi.text)
}

The problem is that vb.views.multi does not exist, probably, because I call it from within it’s creation?

So, how to get the value correcly?

A notifier is a function, so in order to access values you need to put your statement inside the function call, like this:

vb:multiline_text {  
 id = 'multi',  
 text = get_text(),  
 notifier = function()  
 local txt = vb.views.multi.text  
 -- do something with the txt...  
 end  
}