Files
NativeScript/apps/app/ui-tests-app/test-example-model.ts
SvetoslavTsenov 51d1be5bb8 Tsenov/auto complete (#4318)
* 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
2017-06-06 16:06:21 +03:00

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)
}
}
}