Ressource.d.ts 973 B

123456789101112131415161718192021222324252627282930313233
  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. childOf(potentialParent: IRessource): boolean;
  30. toPlainObject(parent: IRessource | undefined): IRessource;
  31. static toRessource(obj: IRessource): Ressource;
  32. }
  33. export default Ressource;