()
| 213 | @Prop({ mutable: true }) activeBarStart?: number; |
| 214 | @Watch('activeBarStart') |
| 215 | protected activeBarStartChanged() { |
| 216 | const { activeBarStart } = this; |
| 217 | if (activeBarStart !== undefined) { |
| 218 | if (activeBarStart > this.max) { |
| 219 | printIonWarning( |
| 220 | `[ion-range] - The value of activeBarStart (${activeBarStart}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`, |
| 221 | this.el |
| 222 | ); |
| 223 | this.activeBarStart = this.max; |
| 224 | } else if (activeBarStart < this.min) { |
| 225 | printIonWarning( |
| 226 | `[ion-range] - The value of activeBarStart (${activeBarStart}) is less than the min (${this.min}). Valid values are greater than or equal to the min value and less than or equal to the max value.`, |
| 227 | this.el |
| 228 | ); |
| 229 | this.activeBarStart = this.min; |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * If `true`, the user cannot interact with the range. |
no test coverage detected