j-Kanban
Konfigurace:
parent {String}Kontejner s pevnou výškou může býtwindowPodmínkou hodnoty:parenta prvků.margin {Number}vrchní / dolní marže spolu (default:0)padding {Number}mezi panely (předvolené:10)style {Number}styl,1(podle předvolby): krabičky budou mít plnou výšku, krabička2bude mítmax-heightmove {String}je cesta k metodufunction(group, target), je spuštěna, pokud uživatel přenese položku do jiné skupinyremove {String}je cesta k metodufunction(group), je spuštěna, pokud uživatel odstraňuje položku ve skupinědblclick {String}Cesta k metodufunction(group)je provedeno, pokud uživatel vykoná dvojí kliknutí
Metody:
component.remove(id)může odstranit položku ve skupiněcomponent.findgroup(id)vrací skupinovou instanci
Important: Každý položka potřebuje vlastní ID {String}, podívejte se na příklad.
Použijte ji s <ui-component name="kanban">Pokud je součástka ještě nezačleněna, jComponent Stáhnout ji na první použití z adresy DEF.fallback a) The Componentator CDN dle předvolby. autor: Peter Širka. zdroj: Componentator Výrobce je autorizován, MIT licence.
<style>
.caption { line-height: 50px; border-bottom: 1px solid #E0E0E0; padding: 0 10px; font-weight: bold; }
.ui-dark .caption { border-bottom-color: #404040; }
</style>
<ui-component name="kanban" path="items" config="parent:window;move:onmoveitem;margin:50">
<!-- Group header rendering -->
<script type="text/html">
<div class="caption">{{ name }}</div>
</script>
<!-- Item rendering -->
<script type="text/html">
<div>{{ name }}</div>
</script>
</ui-component>
<script>
var items = [];
items.push({ id: '1', name: 'In progress', items: [{ id: '11', name: 'Better life Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ea culpa voluptatem asperiores aspernatur doloremque cupiditate error, qui sit est quas.' }] });
items.push({ id: '2', name: 'Pending', items: [{ id: '21', name: 'Improve j-ChunkyScroll' }] });
items.push({ id: '3', name: 'Done', items: [{ id: '31', name: 'Fix scrollbars j-DataGrid' }, { id: '32', name: 'Improve performace' }] });
function onmoveitem(group, target) {
console.log('MOVEMENT:', group, target);
}
</script>