diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b512c09d4..000000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -node_modules \ No newline at end of file diff --git a/404.html b/404.html index 89a6cb55f..b70bcda6b 100644 --- a/404.html +++ b/404.html @@ -136,6 +136,13 @@
Other Pages:
Tables + + + diff --git a/NestedSortable.html b/NestedSortable.html new file mode 100644 index 000000000..35e7f4553 --- /dev/null +++ b/NestedSortable.html @@ -0,0 +1,572 @@ + + + + + + + + + + + + SB Admin 2 - Bootstrap Nested Sortable Tree + + + + + + + + + + + + + + + + + + + +
+ + + + + + +
+ + +
+ + + + + + +
+ + +

Bootstrap Nested Sortable Tree

+

BsNestedSortable is a third party plugin that is used to generate sortable tree. + For more information about BsNestedSortable, please visit the official BsNestedSortable documentation.

+ + +
+
    +
    + + + + + + + + + + + +
    + + +
    + + + +
    +
    + +
    +
    + + +
    + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/blank.html b/blank.html index 409070493..d689f9b7f 100644 --- a/blank.html +++ b/blank.html @@ -135,6 +135,13 @@
    Other Pages:
    Tables + + + diff --git a/buttons.html b/buttons.html index 5a3b4dccf..a0ba96ae9 100644 --- a/buttons.html +++ b/buttons.html @@ -135,6 +135,13 @@
    Other Pages:
    Tables + + + diff --git a/cards.html b/cards.html index d65c9e606..625250f4a 100644 --- a/cards.html +++ b/cards.html @@ -135,6 +135,13 @@
    Other Pages:
    Tables + + + diff --git a/charts.html b/charts.html index c654ac979..0aba03f6d 100644 --- a/charts.html +++ b/charts.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/index.html b/index.html index 51cf7bbdf..0556b7e2f 100644 --- a/index.html +++ b/index.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/js/demo/BsNestedSortable-demo.js b/js/demo/BsNestedSortable-demo.js new file mode 100644 index 000000000..b0fa2f05e --- /dev/null +++ b/js/demo/BsNestedSortable-demo.js @@ -0,0 +1,102 @@ + const myData = [ + { + id: 1, + parent_id: 0, + title: 'Branch 1', + description: '

    Check out the text method.

    ', + }, + { + id: 2, + parent_id: 1, + title: 'Branch 2', + img: 'img/undraw_profile.svg' + }, + { + id: 3, + parent_id: 2, + title: 'Branch 3', + description: 'Description of Branch 3', + + }, + { + id: 4, + parent_id: 3, + title: 'Branch 4', + description: '', + + }, + { + id: 5, + parent_id: 4, + title: 'Branch 5', + img: 'img/undraw_profile_1.svg', + description: '
    \nTest description
    ', + + }, + { + id: 6, + parent_id: 2, + title: 'Branch 6', + + }, { + id: 8, + parent_id: 6, + img: 'img/undraw_rocket.svg', + title: 'Branch 8', + description: '', + + }, + { + id: 9, + parent_id: 3, + title: 'Branch 9', + description: '', + + }, + { + id: 7, + img: 'img/undraw_posting_photo.svg', + parent_id: 10, + title: 'Branch 7', + + }, + + { + title: 'Branch 10', + id: 10, + parent_id: 9, + description: '', + + }, + ]; + + $(document).ready(function () { + const input = { + data: myData,// {}, myData + options: { + modal: { + id: "#myModal", + ModalDelete: "#myModalDelete", + name: "#CatName", + description: "#CatDescId", + image: "#image" + }, + maxLevel: 10, + dataAttributes: { + id: 'id__', + parent: 'parent__', + }, + dataKeys: { + id: 'id', + parent: 'parent_id', + title: 'title', + description: 'description', + image: 'img' + }, + } + + } + + $("#tree").BsNestedSortable(input)//.serializeList() + + }) \ No newline at end of file diff --git a/tables.html b/tables.html index e867d9692..5977f4a6d 100644 --- a/tables.html +++ b/tables.html @@ -137,6 +137,13 @@
    Other Pages:
    Tables + + + diff --git a/utilities-animation.html b/utilities-animation.html index 1f4d1baa6..0871d86cc 100644 --- a/utilities-animation.html +++ b/utilities-animation.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/utilities-border.html b/utilities-border.html index a2fa85162..70cc0bd35 100644 --- a/utilities-border.html +++ b/utilities-border.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/utilities-color.html b/utilities-color.html index e588deb46..442660da2 100644 --- a/utilities-color.html +++ b/utilities-color.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/utilities-other.html b/utilities-other.html index d5332a7a3..41af66a70 100644 --- a/utilities-other.html +++ b/utilities-other.html @@ -134,6 +134,13 @@
    Other Pages:
    Tables + + + diff --git a/vendor/BsNestedSortable b/vendor/BsNestedSortable new file mode 160000 index 000000000..fd2b23cfb --- /dev/null +++ b/vendor/BsNestedSortable @@ -0,0 +1 @@ +Subproject commit fd2b23cfb7d531bb760428b9b8f34ed389b8867b