feat: Added properties disableFindAndReplace,disableCheckBox and disa… #908
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhanced Table Component with Conditional Disable Features
This update introduces additional flexibility to the table component by allowing users to conditionally disable certain features using the extras prop. With this new feature, specific functionalities like Find and Replace, Checkbox, and Serial Number (SrNo) can be easily enabled or disabled based on the value passed in the extras object.
New extras Prop
users can conditionally disable specific features. they can pass the extras prop with the following keys:
Example Usage
In this example:
Default Behavior
If the extras prop is not passed or if any key is missing from the extras object, the corresponding feature will remain enabled by default.
For example, if you only pass disableCheckBox: true but omit the other options, the Find and Replace and Serial Number features will remain enabled, while the checkbox feature will be disabled.
Benefits
Customizability: Users can now easily toggle which features are enabled or disabled based on project requirements.
Simplified Configuration: By using the extras object, you can manage multiple feature settings in a single configuration.
Flexibility: This new feature provides the flexibility to disable or enable specific features without needing to modify the core table logic.
Notes