-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b92bd1
commit bbb533f
Showing
3 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
using Avalonia.Controls; | ||
|
||
using DynamicTreeDataGrid.State; | ||
|
||
namespace DynamicTreeDataGrid; | ||
|
||
public interface IDynamicTreeDataGridSource<TModel> : ITreeDataGridSource<TModel>, IDynamicTreeDataGridSource { | ||
|
||
// TODO: Add filter, state, maybe sort? | ||
IEnumerable<ColumnState> GetColumnStates(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
namespace DynamicTreeDataGrid.State; | ||
|
||
public class ColumnState { | ||
public string Name { get; set; } = ""; | ||
public record ColumnState(string Name) { | ||
public string Name { get; init; } = Name; | ||
public int Index { get; set; } | ||
public bool Visible { get; set; } | ||
public bool Visible { get; set; } = true; | ||
} |