j-Empty
- A
path-nek olyan adatforrást kell tartalmaznia, amely megfigyelhető
konfiguráció:
icon {String}egy alapértelmezett ikon (default:ti ti-database)parent {String}- A minimális magasságot meghatározó szülőtartály (default:parent)height {Number}magasság (ha nem szeretné használni aparent, alapértelmezett:undefined)margin {Number}a margin (default:0)topoffset {Boolean}alkalmazza aelement.offset().topmint margin (default:false)topposition {Boolean}alkalmazza aelement.position().topmint margin (default:false)- NEW
wait {Boolean}várja az adatokat (default:false)
Használati eset 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>Használati eset 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-componentHasználja a <ui-component name="empty">Amennyiben a készülék még nem tölthető le, jComponent letöltés az első felhasználásra a címről DEF.fallback (Azt a Componentator A szerző: Peter Širka. forrás: a Componentator Az összetevők raktár, MIT licenc.
<ui-component name="empty" path="datasource" config="parent:window;wait:false" class="hidden">The datasource is empty.</ui-component>
<script>
var datasource = [];
// Empty component will be hidden after 5 seconds
PUSH('datasource', { item: 1 }, 5000);
</script>