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