mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
refactor(segment): changed segment event emitter type to SegmentButton and update the change to emit value
Fixed tests to reflect this. References #819
This commit is contained in:
@ -20,12 +20,12 @@ class MyApp {
|
||||
this.appType = 'free';
|
||||
}
|
||||
|
||||
onSegmentChanged(value) {
|
||||
console.log("Segment changed to", value);
|
||||
onSegmentChanged(segmentButton) {
|
||||
console.log("Segment changed to", segmentButton.value);
|
||||
}
|
||||
|
||||
onSegmentClicked(value) {
|
||||
console.log("Segment clicked", value);
|
||||
onSegmentSelected(segmentButton) {
|
||||
console.log("Segment selected", segmentButton.value);
|
||||
}
|
||||
|
||||
doSubmit(event) {
|
||||
|
Reference in New Issue
Block a user