Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ability to choose ws #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ofirelarat
Copy link

Hi,
I added the ability to choose specific worksheet.
That can be handy when you have more than one worksheet, the default is steel the first worksheet.

    const fileHandler = (event) => {
        let fileObj = event.target.files[0];
    
        //just pass the fileObj as parameter
        ExcelRenderer(fileObj, (err, resp) => {
            if(err){
                console.log(err);            
            }
            else{
                debugger;
                console.log(resp)
            }
        }, 4);               
    }
    const fileHandler = (event) => {
        let fileObj = event.target.files[0];
    
        //just pass the fileObj as parameter
        ExcelRenderer(fileObj, (err, resp) => {
            if(err){
                console.log(err);            
            }
            else{
                debugger;
                console.log(resp)
            }
        }, "worksheet-name");               
    }

@ofirelarat
Copy link
Author

#38

@ofirelarat
Copy link
Author

#21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant