Closed ODelibalta closed 2 years ago
Is it possible to create multiple instances under the same controller? I was not sure where to ask this, even here this project looks dead.
the first instance, still works
` <div class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8" id="fileSelectButton" name="fileUpload" ng-show="canSelect && !isProcessing && fileReaderSupported && !partialFiles.length" ng-id="odsFileSelect" tabindex="0" ngf-accept="selectedUploadType.expected_file_type" ng-model="selectedFiles" ngf-keep="'distinct'" ngf-select="setBannerStatus('isProcessing'); onFileSelect(selectedFiles); " ngf-multiple="true"
Click to upload {{ selectedUploadType.display_name }} files
Then I tried to add this to the page couple of lines below, the on select function fires but I get nothing in partial files array
`<div class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8" id="partialSelectButton" name="partialUpload" ng-show="canSelect && !isProcessing && fileReaderSupported" ng-id="odsPartialSelect" tabindex="0" ngf-accept="selectedUploadType.expected_file_type" ngf-model="partialFiles" ngf-keep="'distinct'" ngf-select="onPartialSelect(partialFiles); " ngf-multiple="true"
Click to add or replace files
Is it possible to create multiple instances under the same controller? I was not sure where to ask this, even here this project looks dead.
the first instance, still works
` <div class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8" id="fileSelectButton" name="fileUpload" ng-show="canSelect && !isProcessing && fileReaderSupported && !partialFiles.length" ng-id="odsFileSelect" tabindex="0" ngf-accept="selectedUploadType.expected_file_type" ng-model="selectedFiles" ngf-keep="'distinct'" ngf-select="setBannerStatus('isProcessing'); onFileSelect(selectedFiles); " ngf-multiple="true"
Then I tried to add this to the page couple of lines below, the on select function fires but I get nothing in partial files array
`<div class="btn btn-success btn-lg btn-outline offset-sm-2 col-sm-8" id="partialSelectButton" name="partialUpload" ng-show="canSelect && !isProcessing && fileReaderSupported" ng-id="odsPartialSelect" tabindex="0" ngf-accept="selectedUploadType.expected_file_type" ngf-model="partialFiles" ngf-keep="'distinct'" ngf-select="onPartialSelect(partialFiles); " ngf-multiple="true"