Files
mixtape/zero.Backoffice.UI/app/directives/v-sortable.ts
T

15 lines
228 B
TypeScript
Raw Normal View History

2021-12-06 16:18:58 +01:00
import Sortable from 'sortablejs';
/**
* Outputs a formatted date
*/
export default (el, binding) =>
{
if (binding.value === binding.oldValue)
{
return;
}
let sortable = new Sortable(el, binding.value || {});
};