Starting work on disambiguating PCjs the emulator from PCjs the project/website; the emulator will become PCx86
This commit is contained in:
parent
7c3aab2a7e
commit
288f28055d
1519 changed files with 16242 additions and 6939 deletions
56
docs/pcx86/component/README.md
Normal file
56
docs/pcx86/component/README.md
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
---
|
||||
layout: page
|
||||
title: PCx86 <component> Element
|
||||
permalink: /docs/pcx86/component/
|
||||
---
|
||||
|
||||
PCx86 Component
|
||||
---
|
||||
|
||||
Format
|
||||
---
|
||||
```xml
|
||||
<component>...</component>
|
||||
```
|
||||
|
||||
Purpose
|
||||
---
|
||||
Describes a machine component. It is transformed into an outer "component" <div> and an inner "container" <div>.
|
||||
See **Output** details below.
|
||||
|
||||
Attributes
|
||||
---
|
||||
* *id* (optional)
|
||||
* ID of the component <div> that uniquely identifies the component on the page.
|
||||
* *name* (optional)
|
||||
* User-friendly name to be displayed between the component <div> and container <div>.
|
||||
* *class* (optional)
|
||||
* Class name for the component <div>.
|
||||
* *width* (optional)
|
||||
* Width of the component <div>.
|
||||
* *pos* (optional)
|
||||
* Positional value added to the style attribute of the component <div>. "left" is a shortcut for "float:left", "right" a shortcut for "float:right", and "center" a shortcut for "margin:0 auto".
|
||||
* *border* (optional)
|
||||
* Border for the container <div>.
|
||||
* *style* (optional)
|
||||
* Value(s), if any, used as-is for the container <div>.
|
||||
|
||||
Example
|
||||
---
|
||||
```xml
|
||||
<component id="ibm5150" class="pcx86" width="740px" pos="center" border="1">
|
||||
...
|
||||
</component>
|
||||
```
|
||||
|
||||
Output
|
||||
---
|
||||
```html
|
||||
<div id="..." class="pc-component">
|
||||
<div class="pc-container">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
||||
[Return to [PCx86 Documentation](..)]
|
||||
Loading…
Reference in a new issue