ant-design-blazor/components/table/TableModels/ITableSortModel.cs
James Yeung 715149e21f feat(module: table): sortable (#319)
* feat(module: table): add sorter

* feat: add sorter tooltip

* feat: add table change event
2020-07-08 16:12:49 +08:00

24 lines
491 B
C#

using System.Linq;
namespace AntDesign.TableModels
{
public interface ITableSortModel
{
public SortType SortType { get; }
public int Priority { get; }
public string FieldName { get; }
IOrderedQueryable<TItem> Sort<TItem>(IQueryable<TItem> source);
internal void SetSortType(SortType sortType);
internal void SetSortType(string sortType);
internal void SwitchSortType();
internal SortType NextType();
}
}