2017-06-02, 19:04
It's 2017 now and im checking the updated code in github. I noticed that for this example, setArt is called once the ListItem is created. What if I don't have those information / data yet (image url)? when do i call setArt() ?
while checking for docs, I can see some snippets like: self.list.getSelectedItem().setArt({ 'poster': 'poster.png', 'banner' : 'banner.png' }) but they its always 1-liner and i don't know what class this refers to? At first i was thinking to do a while look at the end of the script and keep checking what is the current selected item, but for obvious reasons, its just wrong.
Thanks in advance. Great sample!
while checking for docs, I can see some snippets like: self.list.getSelectedItem().setArt({ 'poster': 'poster.png', 'banner' : 'banner.png' }) but they its always 1-liner and i don't know what class this refers to? At first i was thinking to do a while look at the end of the script and keep checking what is the current selected item, but for obvious reasons, its just wrong.
Thanks in advance. Great sample!