amatt13 / amatt13/BossFight

Create data binding for logged in player

Abierto
#28 0 comentarios 0 reacciones 1 asignado Reclamado por @amatt13 Ver en GitHub
Front End
Lenguaje dominante
C#
Estrellas
1
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

```js
const dataProxy = new Proxy(data, {
set(target, property, value) {
target[property] = value;
const input = document.getElementById(property);
if (input) {
input.value = value;
}
return true;
}
});
```

We should use this object whenever we want to change something on the player.
We will need to update the elements' id fields to be consistent in their naming for this to work.
This will also require that the elements have a "oninput" event that triggers an corresponding update function which will update the underlying object.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.