Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IPageableModel.cs

//Contributor : MVCContrib

namespace Nop.Web.Framework.UI.Paging;

/// 
/// A collection of objects that has been split into pages.
/// 
public partial interface IPageableModel
{
    /// 
    /// The current page index (starts from 0)
    /// 
    int PageIndex { get; }
    /// 
    /// The current page number (starts from 1)
    /// 
    int PageNumber { get; }
    /// 
    /// The number of items in each page.
    /// 
    int PageSize { get; }
    /// 
    /// The total number of items.
    /// 
    int TotalItems { get; }
    /// 
    /// The total number of pages.
    /// 
    int TotalPages { get; }
    /// 
    /// The index of the first item in the page.
    /// 
    int FirstItem { get; }
    /// 
    /// The index of the last item in the page.
    /// 
    int LastItem { get; }
    /// 
    /// Whether there are pages before the current page.
    /// 
    bool HasPreviousPage { get; }
    /// 
    /// Whether there are pages after the current page.
    /// 
    bool HasNextPage { get; }
}


/// 
/// Generic form of 
/// 
/// Type of object being paged
public partial interface IPagination : IPageableModel
{

}