Ported some PCjs drawing code to PC8080, still needs work though
This commit is contained in:
parent
98597a21da
commit
59b6dd3be6
23 changed files with 781 additions and 499 deletions
|
|
@ -9,7 +9,9 @@ PCjs Floppy Drive Controller (FDC) Component
|
|||
|
||||
Format
|
||||
---
|
||||
<fdc>...</fdc>
|
||||
```xml
|
||||
<fdc>...</fdc>
|
||||
```
|
||||
|
||||
Purpose
|
||||
---
|
||||
|
|
@ -53,24 +55,28 @@ Bindings
|
|||
|
||||
Example
|
||||
---
|
||||
<fdc id="fdcNEC" autoMount="'{A: {name: "PC-DOS 1.0", path: "pcdos-1.00.json"}}'">
|
||||
<control type="container">
|
||||
<control type="list" class="input" binding="listDrives"/>
|
||||
<control type="list" class="input" binding="listDisks">
|
||||
<disk path="">None</disk>
|
||||
<disk path="pcdos-1.00.json">PC-DOS 1.0</disk>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadDrive">Load Drive</control>
|
||||
</control>
|
||||
</fdc>
|
||||
```xml
|
||||
<fdc id="fdcNEC" autoMount="'{A: {name: "PC-DOS 1.0", path: "pcdos-1.00.json"}}'">
|
||||
<control type="container">
|
||||
<control type="list" class="input" binding="listDrives"/>
|
||||
<control type="list" class="input" binding="listDisks">
|
||||
<disk path="pcdos-1.00.json">PC-DOS 1.0</disk>
|
||||
</control>
|
||||
<control type="button" class="input" binding="loadDrive">Load Drive</control>
|
||||
</control>
|
||||
</fdc>
|
||||
```
|
||||
|
||||
Output
|
||||
---
|
||||
<div id="..." class="pc-fdc pc-component">
|
||||
<div class="pc-container">
|
||||
<div class="pcjs-fdc" data-value="id:'...',name:'...',listDrives:'...',listDisks:'...',loadDrive:'...'"></div>
|
||||
</div>
|
||||
</div>
|
||||
```html
|
||||
<div id="..." class="pc-fdc pc-component">
|
||||
<div class="pc-container">
|
||||
<div class="pcjs-fdc" data-value="id:'...',name:'...',listDrives:'...',listDisks:'...',loadDrive:'...'">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
Also, if any controls are defined, another <div> of class="pc-controls" is created in the container <div>,
|
||||
with each control inside a <div> of class="pc-control".
|
||||
|
|
|
|||
Loading…
Reference in a new issue