Files
playlet-piped/playlet-lib/src/components/VideoFeed/VideoRowCell/ChannelRowCell.bs
T
Brahim Hadriche f452bf23de Add Channel support (#144)
* Add Channel support

* Cross fade

* add todo
2023-09-15 17:34:07 -04:00

22 lines
700 B
Plaintext

function Init()
m.authorLabel = m.top.FindNode("authorLabel")
m.subCountLabel = m.top.FindNode("subCountLabel")
m.videoCountLabel = m.top.FindNode("videoCountLabel")
m.thumbnail = m.top.FindNode("thumbnail")
m.thumbnail.failedBitmapUri = "pkg:/images/thumbnail-missing.jpg"
end function
function OnContentSet() as void
content = m.top.itemContent
if content = invalid
return
end if
' NOTE: "_author" not "author". See PlaylistContentNode.xml for explanation.
m.authorLabel.text = content._author
m.subCountLabel.text = content.subCountText
m.videoCountLabel.text = content.videoCountText
m.thumbnail.uri = content.thumbnail
end function