How to use the ractive/build/ractive.runtime.data function in ractive

To help you get started, we’ve selected a few ractive examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hivewallet / hive-ios / app / lib / ractive / index.js View on Github external
partials.svg_warning = require('hive-svg/warning.ract').template
partials.svg_waggle_not_found = require('hive-svg/waggle_not_found.ract').template
partials.svg_error = require('hive-svg/error.ract').template
partials.svg_appstore = require('hive-svg/appstore.ract').template

Ractive.prototype.hide = function(){
  this.fire('before-hide')
  this.el.classList.remove('current')
}

Ractive.prototype.show = function(){
  this.fire('before-show')
  this.el.classList.add('current')
}

Ractive.data = { translate: translate }

module.exports = Ractive