mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Init steps * Implement logic for auto-complete for all test pages * Init steps * Implement logic for auto-complete for all test pages * Expose TestPageMainViewModel * Merge * Improve check if example is already loaded in collection * Reorder tests * Fix tslint * Include csslv * Include new image source
34 lines
743 B
TypeScript
34 lines
743 B
TypeScript
import { Observable } from "tns-core-modules/data/observable";
|
|
|
|
export class TestExample extends Observable {
|
|
private _name: string;
|
|
private _path: string;
|
|
|
|
constructor(name: string, path: string) {
|
|
super();
|
|
this._name = name;
|
|
this._path = path;
|
|
}
|
|
|
|
get name(): string {
|
|
return this._name;
|
|
}
|
|
|
|
set name(value: string) {
|
|
if (this._name !== value) {
|
|
this._name = value;
|
|
this.notifyPropertyChange('name', value)
|
|
}
|
|
}
|
|
|
|
get path(): string {
|
|
return this._path;
|
|
}
|
|
|
|
set path(value: string) {
|
|
if (this._path !== value) {
|
|
this._path = value;
|
|
this.notifyPropertyChange('path', value)
|
|
}
|
|
}
|
|
} |