<button id="example" class="hx-btn hx-positive"><i class="fa fa-cog"></i> Preferences</button>
hx.select('#example').on('click', function(){
hx.preferences.load(function() {
hx.preferences.show()
})
})
save()
method. preferences.save()
and preferences.load()
const LocalStoragePreferencesStore = {
save(prefs, cb) {
localStorage.setItem(localStorageKey, prefs);
return cb();
},
load(cb) {
return cb(undefined, localStorage.getItem(localStorageKey));
},
};
Intl
API for localisation of dates and times within Hexagon. save()
method.