Can't activate the placeholder and preview programmatically #25405
              
                Unanswered
              
          
                  
                    
                      NathanBraslavski
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| @NathanBraslavski did you ever find a solution for this? I am stuck here as well | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to add placeholder and template using
But I had no luck so far.
I was trying to reverse engineer the source code and it looks I am doing the same.
I am defining the placeholder and preview elements before start event
and getting the template with
ViewChildHere is a link to the stackblitz project
https://stackblitz.com/edit/material-drag-drop-js?file=src%2Fapp%2Fcdk-drag-drop-custom-preview-example.ts
Beta Was this translation helpful? Give feedback.
All reactions