Questions tagged [ng-admin]

An AngularJS admin GUI for any RESTful API

An AngularJS admin GUI for any RESTful API: https://github.com/marmelab/ng-admin

110 questions
6
votes
1 answer

Refresh referenced lists in ng-admin

I'm using ng-admin with a rest API, I have multiple referenced lists which are update frequently in the server side. Is there a way to refresh referenced lists every 5 seconds or so using ng-admin? EDIT: I already know about setInterval and…
5
votes
1 answer

Javascript CRUD Admin for Spring-Data HATEOAS backend

We are using a Spring-Boot Spring-Data backend that utilizes JPARepositories with the @RepositoryRestResource annotation. We would like to administer the tables in these repositories (e.g. CRUD) through a javascript frontend without having to go…
user5804636
5
votes
1 answer

Ng-admin: how can i make a custom template listView of entity?

I try to make custom template listView, for example: import listTemplate from '../templates/listTemplate.html'; var users = admin.getEntity('users'); users .listView() .template(listTemplate) .actions([]) .title('All users') …
HoangNguyen
  • 183
  • 2
  • 9
4
votes
0 answers

How could I set fields in ng-admin dynamically based on an ajax responsponse?

I've tried and succeded to set the fields dynamically in ng-admin by making a OPTIONS request to my api and using that json. So far so good. But when I tried to refactor this to put it in a class, the browser start realizing I was making a…
4
votes
1 answer

NG-Admin: Is there a way to create an "add new" button on a referenced_list?

I have a referenced_list in my ng-admin app: nga.field('profiles', 'referenced_list') // display list of related profiles .targetEntity(profiles) .targetReferenceField('user_id') .targetFields([ …
TimoSolo
  • 7,068
  • 5
  • 34
  • 50
3
votes
2 answers

Admin On Rest Framework or React drop zone, Issue in uploading a file to firebase

I am using well know React Framework https://marmelab.com/admin-on-rest/RestClients.html Now I want to upload a file to firebase, I follow the doc and find an awesome uploading component FileInput (FileInput allows to upload some files using…
Nirmal
  • 939
  • 10
  • 24
3
votes
2 answers

Ng-admin: How to show different fields according to user's selection?

I am using ng-admin to write a admin management. I met below issue, can somebody help me? In my creationView, I would like to show different fields(text/video/pictures) according to the selection of "type" field. How I can make it? var articles =…
Nancy
  • 41
  • 3
3
votes
1 answer

How to parse a simple array with ng-admin

I have an API (http://localhost:5000/v2/_catalog) returning a json structure as follows: { "repositories": [ "start/imageA", "start/imageA" ] } Now I want to parse the result with ng-admin. My admin.js (CORS is solved…
Flavio
  • 1,645
  • 2
  • 11
  • 9
3
votes
2 answers

How to use $http.get for populating ng-admin choice field?

How would/can you populate a ng-admin "choice" field using angular $http.get method call?
2
votes
1 answer

How to add translation filter to notification of ngAdmin?

My code is like this: function enableUser(Restangular, $state, notification) { ... ... notification.log( {{ "DISABLED_LOG_DISABLE" | translate }}, { addnCls: 'humane-flatty-success' }); } I found that it will display…
Hsw
  • 37
  • 5
2
votes
1 answer

correct way to include requirejs in ng-admin

What is the correct way to include requirejs in ng-admin? A lot of the doucmentation uses require, but it's not loaded by default anymore. I udpated bower.json dependencies to include requirejs and requirejs-text, and ran bower…
2
votes
1 answer

ng-admin redirect to specific page after element creation

I have a small admin page setup with ng-admin. Creating elements works without any issues. What I want to achieve though is that I sent the user to a different page where he can perform some action that will alter the created item(scraping some data…
b-m-f
  • 1,278
  • 2
  • 13
  • 29
2
votes
2 answers

Hide export button in ng-admin list view

In version 0.7 of ng-admin I could hide the Export button in list view with .actions(['batch', 'create']) However, in version 0.8 this also hides the newly introduced Add filter button. So my question is, how can I hide only the Export button in…
Madhura Jayaratne
  • 2,204
  • 1
  • 15
  • 20
2
votes
1 answer

Changing JSON field height (on ng-admin)

I have simple web form to collect data from a user. In my particular case i'm making use of the JSON field to collect a custom data structure. Is it possible to change the height/size of a JSON field?
okrunner
  • 3,083
  • 29
  • 22
1
vote
0 answers

ng-admin: How can I make choices field dynamic based on entry?

.fields([ nga.field('city', 'reference') .validation({ required: true }) .targetEntity(ds) .targetField(nga.field('city')) .label('City'), nga.field('LS1', 'choice') .choices(function(entry) { console.log(entry); …
1
2 3 4 5 6 7 8