NativeScript & Vue.JS

RadListView Item Reorder

The item reorder feature allows the end users to change the position of an item by dragging it. This is particularly useful in scenarios where lists of items with priorities are created. Reordering an item is used to change the item's priority. The Item Reorder feature is enabled by setting the itemReorder property to true.


The following simple scenario demonstrates how the item-reorder feature is used. A handler for the itemReordered event is provided which prints out the indices of the item being reordered.

export default {
  name: 'ItemReorder',
  description: description,
  template: `
    <ActionBar :title="title">
      <NavigationButton text="Back" android.systemIcon="ic_menu_back" @tap="onNavigationButtonTap"></NavigationButton>
      <RadListView ref="listView"
                   for="item in itemList"
          <StackLayout class="item m-10" orientation="vertical">
            <Label :text="" class="nameLabel"></Label>
  data () {
    return {
      title: description,
      itemList: simpleItemList,
      selectedItems: [],
  methods: {
    onItemReordered({ index, data, object }) {
      console.log(`Item reordered from index ${index} to ${data.targetIndex}`);
    onNavigationButtonTap() {