aplicar reduccion al abrir filterbox, mostrar opcion de todas las opciones al estar reducido

This commit is contained in:
dehernandezm 2025-02-07 09:48:25 -06:00
parent ecd6e89b51
commit 88db66c39b
3 changed files with 6 additions and 17 deletions

View File

@ -138,28 +138,16 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
_react2.default.createElement(
'p',
null,
_react2.default.createElement(
'a',
{
role: 'button',
className: 'pvtButton ' + (stringAttr === stringAttrReduced ? 'disabled' : ''),
onClick: function onClick() {
_this2.updateFilterOptions(true);
}
},
'Mostrar Todas las Opciones'
),
' ',
_react2.default.createElement(
stringAttr === stringAttrReduced && _react2.default.createElement(
'a',
{
role: 'button',
className: 'pvtButton',
onClick: function onClick() {
_this2.updateFilterOptions();
_this2.updateFilterOptions(true);
}
},
'Mostrar Opciones en Tabla'
'Mostrar Todas las Opciones'
),
_react2.default.createElement('br', null),
_react2.default.createElement('input', {
@ -241,6 +229,7 @@ var DraggableAttribute = exports.DraggableAttribute = function (_React$Component
value: function toggleFilterBox() {
this.setState({ open: !this.state.open });
this.props.moveFilterBoxToTop(this.props.name);
this.updateFilterOptions();
}
}, {
key: 'render',

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "v-react-pivottable",
"version": "0.11.45",
"version": "0.11.46",
"description": "A React-based pivot table",
"main": "PivotTableUI.js",
"files": [