Skip to content

Instantly share code, notes, and snippets.

@xhinking
Last active July 12, 2017 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xhinking/788ea25b633bca570a36e8f96d23745a to your computer and use it in GitHub Desktop.
Save xhinking/788ea25b633bca570a36e8f96d23745a to your computer and use it in GitHub Desktop.
Dexie addons
import Dexie from 'dexie';
class MyDerivedDexie extends Dexie {
anotherProperty;
anotherMethod() {
// Do something here...
}
constructor (name, options) {
super(name, options);
this.anotherProperty = "other prop";
}
}
var db = new MyDerivedDexie("DerivedSampleDB");
alert(db.anotherProperty);
db.anotherMethod ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment