1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    lmcadory is on a distinguished road

      0  

    Default Uibinder for drag and drop

    Uibinder for drag and drop


    Hopefully this isn't a dumb question.

    I wanted to know how to use droptarget with uibinder? I'm trying to combine the borderlayout uibinder example with the basic dnd example. I trying to place the dragable items to the center layout and make the west layout the droptarget. I'm very new to uibinder and am having trouble. I imported the package the holds DropTarget and just added it under the west layout under the SimpleContainer like so:

    Code:
    <container:SimpleContainer>
       <container:child layoutData="{outerData}">
         <container:BorderLayoutContainer ui:field="con" borders="true">
           <container:north layoutData="{northData}">
             <gxt:ContentPanel />
           </container:north>
           <container:west layoutData="{westData}">
             <dnd:DropTarget /> 
             <gxt:ContentPanel />
           </container:west>
           <container:center layoutData="{centerData}">
             <gxt:ContentPanel headingText="BorderLayout UiBinder Example" resize="false">
               <g:FlexTable />
             </gxt:ContentPanel>
           </container:center>
           <container:east layoutData="{eastData}">
             <gxt:ContentPanel />
           </container:east>
           <container:south layoutData="{southData}">
             <gxt:ContentPanel />
           </container:south>
         </container:BorderLayoutContainer>
       </container:child>
     </container:SimpleContainer>
    When I run it, it doesn't build anything. Is it even possible to use droptarget in uibinder?

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    12
    Vote Rating
    0
    lmcadory is on a distinguished road

      0  

    Default


    I figured it out. I had to had another container, one for the source and one for the droptarget. I removed the DropTarget from the container. That didn't do anything.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar