packages/sdk/src/components/grid-enhancements/hooks/use-grid-group-collection.ts
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.User,
data: data,
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Boolean,
data: (cellValue as boolean) || false,
isMultiple,
contentAlign: 'left',
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Chart,
data: cellValue as number[],
displayData: cellValue.map((v) => field.item2String(v)),
chartType: showAs.type as unknown as ChartType,
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Select,
data,
displayData: data,
choiceSorted: field.options.choices,
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Rating,
data: (cellValue as number) || 0,
icon,
color: ColorUtils.getHexForColor(color),
Avoid too many return
statements within this function. Open
Open
return { type: CellType.Loading };
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Text,
data: (cellValue as string) || emptyStr,
displayData: (cellValue as string) || emptyStr,
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Text,
data: (cellValue as string) || emptyStr,
displayData: field.cellValue2String(cellValue),
isWrap: true,
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Link,
data: cellValue ? (Array.isArray(cellValue) ? cellValue : [cellValue]) : [],
displayData: field.cellValue2String(cellValue),
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Select,
data: cv,
displayData,
choiceSorted: choices,
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Text,
data: (cellValue as string) || emptyStr,
displayData,
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Number,
data: cellValue as number,
displayData: field.cellValue2String(cellValue),
contentAlign: 'left',
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Boolean,
data: (cellValue as boolean) || false,
isMultiple,
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Image,
data,
displayData,
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Number,
data: cellValue as number,
displayData:
isMultiple && Array.isArray(cellValue)
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Text,
data: (cellValue as string) || emptyStr,
displayData: field.cellValue2String(cellValue),
};
Avoid too many return
statements within this function. Open
Open
return {
type: CellType.Number,
data: cellValue as number,
displayData: field.cellValue2String(cellValue),
contentAlign: 'left',