column list expand icons

This commit is contained in:
Jan Prochazka
2021-01-23 08:47:28 +01:00
parent 19a39d4a83
commit 6e60cf8691
3 changed files with 17 additions and 2 deletions

View File

@@ -54,6 +54,9 @@ const iconNames = {
'icon run': 'mdi mdi-play',
'icon chevron-down': 'mdi mdi-chevron-down',
'icon chevron-left': 'mdi mdi-chevron-left',
'icon chevron-right': 'mdi mdi-chevron-right',
'icon chevron-up': 'mdi mdi-chevron-up',
'icon plugin': 'mdi mdi-toy-brick',
'img ok': 'mdi mdi-check-circle color-green-8',
@@ -111,3 +114,10 @@ export function ExpandIcon({ isBlank = false, isExpanded = false, ...other }) {
}
return <FontIcon icon={isExpanded ? 'icon minus-box' : 'icon plus-box'} {...other} />;
}
export function ChevronExpandIcon({ isBlank = false, isExpanded = false, ...other }) {
if (isBlank) {
return <FontIcon icon="icon invisible-box" {...other} />;
}
return <FontIcon icon={isExpanded ? 'icon chevron-down' : 'icon chevron-right'} {...other} />;
}