Acceder al valor $item desde una variable Javacripts Expresion

1
0
-1

¿Como puedo acceder al valor $item de una coleccion desde una variable Javacripts Expresion ?

Muchas gracias :)

1 answer

1
0
-1

Hola Carlos, lo siento por l'ingles:

You can achieve this using a fragment, available in Subscription version

Procedure:

  • Create your main container (A) and bind your collection property to a data collection (as you probably already did)
  • Inside the container create a new one (B) where you can put your widgets
  • Transform B in a fragment
  • in the fragment create an exposed variable and map its attributes to the widgets
  • In the B container map the fragment variable to the $item one

Hope it helps,

cheers

Notifications