amatt13 / amatt13/BossFight

Create data binding for logged in player

Đang mở
#28 0 bình luận 0 reaction 1 người được giao Được @amatt13 nhận Xem trên GitHub
Front End
Ngôn ngữ chính
C#
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.