Hi,
I'm making an expandable widget that has a long list of items, and I would like to add a scrollbar to the expanded view. Does anyone have an idea if this is possible and what code i need to add to the expand function?
Kr,Mathijs
The vertical scrollbar turns up when needed, if the element - the root element of an CollectionView in case of an item list - has the style "overflow: auto".
If you want to show the "sausage scrollbar" used in Smart UI, have a look at "csui/controls/tile/behaviors/perfect.scrolling.behavior", please.
I am afraid, that there is no complete example for a widget showing an expandable node list in CS UI SDK. You could have a look at sources of FavoritesView at "lib/src/csui/widgets/favorites/favorites.view.js". It uses a table for expanding the node list, which uses pagination; not infinite scrolling.
Hi, I've managed to create a custom "expand" WebReport widget by creating a webreport that combines parts of the SDK functions, smart UI html elements and custom scripts. In the small view we have a webReport with an expand button, and when that is clicked the expanded view is opened and a 2nd webReport is loaded via AJAX while a loader spins, with a scrollbar that appears when the content of the 2nd webReport exceeds the height of the expanded view.Thanks!