MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / checkedChange

Method checkedChange

apps/toolbox/src/pages/a11y.ts:26–35  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

24 }
25
26 checkedChange(args) {
27 const checked = (args.object as Switch).checked;
28 console.log(checked);
29 this.notifyPropertyChange('switchCheckedText', `${this.labelText} ${checked}`);
30
31 // prettier-ignore
32 this.notifyPropertyChange('largeImageSrc', checked ?
33 'https://i.picsum.photos/id/669/5000/5000.jpg?hmac=VlpchW0ODhflKm0SKOYQrc8qysLWbqKmDS1MGT9apAc' :
34 'https://i.picsum.photos/id/684/5000/5000.jpg?hmac=loiXO_OQ-y86XY_hc7p3qJdY39fSd9CuDM0iA_--P4Q');
35 }
36
37 openModal() {
38 page.showModal('pages/sample-modal', {

Callers

nothing calls this directly

Calls 2

notifyPropertyChangeMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected