コード例 #1
0
        private void OnSetActive(bool active, BSDropdownItem item)
        {
            if (!_canHandleActive)
            {
                return;
            }
            if (_activeOwner == item && !active)
            {
                if (IsActive == active)
                {
                    return;
                }

                IsActive = false;
            }
            if (active)
            {
                _activeOwner = item;
                if (IsActive == active)
                {
                    return;
                }
                IsActive = true;
            }
            StateHasChanged();
        }
コード例 #2
0
 internal void SetActive(bool active, BSDropdownItem item)
 {
     OnSetActive?.Invoke(active, item);
 }