ObjectDetailsPanel
Installation
import { ObjectDetailsPanel } from 'uxp/components';Signature
const ObjectDetailsPanel: React.MemoExoticComponent<React.ForwardRefExoticComponent<React.RefAttributes<ObjectDetailsPanelHandlers> & ObjectDetailsPanelProps>>Examples
<ObjectDetailsPanel
title="User Details"
data={{ id: '1', name: 'John Doe' }}
generalDetails={<div>General info</div>}
idField="id"
/><ObjectDetailsPanel
title={(row) => `Details for ${row.name}`}
data={async () => ({ id: '1', name: 'John Doe', email: '[email protected]' })}
generalDetails={(row) => ({ fields: [{ label: 'Name', value: row.name }, { label: 'Email', value: row.email }] })}
toolbarItems={{
left: [{ icon: 'edit', label: 'Edit', onClick: (e, row) => console.log('Edit', row) }],
right: [{ icon: 'share', label: 'Share' }]
}}
otherDetails={<div>Additional info</div>}
additionlDetails={[
{ id: 'notes', icon: 'note', label: 'Notes', content: 'Sample notes' },
{ id: 'history', icon: 'history', label: 'History', content: (row) => <div>History for {row.name}</div> }
]}
showCloseButton={true}
onClose={() => console.log('Panel closed')}
/>Ref Handlers
Method
Type
Description
Last updated