Include a Button in a TextBox

前端 未结 3 660
刺人心
刺人心 2021-02-09 19:54

I want to add a little Button, which removes all the text in the TextBox. Is it possible to put this \"Remove\"-Button into the TextBox (like i

3条回答
  •  抹茶落季
    2021-02-09 20:02

    Got something using interactivity, but you probably can manage without:

    
        
        
        
    
    
    
    class ClearTextAction : TriggerAction

    You could make the button only show upon TextBox-MouseOver by adding this style to it:

    
        
    
    

提交回复
热议问题