jf-roku/components/ItemGrid/FavoriteItemsTask.brs
2022-05-14 11:13:28 +01:00

15 lines
272 B
Plaintext

sub init()
m.top.functionName = "setFavoriteStatus"
end sub
sub setFavoriteStatus()
task = m.top.favTask
if task = "Favorite"
MarkItemFavorite(m.top.itemId)
else if task = "Unfavorite"
UnmarkItemFavorite(m.top.itemId)
end if
end sub