var myPopup = $ionicPopup.show({
title: 'Choose Address',
buttons:[
{
text: "Don't show me again",
type: 'button-positive'
},
{
text: "Close",
type: 'button-positive',
onTap: function(){
myPopup.close();
}
},
]
});
This places the two buttons created next to teach other.
Is there a way to make the buttons so they stretch across the width of the popup and each button is on a new line using that format of creating buttons for the popups?
I know I can use template: <input type='button'><br> in place of the buttons tag but using the buttons tag making it a lot easier to add functionality on click.
How would I go about editing it so that it only affects the buttons in this individual popup? Is there a way to add a custom style to use to the buttons array used to create the buttons?
I know this is an old topic but, I created a solution for block-buttons inside popup-buttons.
All you have to do is add flex-wrap: wrap to .popup-buttons. And then set flex to none on your custom button class. This makes child items fill properly for 100% width.