# j-ExpansionPanel

> j-ExpansionPanel-Optionen: mehrere, Symbol, Daten-ID, Titel, Symbol

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: de
Content-SHA256: c743a8070b546d466aac4382f949d8dc6a22665eb74657f56e8af24930cd8e53
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

__Konfiguration__:

- `multiple {Boolean}` ermöglicht das mehrfache Öffnen von Panels (Standard: `false`)
- `icon {String}` ein Beschriftungssymbol für jedes Panel (Standard: `ti ti-caret-right`)

### Wie definiere ich Panels?

```html

<ui-component name="expansionpanel" path="*tab" config="multiple:0" class="invisible">

	<section data-id="logs" title="Logs" data-icon="ti ti-history">

		HTML CONTENT

	</section>

	<section data-id="parts" title="Parts" data-icon="ti ti-code-branch">

		HTML CONTENT

	</section>

</ui-component>
```

__Attribute__:

- `data-id` __required__, es muss eine Kennung des Panels enthalten
- `title` __required__, es muss einen Panelnamen enthalten
- `icon` optional, es kann das Symbol Total.js enthalten (Standard: `config.icon`)

Verwenden Sie es mit `<ui-component name="expansionpanel">`. Wenn die Komponente noch nicht geladen ist, lädt jComponent sie bei der ersten Verwendung von der Adresse in `DEF.fallback` herunter (standardmäßig das CDN Componentator). Autor: Peter Širka. Quelle: Componentator-Komponenten-Repository, MIT-Lizenz.

```html example.html
<ui-component name="expansionpanel" path="*tab" config="multiple:0" class="invisible">
	<section data-id="logs" title="Logs" data-icon="ti ti-history">
		<div class="padding">Log</div>
	</section>
	<section data-id="parts" title="Parts" data-icon="ti ti-code-branch">
		<div class="padding">Parts</div>
	</section>
	<section data-id="files" title="Files" data-icon="ti ti-copy">
		<div class="padding">Files</div>
	</section>
	<section data-id="relations" title="Relations" data-icon="ti ti-link">
		<div class="padding">Relations</div>
	</section>
	<section data-id="maintenance" title="Maintenance plan" data-icon="ti ti-calendar">
		<div class="padding">Maintenance plan</div>
	</section>
</ui-component>

<script>
	var common = { tab: '' };
</script>
```
