| 1234567891011121314151617181920212223242526272829303132333435 |
- import Selectable from "./utils/selectable";
- export interface IRessource {
- id: string;
- title?: string;
- children?: Array<IRessource>;
- collapseChildren?: boolean;
- parent?: IRessource;
- parentId?: string;
- height?: number;
- eventEditable?: boolean;
- eventRessourceEditable?: boolean;
- eventBgColor?: string;
- }
- export declare type RessourceJSON = Omit<IRessource, "parent" | "children">;
- export declare class Ressource implements IRessource, Selectable {
- id: string;
- title: string;
- children: Array<Ressource>;
- collapseChildren: boolean;
- parent?: Ressource;
- height?: number;
- eventEditable: boolean;
- eventRessourceEditable: boolean;
- eventBgColor?: string;
- selected: boolean;
- constructor(obj: IRessource);
- get parentId(): string;
- get depth(): number;
- get show(): boolean;
- descendantOf(potentialParent: IRessource): boolean;
- toPlainObject(parent: IRessource | undefined): IRessource;
- toJSON(): RessourceJSON;
- static toRessource(obj: IRessource): Ressource;
- }
- export default Ressource;
|