MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / render

Method render

xadmin-dashboard/src/editor/components/ComponentTree.js:13–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11@DashboardWrap('dashboard.cell')
12class NodeTitle extends React.Component {
13 render() {
14 const { cellKey, title, removeCell, copyCell } = this.props
15 return (
16 <div>
17 <ContextMenuTrigger id={`tree-node-${cellKey}`} holdToDisplay={-1}>
18 {title}
19 </ContextMenuTrigger>
20 <ContextMenu id={`tree-node-${cellKey}`}>
21 <MenuItem onClick={(e)=>copyCell(cellKey)}>
22 复制
23 </MenuItem>
24 <MenuItem onClick={(e)=>removeCell(cellKey)}>
25 删除
26 </MenuItem>
27 </ContextMenu>
28 </div>
29 )
30 }
31}
32
33@DashboardWrap('dashboard.view')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected