Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
raxitpandya
Channel Surfer

In TimeGrid View, i want to hide the clock.

Scenario :

  1. When timegrid load first time, clock is not getting displayed.
  2. But when i navigate to other view like search view and grid view.
  3. And when i come back to timegrid view, clock is getting displayed on top right of the timegrid view.
    Like below image
     

    image_2024_09_18T14_34_56_547Z.png

I thought it is overhang tag so i tried below way to hide this.

overhang = m.top.findNode("Overhang")
       overhangChildren = overhang.getChildren(-1, 0)
       for each child in overhangChildren
           ?"Overhang Child", child
           if child.subtype() = "Clock" then
               child.showClock = false
               'm.overhang.removeChild(child)
           end if
       next
 

but no luck. Can anyone suggest any way to hide this clock in timegrid view.

0 Kudos
3 REPLIES 3
RokuKC
Roku Employee
Roku Employee

Re: In TimeGrid View, i want to hide the clock.

The image clip you provided doesn't show enough context for me to understand what you're seeing personally. 

Perhaps you could include a full screen capture, in lower resolution if necessary, to give a more complete idea?

From looking at

https://developer.roku.com/docs/references/scenegraph/list-and-grid-nodes/timegrid.md

while I don't know if that exactly reflects current Roku OS UI, I would expect that showing column time labels is completely expected. 

That is different from a 'clock' however that would show the current time minute by minute as in the Scene overhang.

0 Kudos
raxitpandya
Channel Surfer

Re: In TimeGrid View, i want to hide the clock.

timeGridClock.jpg

Please refer above image.

First time when i am in time grid, clock is not visible. But when i navigate to grid view and come back to timegrid view it's automatically shows up. I have tried various ways. Those are as below.

1. I have commented out the <overhang> tag in TimeGridView.xml file.

2. I have make the attribute visible=false and showClock= false in <overhang> tag in TimeGridView.xml file.

3. I have also tried below code

```
overhangChildren
= m.overhang.getChildren(-1, 0)
for each child in overhangChildren
?"Overhang Child", child
if child.subtype() = "Clock" then
m.overhang.removeChild(child)
end if
next
 

```
4. Also set showClock= false in gridView.

Still not able to hide the clock in TimeGrid View so i have asked this question here.

Thank you.

chaklasiyanikun
Roku Guru

Re: In TimeGrid View, i want to hide the clock.

@RokuKC I was facing a similar issue earlier, but I have not found any proper solution for this clock. It's coming randomly at the top right corner of any SGDEX View. Maybe the Roku Team better explained why this clock displays with SGDEX View. There is a Default clock over there. I printed all overhang tag displays in view but have not found this clock in any node.

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.