Skip to content

Commit 2058065

Browse files
dbalinovtsvetomir
authored andcommitted
docs(listBox): drag enabled property
1 parent 8f0c7e8 commit 2058065

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

docs/api/javascript/ui/listbox.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,40 @@ Indicates whether the ListBox items can be dragged and dropped.
199199

200200
Indicates whether dragging is enabled.
201201

202+
#### Example - ListBox with disabled dragging
203+
204+
<select id="listBoxA">
205+
<option>ItemA1</option>
206+
<option>ItemA2</option>
207+
</select>
208+
<select id="listBoxB">
209+
<option>ItemB1</option>
210+
<option>ItemB2</option>
211+
</select>
212+
213+
<script>
214+
$("#listBoxA").kendoListBox({
215+
draggable: true
216+
});
217+
218+
$("#listBoxB").kendoListBox({
219+
dropSources: [ "listBoxA" ],
220+
draggable: {
221+
enabled: false,
222+
placeholder: function(element) {
223+
return element.clone().css({
224+
"opacity": 0.3,
225+
"border": "1px dashed #000000"
226+
});
227+
}
228+
}
229+
});
230+
</script>
231+
232+
### draggable.enabled `Boolean` *(default: true)*
233+
234+
Indicates whether dragging is enabled.
235+
202236
#### Example - ListBox with disabled dragging
203237

204238
<select id="listBoxA">

0 commit comments

Comments
 (0)