Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Example = ({ record, ...props }) => {
- console.log('props=',props)
- console.log('Record=', record)
- return <TextField
- {...props}
- record={record}
- label="robot.form.name"
- source="name"
- />
- }
- const RobotShow = (props) => (
- <Show title={<RobotTitle />} {...props}>
- <TabbedShowLayout>
- <Tab label="robot.form.main">
- <TextField
- label="robot.form.name"
- source="name"
- />
- <DateField
- label="robot.form.crateDate"
- source="createDate"
- />
- <ReferenceField
- reference="parser-configs"
- label="robot.form.parserConfig"
- source="parserConfigId"
- allowEmpty={true}
- >
- <TextField source="name" />
- </ReferenceField>
- <SelectField
- label="robot.form.type"
- source="config.type"
- choices={robotsModeChoices()}
- />
- </Tab>
- <Tab label="robot.form.main">
- <Example />
- </Tab>
- </TabbedShowLayout>
- </Show>
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement