Web Component: j-Empty
j-Empty
- jComponent
v19|v20 pathmust contain a data-source which will be watched
Configuration:
icon{String}a default icon (default:ti ti-database)parent{String}a parent container which sets a minimal height (default:parent)height{Number}height size (if you don't want to useparent, default:undefined)margin{Number}a margin (default:0)topoffset{Boolean}applieselement.offset().topas a margin (default:false)topposition{Boolean}applieselement.position().topas a margin (default:false)- NEW
wait{Boolean}waits for the data (default:false)
Use-case 1:
<ui-component name="empty" path="datasource" class="hidden">
Items not found
</ui-component>
<ui-bind path="datasource" config="show:value && value.length" class="hidden"></ui-bind>
Use-case 2:
<ui-component name="empty" path="datasource" class="hidden">
<script type="text/html">
Items not found
</script>
<div>
YOUR CONTENT. This DIV will be hidden automatically if the "datasource" is empty.
</div>
</ui-component
Author
- Peter Širka petersirka@gmail.com
- License
Created
02. march 2016
Updated
04. february 2025
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com

