MCPcopy
hub / github.com/gcanti/tcomb-form-native / getLocals

Method getLocals

lib/components.js:780–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
797List.transformer = {

Callers 6

getLocalsMethod · 0.45
getLocalsMethod · 0.45
getLocalsMethod · 0.45
getLocalsMethod · 0.45
getLocalsMethod · 0.45
index.jsFile · 0.45

Calls 2

getItemsMethod · 0.95
getI18nMethod · 0.80

Tested by

no test coverage detected