Skip to content

Commit

Permalink
Table visualization: change default size to 25 and add more size opti…
Browse files Browse the repository at this point in the history
…ons. (#2982)
  • Loading branch information
arikfr authored Oct 21, 2018
1 parent 6e83679 commit 38a89b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/app/components/dynamic-table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function sortRows(rows, orderBy) {
}

function validateItemsPerPage(value, defaultValue) {
defaultValue = defaultValue || 10;
defaultValue = defaultValue || 25;
value = parseInt(value, 10) || defaultValue;
return value > 0 ? value : defaultValue;
}
Expand Down
4 changes: 2 additions & 2 deletions client/app/visualizations/table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import template from './table.html';
import editorTemplate from './table-editor.html';
import './table-editor.less';

const ALLOWED_ITEM_PER_PAGE = [5, 10, 15, 20, 25];
const ALLOWED_ITEM_PER_PAGE = [5, 10, 15, 20, 25, 50, 100, 150, 200, 250];

const DISPLAY_AS_OPTIONS = [
{ name: 'Text', value: 'string' },
Expand All @@ -18,7 +18,7 @@ const DISPLAY_AS_OPTIONS = [
];

const DEFAULT_OPTIONS = {
itemsPerPage: 15,
itemsPerPage: 25,
autoHeight: true,
defaultRows: 14,
defaultColumns: 3,
Expand Down

0 comments on commit 38a89b9

Please sign in to comment.