Tengo un jsGrid, el cual tengo dos controles, [type:”control”], por default los botones que agrega son los de editar y eliminar, ya tengo mis acciones por cada clic en ambos, lo que pretendo es que en lugar de los iconos de editar y borrar sean los que aparecen al dar clic sobre el icono editar, que son la tachita y la palomita. Mis acciones solo son Aceptar y Rechazar, por eso solo necesito esos iconos.
Utilicé el inspector, les dejo las clases que necesito agregar a mi jsgrid.
<input class="jsgrid-button jsgrid-update-button" title="Aceptar" type="button"> <input class="jsgrid-button jsgrid-cancel-edit-button" title="Cancelar" type="button">
Esos son los que se muestran al dar clic en el icono editar(por default), y me gustaría agregarlos a ésta parte:
fields: [ { name: "Almacén", title: 'Almacén', type: "text", width: 40, align: "center", editing:false }, { name: "Cita", title: 'Cita', type: "text", width: 40, align: "center", editing: false }, { name: "Embarque", title: 'Embarque', type: "text", width: 50, align: "center", editing: false }, { name: "Usuario", title: 'Usuario', type: "text", width: 50, align: "center", editing: false }, { name: "Estatus", title: 'Estatus', type: "text", width: 40, align: "center", editing: false }, { name: "Confirmación", title: 'Confirmación', type: "text", width: 40, align: "center", editing: false }, { //Aqui necesito agregar los botones type: "control" }
Estaré muy agradecida si alguien puede ayudarme.
Saludos.