Method being called whenever the underlying button is clicked.
()
| 307 | |
| 308 | /** Method being called whenever the underlying button is clicked. */ |
| 309 | _handleClick() { |
| 310 | if (!this.disabled) { |
| 311 | this.toggleChange.emit(); |
| 312 | |
| 313 | if (!this.defaults.disableToggleValue) { |
| 314 | this.checked = !this.checked; |
| 315 | this._onChange(this.checked); |
| 316 | this.change.emit(new MatSlideToggleChange(this, this.checked)); |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | _getAriaLabelledBy() { |
| 322 | if (this.ariaLabelledby) { |