Closed Floridus closed 6 years ago
Nothing jumps out at me here as obviously wrong. Can you share your SettingsToggle
? A CodeSandbox (here's a Griddle template) could help troubleshoot.
In your example, unfortunately, the settings do not work either? So when I click on the button "Settings", I do not see anything anymore.
Here my SettingsToggle File
SettingsToggle.jsx
import React from 'react';
import ReactTooltip from 'react-tooltip';
const SettingsToggle = ({ onClick, text, style, className }) => (
<button
onClick={onClick}
type="button"
style={style}
className={className}
data-tip
data-for="config"
>
<i className="fa fa-cog" />
<ReactTooltip id="config" effect="solid">
<span>{text}</span>
</ReactTooltip>
</button>
);
export default SettingsToggle;
I am sorry, my mistake. Wrong button when commenting.
Interesting...looks like I broke it!
The regression is in 3577f8fbeaf480f316e29e0f701acfcf108637c7 from #757: my refactoring left out settingsComponentObjects
! Downgrading to 1.10.1 fixes the issue (sandbox), or you can assign settingsComponentObjects
directly on your <Griddle />
or via a plugin: https://codesandbox.io/s/wnwqnwkl5w.
Thank you very much. I'm currently sick, but will test it when I'm well again :)
This has been released with griddle-react@1.13.0
, though not tagged as latest
yet.
Griddle version
1.11.2
Expected Behavior
I want to see all settings like pageSize, visbile and hidden columns.
Actual Behavior
At the top right in the corner you can see a white empty div which should show all settings. But it was always empty with me since I started working with griddle. I do not know how to show it. Please help. Have read through all the documentation and found nothing on the subject.
Steps to reproduce
I am working with the fakeData.js file from griddle.
Test.jsx, so I call the component
Layout.jsx File for the new Layout
DataList.jsx for my "griddle"-Component