Пример #1
0
    //Filter details when gender details selected
    public void FilterItems(Toggle toggle)
    {
        selectedGenderToggle = toggle;
        itemsPanel.FilterItemsBasedOnSelections(toggle);

        //Get active filter details
        //There is no filter applied - show all details
        IEnumerable <Toggle> activeGenderToggle     = genderToggleGroup.ActiveToggles();
        List <Toggle>        activeGenderToggleList = activeGenderToggle.ToList();

        if (activeGenderToggleList.Count <= 0)
        {
            ResetFilter();
        }
    }