Ressource.d.ts 1004 B

12345678910111213141516171819202122232425262728293031323334
  1. import Selectable from './utils/selectable';
  2. export interface IRessource {
  3. id: string;
  4. title?: string;
  5. children?: Array<IRessource>;
  6. collapseChildren?: boolean;
  7. parent?: IRessource;
  8. parentId?: string;
  9. height?: number;
  10. eventEditable?: boolean;
  11. eventRessourceEditable?: boolean;
  12. eventBgColor?: string;
  13. }
  14. export declare class Ressource implements IRessource, Selectable {
  15. id: string;
  16. title: string;
  17. children: Array<Ressource>;
  18. collapseChildren: boolean;
  19. parent?: Ressource;
  20. height?: number;
  21. eventEditable: boolean;
  22. eventRessourceEditable: boolean;
  23. eventBgColor?: string;
  24. selected: boolean;
  25. constructor(obj: IRessource);
  26. get parentId(): string;
  27. get depth(): number;
  28. get show(): boolean;
  29. descendantOf(potentialParent: IRessource): boolean;
  30. toPlainObject(parent: IRessource | undefined): IRessource;
  31. toJSON(): IRessource;
  32. static toRessource(obj: IRessource): Ressource;
  33. }
  34. export default Ressource;