mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
Segment works
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
color: get-color(primary, base);
|
||||
|
||||
min-height: 3.7rem;
|
||||
line-height: 3.7rem;
|
||||
|
||||
&.active {
|
||||
color: #fff;
|
||||
|
@ -45,6 +45,7 @@ export class Segment {
|
||||
|
||||
writeValue(value) {
|
||||
console.log('SEGMENT WRITE VALUE', value);
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
bindButton(segmentValue) {
|
||||
@ -64,6 +65,8 @@ export class Segment {
|
||||
segmentButton.setActive(true);
|
||||
|
||||
this.value = segmentButton.value;
|
||||
this.controlDirective._control().updateValue(this.value);
|
||||
console.log('New value', this.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user