Last active
July 12, 2017 02:16
-
-
Save xhinking/788ea25b633bca570a36e8f96d23745a to your computer and use it in GitHub Desktop.
Dexie addons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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