irin
April 11, 2019, 1:47pm
#1
Hello.
Does anyone know is it possible to display scrollbar for go.Panel?
Example,
$(
go.Panel,
'Vertical',
{
name: 'PanelWrapper',
maxSize: new go.Size(200, 300)
},
$(
go.Panel,
{
name: 'InnerPanel',
height: 500 // just an example height
}
)
);
So, this panel has an inner panel and inner panel is higher than wrapper.
Is there any possibility to make “PanelWrapper” scrollable?
Thanks in advance.
walter
April 11, 2019, 1:58pm
#2
There is no general way to do that.
What is it that you want to scroll?
irin
April 11, 2019, 2:02pm
#3
Hi Walter.
“InnerPanel” has a number of go.TextBlock + go.Picture elements (like list of items in menu). And “PanelWrapper” is like a contextual menu for an element.
So, “InnerPanel” can contain, for example, 100 items or 1000. That’s why it’s needed to be scrolled.
walter
April 11, 2019, 2:06pm
#4
Well, if you use a “Table” Panel, instead of a “Vertical” Panel with whatever, you could use:
https://gojs.net/latest/extensions/ScrollingTable.js
1 Like
irin
April 11, 2019, 2:10pm
#5
Thanks for these links, Walter. I’ll check this out.