()
| 778 | } |
| 779 | |
| 780 | getLocals() { |
| 781 | const options = this.props.options; |
| 782 | const i18n = this.getI18n(); |
| 783 | const locals = super.getLocals(); |
| 784 | locals.add = options.disableAdd |
| 785 | ? null |
| 786 | : { |
| 787 | type: "add", |
| 788 | label: i18n.add, |
| 789 | click: this.addItem.bind(this) |
| 790 | }; |
| 791 | locals.items = this.getItems(); |
| 792 | locals.className = options.className; |
| 793 | return locals; |
| 794 | } |
| 795 | } |
| 796 | |
| 797 | List.transformer = { |