detailRowCompCache.d.ts 1.1 KB

123456789101112131415161718192021222324
  1. import { ICellRendererComp } from "./cellRenderers/iCellRenderer";
  2. import { RowNode } from "../entities/rowNode";
  3. import { BeanStub } from "../context/beanStub";
  4. /**
  5. * For Master Detail, it is required to keep components between expanding & collapsing parents.
  6. * For example a user expands row A (and shows a detail grid for this row), then when row A
  7. * is closed, we want to keep the detail grid, so next time row A is expanded the detail grid
  8. * is showed with it's context intact, eg if user sorted in the detail grid, that sort should
  9. * still be applied after the detail grid is shown for the second time.
  10. */
  11. export declare class DetailRowCompCache extends BeanStub {
  12. private gridOptionsWrapper;
  13. private cacheItems;
  14. private maxCacheSize;
  15. private active;
  16. private postConstruct;
  17. addOrDestroy(rowNode: RowNode, pinned: string, comp: ICellRendererComp): void;
  18. private getCacheItem;
  19. private stampCacheItem;
  20. private destroyFullWidthRow;
  21. private purgeCache;
  22. get(rowNode: RowNode, pinned: string): ICellRendererComp;
  23. protected destroy(): void;
  24. }