We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ResponsiveDataTable
import { ResponsiveDataTable } from "@layer5/sistent"; function App() { const columns = [ { name: "name", label: "Name" }, { name: "company", label: "Company" }, { name: "city", label: "City" }, { name: "state", label: "State" }, ]; const data = [ ["Joe James", "Test Corp", "Yonkers", "NY"], ["John Walsh", "Test Corp", "Hartford", "CT"], ["Bob Herm", "Test Corp", "Tampa", "FL"], ["James Houston", "Test Corp", "Dallas", "TX"], ]; const colVis = { name: true, company: false, city: true, state: true }; return ( <> <ResponsiveDataTable data={data} columns={columns} columnVisibility={colVis} /> </> ); } export default App;
tableCols
columnVisibility
import { ResponsiveDataTable } from "@layer5/sistent"; function App() { const columns = [ { name: "name", label: "Name" }, { name: "company", label: "Company" }, { name: "city", label: "City" }, { name: "state", label: "State" }, ]; const data = [ ["Joe James", "Test Corp", "Yonkers", "NY"], ["John Walsh", "Test Corp", "Hartford", "CT"], ["Bob Herm", "Test Corp", "Tampa", "FL"], ["James Houston", "Test Corp", "Dallas", "TX"], ]; const colVis = { name: true, company: false, city: true, state: true }; return ( <> <ResponsiveDataTable data={data} tableCols={columns} //should be optional columns={columns} columnVisibility={colVis} /> </> ); } export default App;
columns
The text was updated successfully, but these errors were encountered:
Hii ! I would like to work on this !
Sorry, something went wrong.
@dottharun Can I work on this if it is not assigned to @MrPhenomenal3110 ?
No branches or pull requests
Current Behavior
tableCols
prop seems to be required to render the Table.tableCols
prop,columnVisibility
seems to be ignored.Expected Behavior
columns
,tableCols
,columnVisibility
, Correct the implementation/readme to reflect correct behaviour.Screenshots/Logs
Environment
Contributor Guides and Resources
The text was updated successfully, but these errors were encountered: