sortablejs

sortable not dragging all columns of table in safari

廉价感情. 提交于 2021-01-27 13:03:34
问题 I have a vue bootstrap table that uses custom template for every cell using v-slot. All these cells are a custom component. I want the rows of this table to be sortable, that is, I want the users to be able to drag and drop rows in that table. for this I am using sortable JS. Everything is working fine. But I have a UI distortion in safari when dragging any row in the table. Normal table: table when I am dragging the first row in safari: notice that the last column UI does not look like the

How can I save SortableJS positions to an object? [duplicate]

心不动则不痛 提交于 2020-12-13 03:35:18
问题 This question already has answers here : Convert Array to Object (45 answers) Closed 18 days ago . I am trying to create a questionnaire where users rank images from favourite to least. I am using the SortableJS so the images can be dragged and dropped. I have the position of the images currently in the console.log. However, I am trying to push it to a dictionary so it could be formatted as: {0 : image2, 1:image1, 2:image3} . This would allow me to see what image is at each index, so when the

SortableJS get order from nested list

﹥>﹥吖頭↗ 提交于 2020-05-17 08:06:41
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group

SortableJS get order from nested list

不羁岁月 提交于 2020-05-17 08:05:15
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group

SortableJS get order from nested list

自古美人都是妖i 提交于 2020-05-17 08:04:55
问题 i try to get the order of a nested list that can be ordered with SortableJS. My list looks like this: <div id="nestedDemo" class="list-group col nested-sortable"> <div class="list-group-item" data-id="1">Titel 1</div> <div class="list-group-item" data-id="2">Titel 2</div> <div class="list-group-item" data-id="3">Titel3 <div class="list-group nested-sortable"> <div class="list-group-item" data-id="4">Titel 4</div> <div class="list-group-item" data-id="5">Titel 5</div> <div class="list-group

Dynamically create sortable menuSubItems in shinydashboard

为君一笑 提交于 2020-01-12 05:49:07
问题 I have a Shiny app using the shinydashboard package in which I'm dynamically creating menuSubItem s in the sidebarMenu of a dashboardSidebar . The creation of the subItems is triggered by an actionButton. I can create the menuSubItem s on the server side just fine, but I would like to also make them sortable using the sortable package and sortable_js function. I just can't seem to figure out where to place the sortable_js function to make this actually work, though. Here's my MRE: library

Vue.Draggable: How to “drag an item onto another item” instead of adding/removing

不打扰是莪最后的温柔 提交于 2019-12-06 05:36:59
问题 Using https://github.com/SortableJS/Vue.Draggable I have a question on how to achieve the classic example of dragging a file into a folder. I see the @change event gets data about the dragged item, but not about the item that its being dragged onto. Any ideas on how to achieve this? Here's an example of what it would look like more or less, but obviously I would like to be able to reassign the file.folder_name inside that onFoldersChange - somehow. https://jsfiddle.net/u5nb48cs/2/ Thanks! 回答1

Vue.Draggable: How to “drag an item onto another item” instead of adding/removing

半腔热情 提交于 2019-12-04 11:05:04
Using https://github.com/SortableJS/Vue.Draggable I have a question on how to achieve the classic example of dragging a file into a folder. I see the @change event gets data about the dragged item, but not about the item that its being dragged onto. Any ideas on how to achieve this? Here's an example of what it would look like more or less, but obviously I would like to be able to reassign the file.folder_name inside that onFoldersChange - somehow. https://jsfiddle.net/u5nb48cs/2/ Thanks! If you want the folders to contain files, each folder needs to be able to hold files and be a draggable