mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add option to display ALL results in a paginated table
- Commonize the number of pages allowed
This commit is contained in:
parent
45a321694b
commit
cf2abb4130
@ -198,7 +198,8 @@ function loadPartTable(table, url, options={}) {
|
|||||||
sortName: 'name',
|
sortName: 'name',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
rememberOrder: true,
|
rememberOrder: true,
|
||||||
formatNoMatches: function() { return "No parts found"; },
|
formatNoMatches: function() { return "No parts found"; },
|
||||||
queryParams: function(p) {
|
queryParams: function(p) {
|
||||||
|
@ -47,7 +47,8 @@ function loadStockTable(table, options) {
|
|||||||
search: true,
|
search: true,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
rememberOrder: true,
|
rememberOrder: true,
|
||||||
formatNoMatches: function() {
|
formatNoMatches: function() {
|
||||||
return 'No stock items matching query';
|
return 'No stock items matching query';
|
||||||
|
@ -50,6 +50,7 @@
|
|||||||
search: true,
|
search: true,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
formatNoMatches: function() { return "No supplier parts found for {{ company.name }}"; },
|
formatNoMatches: function() { return "No supplier parts found for {{ company.name }}"; },
|
||||||
queryParams: function(p) {
|
queryParams: function(p) {
|
||||||
return {
|
return {
|
||||||
|
@ -37,6 +37,7 @@ InvenTree | Supplier List
|
|||||||
search: true,
|
search: true,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
formatNoMatches: function() { return "No company information found"; },
|
formatNoMatches: function() { return "No company information found"; },
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
search: true,
|
search: true,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 50,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
queryParams: function(p) {
|
queryParams: function(p) {
|
||||||
return {
|
return {
|
||||||
part: {{ part.id }},
|
part: {{ part.id }},
|
||||||
|
@ -140,7 +140,8 @@ InvenTree | Search Results
|
|||||||
search: "{{ query }}",
|
search: "{{ query }}",
|
||||||
},
|
},
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
search: true,
|
search: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
@ -163,7 +164,8 @@ InvenTree | Search Results
|
|||||||
search: "{{ query }}",
|
search: "{{ query }}",
|
||||||
},
|
},
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
search: true,
|
search: true,
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
search: true,
|
search: true,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
formatNoMatches: function() { return "No currencies found"; },
|
formatNoMatches: function() { return "No currencies found"; },
|
||||||
rowStyle: function(row, index) {
|
rowStyle: function(row, index) {
|
||||||
if (row.base) {
|
if (row.base) {
|
||||||
|
@ -27,7 +27,8 @@
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
search: true,
|
search: true,
|
||||||
pagination: true,
|
pagination: true,
|
||||||
pageSize: 25,
|
pageSize: 50,
|
||||||
|
pageList: [25, 50, 100, 'all'],
|
||||||
formatNoMatches: function() { return "No part parameter templates found"; },
|
formatNoMatches: function() { return "No part parameter templates found"; },
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user