amatt13 / amatt13/BossFight

Create data binding for logged in player

オープン
#28 コメント 0 件 リアクション 0 件 担当者 1 名 @amatt13 が担当を希望しています GitHub で見る
Front End
主要言語
C#
スター
1
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。