Dialog Export Component
Description
The DialogExport
component provides a modal dialog to select export options before exporting data. It allows users to configure:
- Headers: Column name vs. column ID
- Columns: Export all or only visible columns
- Rows: Export all, visible, or selected rows
Styled Subcomponents
Component | Description |
---|---|
ExportContent |
Provides the UI for export configuration. |
Dialog_Title |
Displays the export dialog title. |
Dialog_Content |
Holds the export configuration options. |
Dialog_Actions |
Contains the accept and decline buttons. |
Props
Prop | Type | Default | Description |
---|---|---|---|
open |
boolean |
false |
Controls whether the dialog is visible. |
exportType |
EExportType |
"" |
Type of export (e.g., CSV, Excel, etc.). |
onClose |
() => void |
undefined |
Callback for closing the dialog. |
onAccept |
() => void |
undefined |
Callback for accepting export settings. |
onDecline |
() => void |
undefined |
Callback for canceling export. |
exportOptions |
IExportOptions |
{} |
Object containing export preferences. |
setExportOptions |
React.Dispatch<SetStateAction<IExportOptions>> |
undefined |
Function to update export preferences. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core