j-Panel
- supports dark mode
Configuration:
title {String}window titleif {String}condition for showing of the window, it's compared with the value within ofpathicon {String}Total icon withoutti-reload {String}link to a global function and it's executed if the form is displayingenter {Boolean}optional, capturesenterkey automatically and performs submit (default:false)autofocus {Boolean/String}optional, can focus an input.String===jQuery selectorfor the inputdefault {String}optional, a short alias forDEFAULT(default, true)closebutton {Boolean}optional, can hidexbutton (default:false)width {Number}optional, a default width of the panel (default:300)bg {Boolean}optional, can disablebackground(default:true)bgclose {Boolean}optional, if the user click on the background then the panel will be closed (default:false)zindex {Number}optional, can affect z-index (default:12)close {String}optional, path/method is executed aspath_to_method(com)when the user closes the panel manually via close buttonscrollbar {Boolean}optional, enables custom scrollbar (default:true)scrollbarY {Boolean}optional, shows vertical custom scrollbar (default:true)scrollbarshadow {Boolean}optional, enables a shadow in scrollbar (default:false)menu {String}optional, a link to function (panel will show a button with burger icon in title bar)container {String}optional, jQuery selector (this container means a container for scrollbar)margin {Number}optional, a margin forcontainerand itsscrollbar(it works withcontaineronly)closeicon {String}optional, Font-Awesome icon (default:ti ti-times)- NEW
closeesc {Boolean}closes the form when the user pressesESCkey
Good to know:
New version of this component supports dynamic evaluation of the content of <script type="text/html">. The example below contains a script with HTML and the component evaluates the content if the j-Panel will be displayed (only once).
<ui-component name="panel" path="path" config="config">
<script type="text/html">
A CONTENT
</script>
</ui-component>Use it with <ui-component name="panel">. 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.
<ui-component name="panel" path="common.panel" config="if:user;title:Title of this panel" class="hidden">
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
<br />
<div style="padding:20px">SOME CONTENT</div>
</ui-component>
<script>
var common = {};
common.panel = 'user';
</script>