Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new css to Table length Menu #27

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"

var style = {
table_body: {
marginTop: '16px'
marginTop: '14px'
},
table_size: {
background: 'none',
border: 'none',
padding: 0
padding: '2px'
},
table_size_dropdown: {
width: '70px',
width: '87px',
flex: 'none',
margin: '0px 10px',
margin: '0px 8px',
display: 'inline-block',
float: 'none'
},
table_filter: {
display: 'inline-block',
verticalAlign: 'top',
marginRight: '5px',
width: '250px'
width: '240px'
},
table_tool: {
display: 'inline-block',
Expand All @@ -69,6 +69,9 @@ var style = {
table_tool_btn: {
marginRight: '5px'
},
table_tool_btn_icon: {
marginTop: '14px'
},
sort_asc: {
backgroundImage: 'url(' + _upArrow2.default + ')'
},
Expand Down Expand Up @@ -655,7 +658,7 @@ var ReactDatatable = function (_Component) {
{ className: 'row table-head asrt-table-head', id: this.props.id ? this.props.id + "-table-head" : "" },
_react2.default.createElement(
'div',
{ className: 'col-md-6' },
{ className: 'col-6' },
this.config.show_length_menu ? _react2.default.createElement(
'div',
{ className: 'input-group asrt-page-length' },
Expand Down Expand Up @@ -698,7 +701,7 @@ var ReactDatatable = function (_Component) {
),
_react2.default.createElement(
'div',
{ className: 'col-md-6 float-right text-right' },
{ className: 'col-6 float-right text-right' },
this.config.show_filter ? _react2.default.createElement(
'div',
{ className: 'table_filter', style: style.table_filter },
Expand Down Expand Up @@ -761,7 +764,7 @@ var ReactDatatable = function (_Component) {
{ className: 'row table-body asrt-table-body', style: style.table_body, id: this.props.id ? this.props.id + "-table-body" : "" },
_react2.default.createElement(
'div',
{ className: 'col-md-12' },
{ className: 'col-12' },
_react2.default.createElement(
'table',
{ className: this.props.className, id: this.props.id },
Expand Down Expand Up @@ -825,7 +828,7 @@ var ReactDatatable = function (_Component) {
record[column.key]
);
} else {
return _react2.default.createElement('td', { className: column.className, key: column.key ? column.key : column.text });
return _react2.default.createElement('td', { className: column.className, key: column.key ? column.key : column.text },[column.key]);
}
})
);
Expand Down
Loading