Example #1
0
 public static TableConnectionsAndComponents <TView, TData> PresentInScrollWithLayout <TView, TData>(
     TableConnectionsAndComponents <TView, TData> connectionsAndComponents,
     ReactiveScrollRect scroll)
     where TView : ReusableView
 {
     AdjustScrollRectContentAnchors(scroll.scroll, scroll.scroll.horizontal);
     connectionsAndComponents.viewPort = new ScrollRectViewPort(scroll, connectionsAndComponents.layout,
                                                                connectionsAndComponents.connectionSink);
     return(ControlItemVisibilityAndRecycle(connectionsAndComponents));
 }
Example #2
0
        public static TableConnectionsAndComponents <TView, TData> PresentInScrollWithLayout <TData, TView>(
            this IReactiveCollection <TData> data,
            ReactiveScrollRect scroll,
            PrefabRef <TView> prefab   = default,
            Action <TData, TView> show = null,
            Func <TData, PrefabRef <TView> > prefabSelector = null,
            IScrollViewLayout layout         = null, // Linear layout is default
            TableDelegates <TView> delegates = null,
            PresentOptions options           = PresentOptions.UseChildWithSameTypeAsView
            ) where TView : ReusableView
        {
            var components = CreateBasicTableComponents(
                data,
                scroll.scroll.content,
                show,
                prefab: prefab,
                prefabSelector: prefabSelector,
                layout: layout,
                delegates: delegates,
                options: options | PresentOptions.NeedLayout);

            return(PresentInScrollWithLayout(components, scroll));
        }
Example #3
0
 public ScrollRectViewPort(ReactiveScrollRect rect, IScrollViewLayout layout, Action <IDisposable> connectionSink)
 {
     this.rect = rect;
     connectionSink(BindToLayout(layout));
 }
Example #4
0
 public ScrollRectViewPort(ReactiveScrollRect rect)
 {
     this.rect = rect;
 }