question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EDIT not showing on the <RESOUCE>

See original GitHub issue

I have follow the instruction on the website and found out the EDIT part not showing in the list page.

Here is my code.

<Resource name="Merchants" list={Merchants} options={{ label: 'store' }} icon={MerchantIcon} edit={MerchantEdit} create={MerchantCreate}  />

export const MerchantEdit = (props) => (
  <Edit {...props} title='Edit'>
    <SimpleForm>
      <DisabledInput label="Id" source="id"/>
      <TextField source="Translate[0].DisplayName" label="name"/>
      <FunctionField source="Rating" render={record => `${record.Rating / 100}`} label="rate"/>
      <TextField source="MonthlySales" label="sales"/>
    </SimpleForm>
  </Edit>
);

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
leeseicommented, Mar 11, 2017

Did you add EditButton to Merchants?

export const Merchants = (props) => (
    <List {...props}>
        <Datagrid>
            <TextField source="id" />
             ...
            <EditButton />
        </Datagrid>
    </List>
);
0reactions
Tim1023commented, Mar 12, 2017

@leesei The problem solved, Thank you so much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Resource editor does not work - Visual Studio Feedback
I have tried to create a new Windows Desktop project and double-click the rc file, the resource can be showed properly in Resource...
Read more >
A newly added user/resource is not showing on add or edit ...
Navigate to the Resource Center page in PWA. · Select the checkbox for a resource and then click the Edit button in the...
Read more >
Resource editor not available in Visual Studio 2008
There is no editor available for 'D:\MyPath\MyProject\Resources.de.resx'. Make sure the application for the file type (.resx) is installed. Any idea on how to ......
Read more >
The Managed Resource Editor fails to show content of ...
Expected Behavior: The Managed Resource Editor should show the image content of the resource file. Actual Behavior: The Manage Resource Editor ...
Read more >
Resource bundle editor disappeared : IDEA-274651 - YouTrack
Visible to issue readers ... Resource bundle editor disappeared ... In 2021.2 there are no tabs at the botom of editor for switching...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found