import { FreeGrid } from '../';
import { html, svg } from 'lit-html';
import { IDataRow } from '../interfaces';
export function rowElementsGroupRender(
freeGridRowStyle: string,
_rowClick: Function,
_freeGrid: FreeGrid,
_rowNo: number,
rowData: IDataRow
) {
const changeGrouping = () => {
if (rowData.__groupExpanded) {
_freeGrid.arrayUtils.groupCollapse(rowData.__groupID);
} else {
_freeGrid.arrayUtils.groupExpand(rowData.__groupID);
}
};
const defaultMarkup = html`
${rowData.__groupName} (${rowData.__groupTotal})
`;
return html`
${rowData.__groupLvl
? html`
`
: ''}
${html`
${defaultMarkup}
`}
`;
}