public override void UpdateFilters(PageFilters filters) { if (this.filters.Equals(filters)) return; m_Filters = filters.Clone(); Rebuild(); }
protected virtual void Init(Rect rect, PageFilters filters) { m_Filters = filters?.Clone() ?? new PageFilters(); m_Container.Clear(); DoDisplay(); ApplyFilters(); ShowAsDropDown(rect, GetSize(), new[] { PopupLocation.Below }); }
public void ClearFilters() { var filters = m_Filters?.Clone() ?? new PageFilters(); filters.statuses = new List <string>(); filters.categories = new List <string>(); filters.labels = new List <string>(); UpdateFilters(filters); }
public override void UpdateFilters(PageFilters filters) { if (this.filters.Equals(filters)) { return; } m_Filters = filters.Clone(); var queryArgs = BuildQueryFromFilter(0, m_PackageManagerPrefs.numItemsPerPage ?? PageManager.k_DefaultPageSize); m_AssetStoreClient.ListPurchases(queryArgs, false); m_VisualStateList.ClearList(); m_VisualStateList.ClearExtraItems(); RefreshVisualStates(); TriggerOnListRebuild(); }
public override void UpdateFilters(PageFilters filters) { if (this.filters.Equals(filters)) { return; } m_Filters = filters.Clone(); var queryArgs = BuildQueryFromFilter(0, PackageManagerWindow.instance?.packageList?.CalculateNumberOfPackagesToDisplay() ?? PageManager.k_DefaultPageSize); AssetStoreClient.instance.ListPurchases(queryArgs, false); m_VisualStateList.ClearList(); m_VisualStateList.ClearExtraItems(); RefreshVisualStates(); TriggerOnListRebuild(); }