@logilab/cwelements
Version:
Library of reusable React components for building web application with cubicweb
19 lines (18 loc) • 1.12 kB
TypeScript
/// <reference types="react" />
import { EntityRelationsGroupProps, EntityRelationsGroup } from './EntityRelationsGroup';
/**
* Default component for rendering a group of relations with the same name on an entity
*/
export declare class DefaultEntityRelationsGroup extends EntityRelationsGroup<EntityRelationsGroupProps> {
static defaultProps: {
editable: boolean;
className: string;
onClickGotoTarget: (eid: number) => void;
onClickEdit: (relations: import("@logilab/cwclientlibjs/build/providers").EntityRelationSchema[]) => void;
getTargetLink: (eid: number) => string;
renderDisplayValue: (entity: import("@logilab/cwclientlibjs/build/providers").Entity, schema: import("@logilab/cwclientlibjs/build/providers").EntitySchema) => JSX.Element;
renderRelation: (component: EntityRelationsGroup<EntityRelationsGroupProps, {}>, relation: import("@logilab/cwclientlibjs/build/providers").EntityRelationSchema) => JSX.Element;
render: (component: EntityRelationsGroup<EntityRelationsGroupProps, {}>) => JSX.Element;
};
render(): JSX.Element;
}