MCPcopy Create free account
hub / github.com/AllenFang/react-bootstrap-table / get

Method get

src/store/TableDataStore.js:694–712  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692 }
693
694 get() {
695 const _data = this.getCurrentDisplayData();
696
697 if (_data.length === 0) return _data;
698
699 const remote = typeof this.remote === 'function' ?
700 (this.remote(Const.REMOTE))[Const.REMOTE_PAGE] : this.remote;
701
702 if (remote || !this.enablePagination) {
703 return _data;
704 } else {
705 const result = [];
706 for (let i = this.pageObj.start; i <= this.pageObj.end; i++) {
707 result.push(_data[i]);
708 if (i + 1 === _data.length) break;
709 }
710 return result;
711 }
712 }
713
714 getKeyField() {
715 return this.keyField;

Callers 5

getTableDataFunction · 0.80
BootstrapTable.jsFile · 0.80
invalidFunction · 0.80
letFunction · 0.80

Calls 2

getCurrentDisplayDataMethod · 0.95
remoteMethod · 0.80

Tested by

no test coverage detected