doccano/v-annotator

Make maxLabelLength a Vue prop

nikoferraz opened this issue · 2 comments

Right now there doesn't seem to be any way to change the maxLabelLength property, other than by going to the NPM module itself. Would it be possible to make this a prop so that we can pass a custom value?

Yes.

  1. Add maxLabelLength to VAnnotator props.
  2. Change valueOf method to pass maxLabelLength.
  3. Pass maxLabelLength to LabelList.valueOf in the VAnnotator component.

Thanks! It looks like it's working now. I submitted a PR related to this issue.