1.1.0 • Published 4 years ago

@forter/sortable v1.1.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
4 years ago

fc-sortable

An element by Forter

Usage

<script>
   import '@forter/sortable';
</script>

<fc-sortable .items="${[1,2,3,4]}">
   <fc-card size="small" class="draggable"> Sort1 </fc-card>
   <fc-card size="small" class="draggable"> Sort2 </fc-card>
   <fc-card size="small" class="draggable"> Sort3 </fc-card>
   <fc-card size="small" class="draggable"> Sort4 </fc-card>
</fc-sortable>

Properties

PropertyAttributeTypeDescription
disableddisabledbooleanIf the element is disabled
filterfilterstringitem class to hide
itemsitemsany[]If the element is disabled
sortBysortBystringitem class to hide

Events

Event
reorder

CSS Custom Properties

PropertyDescription
--fc-sortable-disabled-colordisabled color. example: gray