rokudev / SceneGraphDeveloperExtensions

Other
115 stars 66 forks source link

TimeGridView Doesn't Contain the interface members detailed in documentation? #54

Open bcorvino opened 3 years ago

bcorvino commented 3 years ago

Hi,

I'm working with the TimeGridView sample and setting:

on the TimeGridView all seem to have no effect. Further, I can't find any references to those strings anywhere in the codebase. Is the extension in the repository out-of-date with the documentation, or am I doing something wrong/not looking in the right place?

My code:

grid = CreateObject("roSGNode", "TimeGridView")

    ' put a handler config on the root node of the tree
    content = CreateObject("roSGNode", "ContentNode")
    content.AddFields({
        HandlerConfigTimeGrid: {
            name: "CHRoot"
        }
    })

    ' set content to the view
    grid.update({
      autoDismissTime: 5,
      programTitleFocusedColor: "0xFF0000"
      duration: 2000,
      ignoreTrickPlayKeys: true
    }, true)

Thank you!

RokuChris commented 3 years ago

None of these fields is currently supported by TimeGridView itself. See the documentation here: https://github.com/rokudev/SceneGraphDeveloperExtensions/blob/master/documentation/1-components.md#timegridview

To make use of those features you could build a custom view and populate it with the SGDEX ContentManager. That is discussed here: https://github.com/rokudev/SceneGraphDeveloperExtensions/blob/master/documentation/6-ContentManager_with_Custom_Views_Guide.md

Or you could skip SGDEX and use the RSG TimeGrid component directly. https://developer.roku.com/docs/references/scenegraph/list-and-grid-nodes/timegrid.md

Manvendra-Jadon commented 3 years ago

@RokuChris Can you please look into https://github.com/rokudev/SceneGraphDeveloperExtensions/issues/59