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
2
votes
1 answer

admin-on-rest with passport.js authentication?

I am wondering why I cannot find any AOR and passport auth code online? I found a ton of keystone and passport though... Is there a specific reason for that - the two should work well together, right?
nauti
  • 1,396
  • 3
  • 16
  • 37
2
votes
1 answer

How can I make my menu look like a nested list

I'm very new to React and admin-on-rest so I don't have such a solid baseknowledge yet, please be forgiving if it's a simple question. How can I set my menu to look like a nested list? Currently I have a custom menu and inside this menu.js I set a…
2
votes
3 answers

How to disable perPage limitation in admin on rest?

I need to render a . By default, it use a perPage of 25 limitation that can be increased. Is there a way to turn off this limitation eg: perPage={false} ?
Dimitri Kopriwa
  • 13,139
  • 27
  • 98
  • 204
2
votes
2 answers

How to integrate react-dnd into admin-on-rest?

Has anyone tried to integrate react-dnd or another lib into admin on rest? I wanted to make datagrid draggable inside a referencearrayfield. Should i write my own component overriding datagrid or there's a simple way to do it? Thanks!
annared
  • 81
  • 4
2
votes
1 answer

how to leverage embedded resources in ReferenceArrayInput and ReferenceArrayField so it doesn't make extra calls

if my server responds with results like those: row = { id: value, name: value, height: value, categories: [{id: "1", name: "name 1" },{id: "2", name: "name 2"},{id: "3", name: "name 3"},{id: "4", name: "name 4"}] } how can I use this…
Michail Michailidis
  • 11,792
  • 6
  • 63
  • 106
2
votes
1 answer

Input not rerendering inside SimpleForm

i was using AOR 1.2.2 for site settings panel. Tricky part was that those settings can have different types: string,int,bool, array of string, int etc I managed to do this by connecting record from store and using this code: const SettingsEdit =…
2
votes
1 answer

admin-on-rest: How to set the value of a TextField with an option selected in a DefaultOptionsField

I have a SimpleForm within an EditView, where the SimpleForm contains a DefaultOptionsField and a TextField. The idea is to select an option in the DefaultOptionsField, which then updates the value of the TextField. I can make this work by…
2
votes
1 answer

admin on rest send extra params to rest call

i have upload button inside create form, on button click handler i will upload image to cloud and on upload success i get image url. i need to pass this image url to rest api. this is my sample code. When i submit my form i need to send image url as…
Siddu hadapad
  • 3,023
  • 5
  • 15
  • 26
2
votes
1 answer

Pagination in tabbed list view

I'm trying to create tabbed list view where I have a filtered list of users in every tab. The problem is that the pagination on the bottom is one for all tabs it doesn't change. When I use it it tries to change the page of all tabs. What I did is to…
2
votes
2 answers

Admin on rest Create form - merge firstName and lastName into a third field

React/Redux newbie here. I have implemented a management portal using Admin On Rest. In a Create component I have a Tabbed Form with TextInput components for various form fields. Included in those are firstName, lastName and userName. I need to…
2
votes
1 answer

How can I make AutocompleteInput or SelectArrayInput scrollable?

I'm using the AutocompleteInput and SelectArrayInput from AOR framework and want to select from lots of items. Unfortunately, the menu doesn't fit properly on the screen. How can I make the list scrollable? Thanks in advance.
giokokos
  • 602
  • 1
  • 6
  • 20
2
votes
2 answers

How to add List behavior to ReferenceManyField?

I have a list of 6k entries related to a ressource. I would like to be able to list, search and paginate over them in a TabbedForm/FormTab. ReferenceManyField shows a limited number of entries. What is the recommended way to extend…
Fonzarely
  • 445
  • 4
  • 11
2
votes
1 answer

Use translation in field components

I have trouble to use the translation in admin on rest. I think i don't really understand how it's work For example I cannot use translation in this case:
sebdec
  • 29
  • 1
  • 5
2
votes
2 answers

How to customize the CRUD response toaster message [admin-on-rest]

I want to add server response message in CRUD response toaster. For Example when we do an update, we will get 'Element updated' toaster message. Instead of it I want to show some dynamic (not static) server responded message.
2
votes
1 answer

admin-on-rest ReferenceInput works for Edit but not Create

For some reason, the ReferenceInput works fine on my Edit form; but on Create form, it shows as disabled and empty (I use the same code for both form). It also doesn't show any error in chrome dev tools. Do I have to do any additional stuff for the…
Anh Pham
  • 5,431
  • 3
  • 23
  • 27