Bootstrap drag and drop using jquery UI sortable



Hello Dev,

Right this moment, i we’ll present you Bootstrap drag and drop utilizing jquery UI sortable. This text gives you easy instance of Bootstrap drag and drop utilizing jquery UI sortable. you’ll study Bootstrap drag and drop utilizing jquery UI sortable. So let’s comply with few step to create instance of Bootstrap drag and drop utilizing jquery UI sortable.

Preview:
Bootstrap drag and drop using jquery UI sortable

Instance


<!DOCTYPE html>
<html>
<title>Bootstrap Kind record by drag and drop utilizing jquery UI sortable - Codeplaners.com</title>
<meta title="viewport" content material="width=device-width, initial-scale=1">
<hyperlink href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
    $(perform() {
        $("#sortable").sortable();
        $("#sortable").disableSelection();
    });
</script>

<physique>

<div class="page-content page-container" id="page-content">
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
                <div class="container-fluid d-flex justify-content-center">
                    <div class="record list-row card" id="sortable" data-sortable-id="0" aria-dropeffect="transfer">
                        <div class="list-item" data-id="13" data-item-sortable-id="0" draggable="true" position="choice" aria-grabbed="false" model="">
                            <div><a href="#" data-abc="true"><span class="w-40 avatar gd-primary">C</span></a></div>
                            <div class="flex"> <a href="#" class="item-author text-color" data-abc="true">Patrick Linod</a>
                                <div class="item-except text-muted text-sm h-1x">For what purpose would it not be advisable for me to consider enterprise content material?</div>
                            </div>
                            <div class="no-wrap">
                                <div class="item-date text-muted text-sm d-none d-md-block">1 weeks in the past</div>
                            </div>
                        </div>
                        <div class="list-item" data-id="9" data-item-sortable-id="0" draggable="true" position="choice" aria-grabbed="false">
                            <div><a href="#" data-abc="true"><span class="w-40 avatar gd-info"><img src="https://codeplaners.com/wp-content/uploads/2020/09/cropped-favicon-social-192x192.png" alt="."></span></a></div>
                            <div class="flex"> <a href="#" class="item-author text-color" data-abc="true">Steven Hmpire</a>
                                <div class="item-except text-muted text-sm h-1x">Construct a progressive internet app utilizing jQuery</div>
                            </div>
                            <div class="no-wrap">
                                <div class="item-date text-muted text-sm d-none d-md-block">10 days in the past</div>
                            </div>
                        </div>
                        <div class="list-item" data-id="17" data-item-sortable-id="0" draggable="true" position="choice" aria-grabbed="false" model="">
                            <div><a href="#" data-abc="true"><span class="w-40 avatar gd-warning">M</span></a></div>
                            <div class="flex"> <a href="#" class="item-author text-color" data-abc="true">Alan musk</a>
                                <div class="item-except text-muted text-sm h-1x">it's advisable for me to consider enterprise content material?</div>
                            </div>
                            <div class="no-wrap">
                                <div class="item-date text-muted text-sm d-none d-md-block">13/12 18</div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<model>
physique {
     background-color: #f9f9fa
}
.card {
     background: #faf7f7;
     border-width: 0;
     border-radius: .25rem;
     box-shadow: Zero 1px 3px rgba(0, 0, 0, .05);
     margin-bottom: 1.5rem;
	 margin: 50px Zero 0;
     place: relative;
     show: flex;
     flex-direction: column;
     min-width: 0;
     word-wrap: break-word;
     background-clip: border-box;
     border: 1px stable rgba(19, 24, 44, .125);
     border-radius: .25rem
}
.list-item.block .media {
 border-bottom-left-radius: 0;
 border-bottom-right-radius: 0
}
.list-item.block .list-content {
 padding: 1rem
}

.w-40 {
 width: 40px !essential;
 top: 40px !essential
}
.avatar {
	 place: relative;
	 line-height: 1;
	 border-radius: 500px;
	 white-space: nowrap;
	 font-weight: 700;
	 border-radius: 100%;
	 show: -ms-flexbox;
	 show: flex;
	 -ms-flex-pack: middle;
	 justify-content: middle;
	 -ms-flex-align: middle;
	 align-items: middle;
	 -ms-flex-negative: 0;
	 flex-shrink: 0;
	 border-radius: 500px;
	 box-shadow: Zero 5px 10px Zero rgba(50, 50, 50, .15)
}

.avatar img {
	 border-radius: inherit;
	 width: 100%
}
.gd-primary {
	 coloration: #fff;
	 border: none;
	 background: #448bff linear-gradient(45deg, #448bff, #44e9ff)
}
.flex {
	 -webkit-box-flex: 1;
	 -ms-flex: 1 1 auto;
	 flex: 1 1 auto
}
.text-color {
 	coloration: #5e676f
}

.text-sm {
 	font-size: .825rem
}
.h-1x {
	 top: 1.25rem;
	 overflow: hidden;
	 show: -webkit-box;
	 -webkit-line-clamp: 1;
	 -webkit-box-orient: vertical
}

.no-wrap {
 	white-space: nowrap
}

.list-row .list-item {
	 -ms-flex-direction: row;
	 flex-direction: row;
	 -ms-flex-align: middle;
	 align-items: middle;
	 padding: .75rem .625rem
}

.list-item {
	 place: relative;
	 show: -ms-flexbox;
	 show: flex;
	 -ms-flex-direction: column;
	 flex-direction: column;
	 min-width: 0;
	 word-wrap: break-word
}
.list-row .list-item>* {
 padding-left: .625rem;
 padding-right: .625rem
}
a:focus,
a:hover {
 text-decoration: none
}
list-item {
 background: white
}
</model>


</physique>
</html>




Komentar

Postingan populer dari blog ini

PHP 8 Multiple Select Dropdown Example

Laravel 8 Get HTTP Hostname

JQuery Drag And Drop Menu Example