UTKPropertyTabListWindow 개발 중. UTKTabView Tab 버튼에 아이콘 설정 할 수 있게 기능 추가해야 함

This commit is contained in:
logonkhi
2026-02-20 19:56:23 +09:00
parent b64c3e10bc
commit 9d02afd8e8
13 changed files with 1290 additions and 33 deletions

View File

@@ -72,6 +72,18 @@ namespace UVC.UIToolkit
public event Action<string, string>? OnPropertyButtonClicked;
#endregion
#region Properties
/// <summary>
/// 현재 검색어를 가져오거나 설정합니다.
/// 설정 시 검색 필드의 값만 변경하고 검색은 실행하지 않습니다.
/// </summary>
public string SearchQuery
{
get => _searchField?.value ?? string.Empty;
set { if (_searchField != null) _searchField.value = value; }
}
#endregion
#region Constructor
public UTKPropertyList()
{
@@ -985,6 +997,28 @@ namespace UVC.UIToolkit
}
}
/// <summary>
/// 현재 검색 필드의 값으로 검색을 실행합니다.
/// </summary>
public void ApplySearch()
{
OnSearch(_searchField?.value ?? string.Empty);
}
/// <summary>
/// 지정된 검색어로 검색을 실행합니다.
/// 검색 필드의 값도 함께 업데이트됩니다.
/// </summary>
/// <param name="query">검색어</param>
public void ApplySearch(string query)
{
if (_searchField != null)
{
_searchField.value = query;
}
OnSearch(query);
}
private void OnSearch(string newValue)
{
_searchText = newValue ?? string.Empty;