-
6 votes2 answers1923 views
角度材料中的分页指令
在角度材质中是否有与md-list一起使用的分页指令? 这些确实有效,但不是基于材料设计的 . https://github.com/brantwills/Angular-Paging https://github.com/michaelbromley/angularUtils/tree/master/src/directives/pagination -
3 votes1 answers1712 views
ng2-bootstrap分页和引导程序表集成错误
我正在尝试集成ng2-bootstrap pagination component和bootstrap表 . 我有一个简单的bootstrap表加载ngFor指令: <tr> <th *ngFor="#col of cols">{{col.header}} </tr> </thead> <tbody> ... -
0 votes0 answers1767 views
数据表切换/切换过滤器按钮使分页消失
我有一个带有切换/切换按钮的表,该按钮仅在打开时显示有错误的列,并在未单击时显示原始未过滤的表 . 问题是,只要按下开关,表格的分页就会消失 . 没有任何单击开关按钮将返回 . 这是我的switch函数,我的表数据是通过datatabase / Ajax加载的 . 任何人都知道为什么这会导致分页消失? checkbox.click(function () { if (checkbox.is... -
1 votes3 answers1731 views
带数据源的角度材质表:分页和过滤器不起作用
我有以下带有数据源属性的角度材质表: <div class="dim"> <mat-form-field > <input matInput class="warn" (keyup)="applyFilter($event.target.value)" placeholder="Sear... -
0 votes1 answers1211 views
新闻Feed上的Firebase Swift分页
我正在创建一个Instagram风格的Feed,并试图找出如何根据您关注的人对帖子进行分页 . 我的数据结构如下: posts: user1: post1 post2 user2: post3 post4 user3: post5 ... -
8 votes4 answers51 views
React-Native Horizontal Scroll View Pagination:预览下一页/卡片
我想要一个水平的ScrollView,启用了一个特殊要求的分页:每个页面(或卡)是容器宽度的90% . 剩下的10%应该是下一页的预览 . 可以使用ScrollView执行此操作吗?我能以某种方式指定分页的宽度而不是取容器的宽度吗? (图片来自这个类似的问题:React Native Card Carousel view?) -
7 votes3 answers1796 views
角质材料Paginator无法正常工作
我想在我的应用程序上添加Angular Material Paginator . MatPaginatorModule 已添加到模块中 . <mat-paginator #paginator [length]="100" [pageSize]="10" [p... -
15 votes6 answers1218 views
如何自动将查询字符串附加到laravel分页链接?
我正在使用Laravel和Ajax调用复选框点击搜索过滤器 . 当我点击一个复选框时,我得到了结果 . 我的查询如下: $editors = User::with(['editor.credentials','editor.specialties','editor.ratings']); $temp=$editors->whereHas('editor', function(... -
0 votes2 answers1417 views
分页并加入Laravel
我尝试使用Eloquent ORM在JOIN之后对某些结果进行分页时,我有一种奇怪的行为(由于我的错误) . 这是导致Laravel返回空白的代码(未显示错误)500错误页面: return Entry::join('articles', 'entries.id', '=', 'articles.entryID') ->orderBy('articles.created_at... -
0 votes1 answers244 views
在Laravel中附加分页链接URL
我该如何追加: #products 在Laravels分页链接方法使用的分页URL的末尾,所以我可以在地址栏中获得以下内容?: products?page=3#products 这样我的移动用户和具有低分辨率桌面的人不必在每次使用分页链接导航时向下滚动页面 . 这是我在配置/视图中的内容: /* |-------------------------------------------... -
0 votes1 answers944 views
paginator-> links()结果方法Illuminate \ View \ View :: __ toString()不能抛出异常
我用Laravel 4.2,bootstrap和MySQL制作了一个proyect . 现在我有以下问题 . 我检索数据库记录,然后我使用分页显示它们 . 我以相同的方式为多个页面执行此操作,因此我创建了一个不重复自己的刀片模板 . 当我使用 Paginator 的 links 方法时出现问题 . 使用null参数时,该方法不会抛出任何异常,但它无法正常工作,因为无论您身在何处,链接始终都会将您重... -
0 votes1 answers343 views
未定义的函数在自定义Laravel 5 paginator中附加()
我以表格格式向后端用户显示数据 . 我正在使用Laravel 5并且可以轻松处理分页 . 当涉及到放置页面链接的位置时,有一个小要求:我想要正确地浮动它们 . 考虑到Laravel使用Bootstrap 3来渲染布局,我知道我可以简单地将“pull-right”类添加到元素中 . 所以我构建了一个自定义分页演示者,如下所示: namespace App\Http\Presenters; use ... -
0 votes1 answers314 views
Laravel 4分页按钮不起作用(查询整个DB)
我首先要说的是我已经查阅了关于分页的Laravel 4文档,并尝试了许多方法来实现这一点 . 我和Laravel 4的Pagination课一起使用Eloquent . Problem: 在我的结果页面中,我'm trying to paginate my results for what we' ll调用"trucks" DB . 它工作正常,我得到了我想要的最初(限制为五个... -
2 votes1 answers757 views
Laravel:Paginate json回应
我从谷歌字体中获取json数据并将其显示在我的网站上 . 我试图使用laravel paginator对这些数据进行分页,因为当我将它作为一个整体显示它会对性能造成影响,但我还没有找到如何做到这一点 . 这是我的控制器 public function googleFonts() { $url = "https://www.googleapis.com/webfonts/v1/w... -
1 votes1 answers675 views
Laravel 4,Paginate的行为
我正在尝试使用Laravel 4对博客进行分页,我已成功使用 Post::all(); 然后将其作为数组传递回控制器 . 我的问题是,在我的控制器中,我调用一个模型函数,它通过数组并将自定义标签解析为html标签,如下所示: public static function parseContent($content) { $find = array('~\[image=&qu... -
0 votes1 answers1879 views
Laravel分页在页面上显示结果
所以我刚开始使用Laravel Pagination和我'm trying to show results of my database on the pages. In my table, I have the results linked to page_id',它们与主要ID相关联 . 因此,为了获得我需要的页面数量,我会检查与主ID链接的页面数量 . 像这样: $query = DB::t... -
0 votes2 answers1981 views
CakePHP bootstrap分页中的省略号显示在框外
CakePHP3分页助手无法正确呈现列表 . 我需要显示寻呼机: |首先| 1 | 2 | ... | 12 | 13 |最后| 在第三页: |首先| 1 | 2 | 3 | ... | 12 | 13 |最后| 在第七页: |首先| 1 | 2 | ... | 6 | 7 | 8 | ... | 12 | 13 |最后| 默认情况下,我得到了正确的bootstrap分页,如: |首... -
1 votes1 answers148 views
与Laravel分页一起使用的表搜索
我在Laravel中创建了一个分页表,然后添加了搜索功能,但是当我尝试搜索它时,它只搜索当前页面 . 我如何解决这个问题,以便我可以搜索表格所有页面上的信息?我是Laravel的新手:) 表格代码 - <input type="text" id="search" placeholder="Type to search"> &l... -
5 votes3 answers752 views
distinct()with pagination()在laravel 5.2中不起作用
我试图在laravel 5.2中使用带有 pagination() 的 pagination() ,并且给出了适当的结果,但是分页保持相同(就像没有应用的那样) . I have already reviewed and tested below answers with mine code laravel 5 - paginate total() of a query with distinc... -
0 votes1 answers1754 views
Laravel错误中的自定义Bootstrap分页
我按照网站上的文档https://medium.com/appstract/custom-bootstrap-pagination-in-laravel-540922f71af0 但我有两个问题:这是我的代码 Route::get(‘rows’, ‘[email protected]’); 第一: public function rows(Request $request) { $searc... -
0 votes1 answers760 views
是否有像这样的Laravel分页?
我在Laravel框架分页中有一个非常具体的案例 . 想象一下,我通过传递偏移量和限制参数从Redis API获取结果 . 换句话说,分页内容是在API端完成的 . 现在,当我在Laravel应用程序中获得结果时,我想以分页方式显示它们 . 我的意思是一个简单的分页视图,提供导航到其他页面 . 例如,第二页表示我必须向Redis API发送请求才能获取第二组数据 . 基于我对Laravel pag... -
2 votes2 answers1159 views
仅显示condeigniter分页中的下一个和上一个链接
我在我的项目中使用codeigniter分页类它's works fine for me . But there is no option to tell class just show next and previous link , please see this image I want to show result paged plus I' d喜欢使用链接下一个和上一个而不是数字链接当用... -
3 votes7 answers989 views
真正的分页与下一个和上一个按钮
通过真正的分页,我在第3页中的意思是这样的: <<Previous 1 | 2 | {3} | 4 | 5 |...| 15 | Next>> 通过Next和Previous按钮,我在第3页中的含义是这样的: <<previous Next>> 性能方面我确定Previous和Next Buttons更好,因为与真正的分页不同,它不需要过度查询数... -
-3 votes1 answers634 views
PHP:仅保留下一个和上一个Paginator链接
我有一个我在其他网站上发现的分页代码 . 我终于使用我的数据库并分页我的数据了 . 但是,我不希望脚本列出页面数量,只想显示“下一页”和“上一页”分页链接 . 我无法理解,但也许你们中的一个人可以: <?php include('sqlconnect.php'); include('getdata.php'); mysql_select_db("barter... -
1 votes2 answers721 views
Laravel - 强制分页链接显示即使只有一个页面
我正在使用laravel pagination,但我希望显示分页链接,无论是否只有一个页面或多个页面 . 目前,只有在有多页结果时才会显示 . 雄辩的电话 $products = Product::where('username', Sentry::getUser()->username)->paginate(25); 然后使用在视图中显示 {!! $products->lin... -
0 votes1 answers1199 views
Jquery分页插件 - 下一个/上一个分页链接,显示下一个/上一个完整的页码组
Jquery分页插件 - 下一个/上一个分页链接,显示下一个/上一个完整的页码组 有没有办法配置下一个/上一个按钮,以便我可以实现以下目的? 例如,分页就像 First Prev 1 2 3 4 5 Next Last 点击“下一步”按钮, First Prev 6 7 8 9 10 Next Last 注意:我使用的是jquery Bootpag插件http://botmonster.com/j... -
0 votes0 answers1452 views
Laravel 4分页链接空页
我有一个返回数百个数据库记录的查询 . 因为我试图使用Laravel 4.2方法对其进行分页 . 链接显示,他们指示我 search-view?page=1 等等,但链接打开空白页没有结果 . 只有第一页包含结果 . 当我试图在没有分页的情况下显示这些结果时,网页永远不会结束,所以我需要对它进行分页 . $results = $this->model->where($searchByC... -
1 votes1 answers1478 views
PHP CodeIgniter分页链接坏了
public function index($page = 0) { $this->load->library('pagination'); $conf = array( 'total_rows' => 11, 'base_url' => 'localhost/admin/product/index', 'pe... -
0 votes1 answers1088 views
Laravel - 分页链接没有出现
由于某种原因{{$ items-> links()}}没有做任何事情 . 这个问题的直接原因是$ items-> getLastPage()返回0.相同的$ items-> getTotal() . 我可以更改网址中的页面参数,它工作正常 - 它转到正确的页面 . 但是$ items-> getCurrentPage()在每个页面上返回1 . 对于我来说,分页对我来说非常适... -
5 votes1 answers1807 views
Laravel 5 Paginator生成的链接问题
当我尝试在Laravel 5中使用Paginator时,我遇到了一个奇怪的问题 . 数据和分页信息已经准备好了,但是当我在刀片中调用$ model-> render()时,页面链接完全错误 . 以下是控制器中的一些示例代码: public function index() { $articles = Article::latest('published_at')->pagina...