예제 #1
0
        protected void UpdateWithData(TData data)
        {
            RemoveIfPresent(isEmptyLabel);
            container.Add(innerElement);

            applyData(innerElement, data);
            concealer.SetVisibility(false);
        }
예제 #2
0
        public void Update(List <TData> newData)
        {
            data = newData;

            if (data.Count == 0)
            {
                controlsContainer.AddToClassList("hidden");
                concealer.SetVisibility(true);
            }
            else
            {
                controlsContainer.RemoveFromClassList("hidden");
                concealer.SetVisibility(false);
            }

            CalculatePages();
            RefreshView();
        }