Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
Created July 26, 2023 20:05
Show Gist options
  • Select an option

  • Save codigoconjuan/3ceaaf172421589c3032074af55a1617 to your computer and use it in GitHub Desktop.

Select an option

Save codigoconjuan/3ceaaf172421589c3032074af55a1617 to your computer and use it in GitHub Desktop.
Botones de Eliminar y Editar
const btnEditar = document.createElement('button');
btnEditar.classList.add('py-2', 'px-10', 'bg-indigo-600', 'hover:bg-indigo-700', 'text-white', 'font-bold', 'uppercase', 'rounded-lg', 'flex', 'items-center', 'gap-2');
btnEditar.innerHTML = 'Editar <svg fill="none" class="h-5 w-5" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor"><path d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"></path></svg>'
const btnEliminar = document.createElement('button');
btnEliminar.classList.add('py-2', 'px-10', 'bg-red-600', 'hover:bg-red-700', 'text-white', 'font-bold', 'uppercase', 'rounded-lg', 'flex', 'items-center', 'gap-2');
btnEliminar.innerHTML = 'Eliminar <svg fill="none" class="h-5 w-5" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor"><path d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>'
@DiyiboDev
Copy link

Gracias!!

@SrJovs
Copy link

SrJovs commented Oct 4, 2024

tqm Juan, gracias

@edmorenodev
Copy link

el mejoooor

@JesusPineda29
Copy link

gracias

@IsmaelVidalBasare
Copy link

grande profe. Bendiciones

@Nanakuh
Copy link

Nanakuh commented Mar 29, 2025

Gracias!!

@ByCharliee
Copy link

Se va viendo bastante, bastante bien 👍

@josepitimarin
Copy link

Muchas gracias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment