Questions tagged [admin-on-rest]

Use it for questions about the admin-on-rest admin framework for React.js

Usage questions about the admin-on-rest framework.

501 questions
0
votes
2 answers

How to Change value of DisabledInput when ReferenceInput change

I want to set value for DisabledInput when ReferenceInput onChange event. I export const RegistersCreate=(props) => (
qui ha
  • 39
  • 1
  • 5
0
votes
2 answers

admin-on-rest - show a list with a filter form without a button

I am trying to use admin-on-rest to display a list with a filter form, but without the filter button. I followed the documentation and added a "context='form'" parameter to the filter. I am getting this exception: Edit: I added alwaysOn as suggested…
barisdad
  • 515
  • 7
  • 19
0
votes
1 answer

Using admin-on-rest with public routes

I´d like make a site with public routes ('/') and admin routes (/admin). How can I do it with rest-admin!? Thanks
0
votes
1 answer

Logout in case of a bad request

thanks for the amazing job you've done with AOR, this have been a great source of inspiration for me, especially in how to implement a proper redux store. My question : If I make a bad request, (code 400), AOR log me out of the app. How can I…
Flo
  • 71
  • 4
0
votes
1 answer

admin-on-rest Using PATCH method

I am a junior node developer and am trying out admin on rest to quickly run up an admin panel for my json api. However, all of my update requests use patch instead of put. I attempted revising the UPDATE method in my restClient but this seems wrong…
0
votes
2 answers

Is there a way to use an if statement before showing the show page?

Is there a way to do an if statement before showing the show page? For instance if the id of the element I clicked on with the show button end with ".log" I want to have the show page look like this: export const reportShow = ({ ...props }) =>…
Stebermon
  • 71
  • 1
  • 8
0
votes
1 answer

Is there a way to force Show to use a Datagrid?

I am looking for a way to allow Show to be able to use a Datagrid on the show page. I want to be able to click on the show button and when the show page appears, I want to be able to take data and make another grid using Datagrid or something…
Stebermon
  • 71
  • 1
  • 8
0
votes
1 answer

How to add custom button to sidebar?

In my case I'm using server-side session (not authClient with token in cookies/local storage). So instead of using default LogoutButton I want to place custom button which will do simple "POST /logout" action. There are some examples in docs how to…
0
votes
1 answer

Is it possible to access the applied filters at List Component rendering time

I'm using admin-on-rest and i'm in a case where i have to change the column set in a list view according to the applied filters. Is there any way i can get the currently applied filters so i can do some kind of conditional rendering? Example: export…
MhdSyrwan
  • 1,613
  • 3
  • 19
  • 26
0
votes
2 answers

How can i add onChange on DateInput component

i'm new with admin-on-rest. I want to add onChange event on how can i do that? i tried {console.log(v)}}/> and it seems not working. any ideas?
Moustafa Elkady
  • 670
  • 1
  • 7
  • 17
0
votes
2 answers

Input component for uploading regular files?

There doesn't seem to be an input component for uploading files and I can't manage to edit the existing ImageInput to work either. If anyone has any examples of how to upload non-image files I'd greatly appreciate it.
okeefj22
  • 31
  • 3
0
votes
1 answer

admin-on-rest Rest Client not mapping record with GET_ONE secondary API call

I have a GET_LIST that calls an API, displaying me an object of data. But when I create the Edit component which is under the same resource component, I am calling a second API call that shows additional data for that GET_ONE item. My issue, is…
Mjaaay
  • 15
  • 7
0
votes
1 answer

admin-on-rest - ImageField isn't displaying image from rest client api

I am unable to get the ImageField component (https://marmelab.com/admin-on-rest/Fields.html#imagefield) to render any type of image. Take http://lorempixel.com/628/1837/transport/10 for example, I include it inside the component as source but it…
Mjaaay
  • 15
  • 7
0
votes
1 answer

REST URL customization

I had to change in the restclient after like this: var parentresource = ''; switch (resource) { case 'details': parentresource = `products/${params.id}/${resource}`; break; …
Panna Ahmed
  • 11
  • 1
  • 4
0
votes
1 answer

translate example is not working

I'm trying to use the example of translating your own component so i'm doing this in app.js: const messages = { en: { myroot: { hello: { world: 'Hello, World!', }, }, }, }; const App =…
pelak
  • 70
  • 5