How to use the ractive/build/ractive.runtime.prototype 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_token_bitcoin = require('hive-svg/token_bitcoin.ract').template
partials.svg_token_litecoin = require('hive-svg/token_litecoin.ract').template
partials.svg_token = require('hive-svg/token.ract').template
partials.svg_user = require('hive-svg/user.ract').template
partials.svg_waggle = require('hive-svg/waggle.ract').template
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
github hivewallet / hive-ios / app / lib / ractive / index.js View on Github external
partials.svg_refresh = require('hive-svg/refresh.ract').template
partials.svg_send = require('hive-svg/send.ract').template
partials.svg_sendto = require('hive-svg/sendto.ract').template
partials.svg_settings = require('hive-svg/settings.ract').template
partials.svg_success = require('hive-svg/success.ract').template
partials.svg_token_bitcoin = require('hive-svg/token_bitcoin.ract').template
partials.svg_token_litecoin = require('hive-svg/token_litecoin.ract').template
partials.svg_token = require('hive-svg/token.ract').template
partials.svg_user = require('hive-svg/user.ract').template
partials.svg_waggle = require('hive-svg/waggle.ract').template
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