0

I am conceiving an admin panel for my rest backend. I used the AngularJS admin GUI called ng-admin.

I would like to allow users choosing multiple choices and send them to my rest application.

nga.field('languages', 'choice')
    .choices([
        { value: '1', label: 'Choice 1' },
        { value: '2', label: 'Choice 2' },
        { value: '3', label: 'Choice 3' },
        { value: '4', label: 'Choice 4' },
    ])

The config code above does only allow one choice. I would like to keep the enhanced widget of ng-admin and not change it with the traditional checkboxes.

AFA Med
  • 241
  • 2
  • 11
  • 1
    Please provide info of what `ng-admin` is and that you are working on a angular application, if so. I think you need a `multiple` property set on your `select` html tag. – Searching Oct 18 '16 at 20:21
  • I added some stuff in my question. – AFA Med Oct 18 '16 at 20:28

1 Answers1

1

May be u want to use choices instead of choice for multiple selection, references to Git sources.

Searching
  • 2,269
  • 1
  • 17
  • 28