# j-Drawer

> j-Drawer: NEW: width {Number} a default width (default: 250); NEW: widthlg {Number} optional, width for large displays

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

- `if {String}` condition, it's compared with the value within of `path`
- `align {String}` alignment (default: `left`)
- __NEW__: `width {Number}` a default width (default: `250`)
- __NEW__: `widthlg {Number}` optional, width for large displays
- __NEW__: `widthmd {Number}` optional, width for medium displays
- __NEW__: `widthsm {Number}` optional, width for small displays
- __NEW__: `widthxs {Number}` optional, width for extra small displays

Use it with `<ui-component name="drawer">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="drawer" path="common.menu" config="if:main;align:left" class="hidden">
	<button><i class="ti ti-inbox"></i>Inbox</button>
	<button class="selected"><i class="ti ti-star"></i>Starred</button>
	<button><i class="ti ti-envelope"></i>Send mail</button>
	<hr />
	<a href="#"><i class="ti ti-trash"></i>Trash</a>
</ui-component>

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