angularjs - Drag and Drop of list element where the only way to drag element is by an inner element -
- Get link
- X
- Other Apps
I have a line of elements that are ordered. I use the UE-sontable because it's angular Play well with I. I want the secret icon (top and bottom arrows) to be the only element that can start pulling its original element. Basically it is that I
& lt; Ul ui-sortable = "phoneSortableOptions" ng-model = "lead.phoneList" & gt; I am working with & Lt; Li ng- Repeat = "call in lead.phoneList" orderby: 'displayOrder' "> phone The only piece that I want to be dragable
I read through the documentation but only one element Any way to make drag Not found.
Also, if I'm not mistaken, then the UI -Sonable Jquery Sortable
App.directive ('preventDrag', function) () {return {link: function (scope, element, attributes) {element.on ('mousedown', (e) {e.stopPropagation ();}}}}}} ); I was hoping to set up a library, but it is not very bad.
You can also try
- Select user: none; // CSS
- onmousedown = "return false;"
- ondragstart = "return false;"
-
Get link
-
Facebook
-
X
-
Pinterest
-
Email
-
Other Apps
Popular posts from this blog
python - how we can use ajax() in views.py in django? -
I have a little code here. Could you please tell me what this code really does? please. Here in the AJAX call: $ .ajax ({url: "{% url} upload_document '%}", type: "POST", data : {Csrfmiddletoken: document.getElementsByName ('csrfmiddletoken') [0] Price, Title: document.getElementById ('title'). Value, // document: document: document.getElementById ('document'),}, datatype: "Jason", success: function (feedback) {if (feedback == "true") {// success} other {// attachment errors}}}); How AJAX works in the Django and how we can see the AJAX request. Here is the idea of my thoughts def upload_document (requested): Print request. POTT print request FILES if request.is_ajax (): If request.method == 'POST': form = UploadForm (request.POST, request.FILES, user = request.user) if form.is_valid (): Form.save () return HTTPPCS (SimpleJason Dumps ('True'), Mime Type = 'App / Jason') Other:...
c - Performance of System() -
After the function in C, for the system (), it affects the hardware counters, so how do you order that The example displayed for the example you are trying to view lets the IM use the display API (PAPI) and the program is a precompiled matrix multiplication application. PAPI_start_counters (); System ("./matmul"); PAPI_read_counters (); // Print the values PAPI_stop_counters (); I'm clearly missing a bit, but I'm trying to figure out what it is possible to say, counter receiving a program im running Is through use. With my tests I will get wild numbers like below, they are clearly wrong, just want to find out why total bicycle =========== 140733358872510 instructions complete =========== 4203968 Floating Point Instructions =========== Floating Point Operations =========== 4,196,867 Weight ======= ==== 140733358872804 store ======= ==== 4204037 branches taken =========== 15774436 System () Normally it is a very slow function, on Linux, it is ...
c++ - How to define methods in a base class that only work in derived classes? -
The title is slightly ambiguous, so I will say an example of what I want to achieve: Class ValuePtr {Public: Operator Canned void * () {return glm :: value_ptr (* this); // value ptr will not work on this class // (works only on glm type)}}; Square mat4x4: public glm :: mat4x4, public valuePtr {// ... but will work here}; Square Vec3: Public glm :: vec3, Public ValuePtr {// ... and here. } Is such a thing possible? glm :: value_ptr works only on glm type like glm :: mat4x4 , glm: : Vec3 , etc. The above seen method works if I implement it directly into derivative classes, but they should all be defined as operator construct * zero * in the same way. I should behave like a special behavior: define it in the general base class, whereas definition only works in derived classes. Thank you for the answer, I use this solution: template & lt; Class T & gt; Class ValuePtr: Public T {Public: Operator Constant * () {return glm :: value_ptr (* this); }}; Class ...
Comments
Post a Comment