Web Component: j-Centered
The component moves the content of this component under
<body>
tag (because of positioning)jComponent
v19|v20
Configuration:
if
{String}
condition for showing of the form, it's compared with the value within ofdata-jc-path
reload
{String}
link to a globalfunction(form_component)
and it's executed if the form is displayingautofocus
{Boolean/String}
can focus an input.String
===jQuery selector
for the inputdefault
{String}
a short alias forDEFAULT(default, true)
zindex
{Number}
can affect z-index (default:12
)closebutton
{Boolean}
can hidex
button (default:false
)closeoutside
{Boolean}
closes the form when the user clicks outside of the form (default:false
)- or
closeoutside
{String}
can contain a jQuery selector which will be included to a close event closeesc
{Boolean}
closes the form when the user pressesESC
scrollbar
{Boolean}
enables custom scrollbar (default:true
)visibleY
{Boolean}
shows vertical scrollbar (default:false
)close
{String}
link to a globalfunction()
and it's executed if the form is closing
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-Form will be displayed (only once).
<ui-component name="centered" path="path" config="config">
<script type="text/html">
A CONTENT
</script>
</ui-component>
- all buttons with
name="close"
attribute closes the component automatically - all elements with
data-name="close"
attribute closes the component automatically
Author
- Peter Širka petersirka@gmail.com
- License
Created
11. march 2016
Updated
26. january 2023
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com