Skip to content
This repository has been archived by the owner on Jun 27, 2018. It is now read-only.

custom field types based on reference field #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

McAronDev
Copy link

Fixes ignoring references when extending reference field classes.
now this works fine :

  var ReferencedListField=nga.getFieldConstructor('referenced_list');

  class CustomReferencedList extends ReferencedListField {
    constructor(name) {
      super(name);
      this._type = 'custom_referenced_list';
    }
  }

Fixes reference ignoring when extending reference field classes.
Copy link
Contributor

@floo51 floo51 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you try not to break backward compatibility ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants