ant-design-blazor/components/table/TableModels/ITableSortModel.cs
cqgis 080d4dda43 feat(module: table): add sort directions and default sort order (#778)
* feat: table  column sort add sortway support singleness or mutiple

* fix: error method name

* add sort directions

* delete useless property

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2021-01-24 13:52:57 +08:00

20 lines
435 B
C#

using System.Linq;
namespace AntDesign.TableModels
{
public interface ITableSortModel
{
public string Sort { get; }
public int Priority { get; }
public string FieldName { get; }
internal SortDirection SortDirection { get; }
internal void SetSortDirection(SortDirection sortDirection);
internal IOrderedQueryable<TItem> SortList<TItem>(IQueryable<TItem> source);
}
}