panzhuli
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2018
01:54 PM
Turning off infinite looping in Markup Grid
Hi there -
I'm looking at the markup grid documentation and can't find any settings to disable the infinite looping. I want the user to be able to reach the end of my grid and not restart. Thoughts?
Thanks!
I'm looking at the markup grid documentation and can't find any settings to disable the infinite looping. I want the user to be able to reach the end of my grid and not restart. Thoughts?
Thanks!
3 REPLIES 3
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018
06:21 PM
Re: Turning off infinite looping in Markup Grid
Update: Pixshatter got it!
You could extend it, add a keyhandler (onKeyEvent) that eats (return true) any presses that would take it beyond the boundary... Might need to add the onKeyEvent in a child component of the extended MarkupGrid so it gets the presses first. I think it'd be possible without going full custom component though, which is also an option if you're feeling wicked ambitious.
You could extend it, add a keyhandler (onKeyEvent) that eats (return true) any presses that would take it beyond the boundary... Might need to add the onKeyEvent in a child component of the extended MarkupGrid so it gets the presses first. I think it'd be possible without going full custom component though, which is also an option if you're feeling wicked ambitious.
aspiring
pixshatterer
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2018
01:59 PM
Re: Turning off infinite looping in Markup Grid
you need to set the attribute vertFocusAnimationStyle = "fixedFocus" (this is inherited from ArrayGrid)
csangkravat
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2018
04:18 AM
Re: Turning off infinite looping in Markup Grid
Check with this link https://sdkdocs.roku.com/display/sdkdoc/ArrayGrid
or
Try this
( fixedfocus, fixedFocusWrap, floatingFocus) at vertFocusAnimationStyle
or
Try this
<MarkupGrid
id = "yourID"
translation = "[ 130, 160 ]"
numColumns = "2"
vertFocusAnimationStyle = "fixedFocus"
numRows = "5"
itemSize = "[ 532, 308 ]"
itemSpacing = "[ 20, 20 ]"
drawFocusFeedback = "false" />
( fixedfocus, fixedFocusWrap, floatingFocus) at vertFocusAnimationStyle