Skip to content

gooddialogs

clean develop

Light Mode

ts
const resDialog = await goodDialogs.confirm('Mensaje')
  • Multi themes
  • Dark and Light Mode
  • Custom Styles
  • All Frameworks
  • Typescript and Module JS
  • It's not political spam
  • MIT

ts
async function deleteDocument() {
  
  const resDialog = await goodDialogs.confirm("Delete?");
  if (!resDialog) return goodDialogs.cancelled("cancelled");
  const response = await apiService.delete('/api/v1/document/' + 4)

  if (response.status < 400) {
    goodDialogs.success("Success Delete!");
  } else {
    goodDialogs.cancelled("Error");
  }
}