Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Comments

2 comments

  • Murtza

     There are probably better ways to implement this, but I'll walk through one possible solution. 

     

    To create additional Box upload buttons with the same style as the original one, you can add an input element with the "box-style" class. To trigger the upload popup from the additional buttons, you can pass the click on the additional button to the original button.

     

    Here is an example that shows to do this:

     

    
    
    
    

    0
    Comment actions Permalink
  • skystar

    Please implement the ability to specify the DOM ID in the config, and also an option to make the auto button styling optional.

     

    Or, just a function like open() that we can call for our own button events, then you only need one instance and have as many buttons as you want.

     

    Or, ideally, just static functions like BoxSelect.open({}) and BoxSelect.initButton('#your-id', {})

    0
    Comment actions Permalink

Please sign in to leave a comment.