PaperComponentProps
Props for the PaperComponent.
Properties
childProps?
optionalchildProps:any
Any props to pass to children.
className?
optionalclassName:string
Optional class name to append to the root element's class list.
data?
optionaldata:any
Optional initial data
dataType?
optionaldataType:string
ID of the format that data or the data retrieved from url is expected to be in. Defaults to JSON_DATATYPE.
model?
optionalmodel:BrowserUIReactModel
Optional instance to render. You mostly wont need to do this; the SurfaceComponent or PaperComponent will create an instance.
modelOptions?
optionalmodelOptions:ModelOptions
Options for the underlying instance.
paperId?
optionalpaperId:string
Optional ID to assign to the Paper that is created.
renderOptions?
optionalrenderOptions:ReactPaperRenderOptions
Render options such as layout, drag options etc
style?
optionalstyle:Record<string,string>
Optional style object to apply to the container element.
url?
optionalurl:string
Optional URL to load initial data from.
viewOptions?
optionalviewOptions:ReactPaperViewOptions
Mappings of vertex types to components/jsx and edge types.