Skip to content

Commit

Permalink
#102. Add width to container via settings
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurkushman committed Apr 26, 2018
1 parent 41f0d2a commit 0d828f8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions main.js
Expand Up @@ -88,6 +88,7 @@ let settings = {
download: {
csv: false,
},
width: '900px',
},
lang: 'en', // english default
perPageRows: [25, 50, 100, 200],
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "gigatables-react",
"version": "2.3.12",
"version": "2.3.13",
"description": "GigaTables is a ReactJS plug-in to help web-developers process table-data in applications and CMS, CRM, ERP or similar systems. It supports ajax data processing/editing (CRUD), pagination, cross-sorting, global search, shft/ctrl rows selection, 7 popular languages and more.",
"main": "./build/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/Reactables.jsx
Expand Up @@ -455,7 +455,7 @@ class Reactables extends Main {
struct,
} = this.settings;
return (
<div className={styles.gt_container} style={{width: "1128px"}}>
<div className={styles.gt_container} style={{width: (typeof struct.width !== CommonConstants.UNDEFINED) ? struct.width : CommonConstants.DEFAULT_WIDTH}}>
<div className={styles.gt_head_tools}>
{this.getTools(CommonConstants.DISPLAY_TOP)}
</div>
Expand Down
1 change: 1 addition & 0 deletions src/components/CommonConstants.js
Expand Up @@ -69,4 +69,5 @@ module.exports = {
HEADER_CONTENT_TYPE: 'Content-Type',
CONTENT_APP_JSON: 'application/json',
// === headers end ===
DEFAULT_WIDTH: '1280px',
};

0 comments on commit 0d828f8

Please sign in to comment.