Hi my name is Gabriel,
First of all this is my first question on this forum so please forgive me if I'm asking a stupid thing.
I have a reel that shows theatres and movies / plays. One part of my app is changing the theatre title every time a theatre gets selected in a list. This was super easy to do with montage/ui/repetition using the isSelectionEnabled property but when I switched to digit/ui/list the selection stopped working.
Any advice on how to solve this?
Thanks in advance!
Here is part of my code:
<script type="text/montage-serialization">
{
"owner": {
"properties": {
"element": { "#": "owner" }
}
},
"theatres" : {
"prototype": "montage/ui/repetition.reel", //This doesn't work if I put digit/ui/list.reel
"properties" : {
"element" : { "#" : "theatre-list" },
"isSelectionEnabled" : true
}
},
"theatre": {
"prototype": "digit/ui/text.reel",
"properties": {
"element": { "#" : "theatre" }
},
"bindings": {
"value": { "<-": "@
theatres.objectAtCurrentIteration.name" }
}
},
"theatreItem" : {
"prototype": "digit/ui/list-item.reel",
"properties": {
"element": { "#" : "theatre-item" }
}
},
"theatreTitle" : {
"prototype" : "digit/ui/title.reel",
"properties" : {
"element" : { "#" : "theatre-title" }
},
"bindings" : {
"value" : { "<-" : "@
theatres.selection.0.name ?? 'Select a Theatre'" }
}
}
}