I need that when clicking on a New Button, disable the ion-segment-button and that when clicking on a Save button, enable them again
I need that when clicking on a New Button, disable the ion-segment-button and that when clicking on a Save button, enable them again
Ion-Segment has a disabled property that can be turned on or off based on a variable.
On the side of your .ts file you can control that the isDisable variable is true when "New" is pressed and false when "Save" is pressed. This will block the segment when the condition is true, if you want to disable only one ion-segment-button it also has the same disabled property and enable or disable itself based on a variable you control from your .ts file
ION SEGMENT Documentation Ionic 4