实例介绍
cloudscribe.Web.Pagination是一个专为ASP.NET Core MVC项目设计的分页TagHelper工具。原本作为更大项目cloudscribe.Core.Web的一部分被实现,后因其不依赖于其他cloudscribe组件且对任何需要分页的ASP.NET Core MVC项目都有用而被移到了单独的仓库。该项目在很大程度上受到了MvcPaging项目的启发,包括一些想法、逻辑、测试和演示内容。除了PagerTagHelper外,该项目还提供了AlphaPagerTagHelper用于字母分页,可以与数字分页器结合使用以过滤分页内容。
本项目还包含了详细的安装和使用文档,以及多个演示页面,展示了各种配置下分页器的使用,包括ajax和在bootstrap模态框内的ajax。
【实例截图】
【核心代码】
文件清单
└── cloudscribe.Web.Pagination-927c284c90500626e2228409c310897ddbc6ac9b
├── appveyor.yml
├── cloudscribe-icon-32.png
├── cloudscribe.Web.Pagination.sln
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── src
│ ├── cloudscribe.Pagination.Models
│ │ ├── cloudscribe.Pagination.Models.csproj
│ │ ├── icon.png
│ │ └── PagedResult.cs
│ ├── cloudscribe.Web.Pagination
│ │ ├── AlphabeticPagination.cs
│ │ ├── AlphaPagerTagHelper.cs
│ │ ├── cloudscribe.Web.Pagination.csproj
│ │ ├── Extensions.cs
│ │ ├── IBuildPaginationLinks.cs
│ │ ├── icon.png
│ │ ├── PagerTagHelper.cs
│ │ ├── PaginationLinkBuilder.cs
│ │ ├── PaginationLink.cs
│ │ ├── PaginationSettings.cs
│ │ └── ServiceCollectionExtensions.cs
│ ├── PagingDemo.Web
│ │ ├── appsettings.json
│ │ ├── bundleconfig.json
│ │ ├── Controllers
│ │ │ ├── Extensions.cs
│ │ │ ├── HomeController.cs
│ │ │ └── PagingController.cs
│ │ ├── Models
│ │ │ └── Product.cs
│ │ ├── PagingDemo.Web.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── Startup.cs
│ │ ├── TagHelpers
│ │ │ └── BootstrapModalAnchorTagHelper.cs
│ │ ├── ViewModels
│ │ │ ├── ProductListViewModel.cs
│ │ │ └── ViewByCategoriesViewModel.cs
│ │ ├── Views
│ │ │ ├── Home
│ │ │ │ ├── About.cshtml
│ │ │ │ ├── Contact.cshtml
│ │ │ │ └── Index.cshtml
│ │ │ ├── Paging
│ │ │ │ ├── BlogPagingDemo.cshtml
│ │ │ │ ├── IndexAjax.cshtml
│ │ │ │ ├── Index.cshtml
│ │ │ │ ├── _PagingModal.cshtml
│ │ │ │ ├── _ProductGrid.cshtml
│ │ │ │ ├── ProductList.cshtml
│ │ │ │ ├── ProductsByCategories.cshtml
│ │ │ │ └── ProductsByCategory.cshtml
│ │ │ ├── Shared
│ │ │ │ ├── Error.cshtml
│ │ │ │ ├── _Layout.cshtml
│ │ │ │ └── _ValidationScriptsPartial.cshtml
│ │ │ ├── _ViewImports.cshtml
│ │ │ └── _ViewStart.cshtml
│ │ ├── web.config
│ │ └── wwwroot
│ │ ├── css
│ │ │ ├── bootstrap.css
│ │ │ ├── bootstrap.min.css
│ │ │ ├── bootstrap-theme.css
│ │ │ ├── bootstrap-theme.min.css
│ │ │ └── site.css
│ │ ├── favicon.ico
│ │ ├── fonts
│ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ ├── glyphicons-halflings-regular.svg
│ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ └── glyphicons-halflings-regular.woff
│ │ ├── images
│ │ │ ├── banner1.svg
│ │ │ ├── banner2.svg
│ │ │ ├── banner3.svg
│ │ │ └── banner4.svg
│ │ ├── js
│ │ │ ├── additional-methods.js
│ │ │ ├── additional-methods.min.js
│ │ │ ├── bootstrap.js
│ │ │ ├── bootstrap.min.js
│ │ │ ├── jquery.js
│ │ │ ├── jquery.min.js
│ │ │ ├── jquery.min.map
│ │ │ ├── jquery.unobtrusive-ajax.js
│ │ │ ├── jquery.unobtrusive-ajax.min.js
│ │ │ ├── jquery.validate.js
│ │ │ ├── jquery.validate.min.js
│ │ │ ├── jquery.validate.unobtrusive.js
│ │ │ ├── jquery.validate.unobtrusive.min.js
│ │ │ └── site.js
│ │ ├── jsdev
│ │ │ └── cloudscribe-modaldialog-bootstrap.js
│ │ └── _references.js
│ └── PagingDemo.WebPages
│ ├── appsettings.Development.json
│ ├── appsettings.json
│ ├── Models
│ │ └── SampleData.cs
│ ├── Pages
│ │ ├── Error.cshtml
│ │ ├── Error.cshtml.cs
│ │ ├── FakePage.cshtml
│ │ ├── FakePage.cshtml.cs
│ │ ├── Index.cshtml
│ │ ├── Index.cshtml.cs
│ │ ├── Privacy.cshtml
│ │ ├── Privacy.cshtml.cs
│ │ ├── Shared
│ │ │ ├── _CookieConsentPartial.cshtml
│ │ │ ├── _Layout.cshtml
│ │ │ └── _ValidationScriptsPartial.cshtml
│ │ ├── _ViewImports.cshtml
│ │ └── _ViewStart.cshtml
│ ├── PagingDemo.WebPages.csproj
│ ├── Program.cs
│ ├── Properties
│ │ └── launchSettings.json
│ ├── Startup.cs
│ └── wwwroot
│ ├── css
│ │ └── site.css
│ ├── favicon.ico
│ ├── js
│ │ └── site.js
│ └── lib
│ ├── bootstrap
│ │ ├── dist
│ │ │ ├── css
│ │ │ │ ├── bootstrap.css
│ │ │ │ ├── bootstrap.css.map
│ │ │ │ ├── bootstrap-grid.css
│ │ │ │ ├── bootstrap-grid.css.map
│ │ │ │ ├── bootstrap-grid.min.css
│ │ │ │ ├── bootstrap-grid.min.css.map
│ │ │ │ ├── bootstrap.min.css
│ │ │ │ ├── bootstrap.min.css.map
│ │ │ │ ├── bootstrap-reboot.css
│ │ │ │ ├── bootstrap-reboot.css.map
│ │ │ │ ├── bootstrap-reboot.min.css
│ │ │ │ └── bootstrap-reboot.min.css.map
│ │ │ └── js
│ │ │ ├── bootstrap.bundle.js
│ │ │ ├── bootstrap.bundle.js.map
│ │ │ ├── bootstrap.bundle.min.js
│ │ │ ├── bootstrap.bundle.min.js.map
│ │ │ ├── bootstrap.js
│ │ │ ├── bootstrap.js.map
│ │ │ ├── bootstrap.min.js
│ │ │ └── bootstrap.min.js.map
│ │ └── LICENSE
│ ├── jquery
│ │ ├── dist
│ │ │ ├── jquery.js
│ │ │ ├── jquery.min.js
│ │ │ └── jquery.min.map
│ │ └── LICENSE.txt
│ ├── jquery-validation
│ │ ├── dist
│ │ │ ├── additional-methods.js
│ │ │ ├── additional-methods.min.js
│ │ │ ├── jquery.validate.js
│ │ │ └── jquery.validate.min.js
│ │ └── LICENSE.md
│ └── jquery-validation-unobtrusive
│ ├── jquery.validate.unobtrusive.js
│ ├── jquery.validate.unobtrusive.min.js
│ └── LICENSE.txt
└── test
└── cloudscribe.Web.Pagination.Test
├── cloudscribe.Web.Pagination.Test.csproj
└── PaginationTests.cs
40 directories, 138 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论