Calert Buttons Configuration

The default value is true

calert({
  confirmButton: true
})

// equivalent to
calert()

calert({
  title: 'No Confirm Button',
  confirmButton: false
})

calert({
  title: 'with cancel button',
  cancelButton: true
})

calert({
  title: 'Changing Confirm Button Text',
  confirmButton: 'Try',
  buttons: {
    try2: 'try2',
    try3: 'try3',
    try4: 'try4',
  }
}).then(result => {
  calert({
    text: {
      innerHTML: '<pre>' + JSON.stringify(result, null, 2) + '</pre>'
    },
    contentPosition: 'left'
  })
})

Advance Configuration

calert({
  confirmButton: {
    innerText: 'Green',
    style: {
      background: 'green'
    }
  },
  buttons: {
    custom: {
      innerText: 'Custom',
      style: {
        background: 'yellow'
      }
    },
    custom2: {
      innerHTML: '<em>Try </em>',
      style: {
        background: 'red',
        borderRadius: '0'
      }
    },
  }
})

You can change all the styling and attributes of buttons