Skip to content

Add a new view mode to data tables#2

Open
nosrak113 wants to merge 1 commit intomasterfrom
add-lookup-datatable
Open

Add a new view mode to data tables#2
nosrak113 wants to merge 1 commit intomasterfrom
add-lookup-datatable

Conversation

@nosrak113
Copy link
Copy Markdown
Owner

Add a new view mode to the decision table component.

  • Decision Table Component:

    • Add a new state variable viewMode to manage the view mode.
    • Add a button to toggle between view modes.
    • Pass the viewMode prop to the DecisionTableProvider.
  • Decision Table Store Context:

    • Add a new state variable viewMode to the DecisionTableStoreType.
    • Add actions to update the viewMode state variable.
  • Table Component:

    • Add a new prop viewMode to the Table component.
    • Add logic to render the table based on the viewMode prop.
  • Table Head Cell:

    • Add a button to toggle between view modes.
  • Table Head Row:

    • Add logic to render the table head based on the viewMode prop.
  • Table Row:

    • Add logic to render the table rows based on the viewMode prop.
  • Table Default Cell:

    • Add logic to render the table cells based on the viewMode prop.
  • Storybook:

    • Add tests for the new view mode functionality.

Add a new view mode to the decision table component.

* **Decision Table Component**:
  - Add a new state variable `viewMode` to manage the view mode.
  - Add a button to toggle between view modes.
  - Pass the `viewMode` prop to the `DecisionTableProvider`.

* **Decision Table Store Context**:
  - Add a new state variable `viewMode` to the `DecisionTableStoreType`.
  - Add actions to update the `viewMode` state variable.

* **Table Component**:
  - Add a new prop `viewMode` to the `Table` component.
  - Add logic to render the table based on the `viewMode` prop.

* **Table Head Cell**:
  - Add a button to toggle between view modes.

* **Table Head Row**:
  - Add logic to render the table head based on the `viewMode` prop.

* **Table Row**:
  - Add logic to render the table rows based on the `viewMode` prop.

* **Table Default Cell**:
  - Add logic to render the table cells based on the `viewMode` prop.

* **Storybook**:
  - Add tests for the new view mode functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant