mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-16 01:41:14 +08:00
715149e21f
* feat(module: table): add sorter * feat: add sorter tooltip * feat: add table change event
24 lines
491 B
C#
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();
|
|
}
|
|
}
|