mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 13:20:43 +00:00
Checkpoint of joins, new handling of the select-all/page/ and new 'subset' options
This commit is contained in:
@ -50,18 +50,20 @@ export function QCreateNewButton({tablePath}: QCreateNewButtonProps): JSX.Elemen
|
||||
interface QSaveButtonProps
|
||||
{
|
||||
label?: string;
|
||||
iconName?: string;
|
||||
onClickHandler?: any,
|
||||
disabled: boolean
|
||||
}
|
||||
QSaveButton.defaultProps = {
|
||||
label: "Save"
|
||||
label: "Save",
|
||||
iconName: "save"
|
||||
};
|
||||
|
||||
export function QSaveButton({label, onClickHandler, disabled}: QSaveButtonProps): JSX.Element
|
||||
export function QSaveButton({label, iconName, onClickHandler, disabled}: QSaveButtonProps): JSX.Element
|
||||
{
|
||||
return (
|
||||
<Box ml={3} width={standardWidth}>
|
||||
<MDButton type="submit" variant="gradient" color="info" size="small" onClick={onClickHandler} fullWidth startIcon={<Icon>save</Icon>} disabled={disabled}>
|
||||
<MDButton type="submit" variant="gradient" color="info" size="small" onClick={onClickHandler} fullWidth startIcon={<Icon>{iconName}</Icon>} disabled={disabled}>
|
||||
{label}
|
||||
</MDButton>
|
||||
</Box>
|
||||
|
Reference in New Issue
Block a user