You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create as many custom buttons as you wish, here is another example
w2popup.open('Some text',{actions: {// function name is used for button textOk(event){// do somethingw2popup.close()},Cancel(event){w2popup.close()},// custom button, when you can define text and classcustom1: {text: "Other Button",class: "w2ui-btn-blue",style: 'color: yellow',onClick(event){console.log('button clicked')}},custom2: {text: "Custom 2",onClick(event){console.log('button clicked')}},}})
The "Custom" property of Options on the Popup should have been an Array [] ? Why can we only have 1 custom button?
The text was updated successfully, but these errors were encountered: