You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
I'm trying to use the attribute "dnd-allowed-types" to the "Nested Containers demo" in order to have only item in container (no container in container) but I'm stuck.
I add an attribute "allowedTypes" in my templates like here: $scope.models = { selected: null, templates: [ {type: "item", id: 2}, {type: "container", id: 1, allowedTypes: ["item"], columns: [[]]} ], dropzones: { "A": [ ]}}
For the HTML can some body tell me where I have to put the "dnd-type" and "dnd-allowed-types" attribute? In the list.html? or container.html?
The text was updated successfully, but these errors were encountered:
Hi there,
you put dnd-allowed-types in the ul (where dnd-list defined) and put dnd-type in the li (where dnd-draggable is defined). dnd-allowed-types has to be an array of strings, dnd-type has to be an string (number leads to an error at the moment, until my pull request #468 is accepted)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello,
I'm trying to use the attribute "dnd-allowed-types" to the "Nested Containers demo" in order to have only item in container (no container in container) but I'm stuck.
I add an attribute "allowedTypes" in my templates like here:
$scope.models = { selected: null, templates: [ {type: "item", id: 2}, {type: "container", id: 1, allowedTypes: ["item"], columns: [[]]} ], dropzones: { "A": [ ]}}
For the HTML can some body tell me where I have to put the "dnd-type" and "dnd-allowed-types" attribute? In the list.html? or container.html?
The text was updated successfully, but these errors were encountered: