Button name line break

In your button template you have to add ng-bind-html="msg.payload"
In this example below I have used msg.buttonname instead of msg.payload
Example:

<md-button class="vibrate filled touched smallfont rounded" style={{msg.backcolor}} ng-bind-html="msg.buttonname"  ng-click="send({action: 'Click'})"> 
 {{msg.buttonname}}
 
</md-button> 

Now the payload of msg.buttonname can contains html.

msg.buttonname = "Licht<br/>Badkamer"

Capture

1 Like