// Toolbar item var ToolbarItem = { template: `
`, props: ['id', 'title', 'isSplitbar', 'toRight'], methods: { onClick: function() { this.$emit('clicked'); } } } // Toolbar component var Toolbar = { components: {'toolbar-item': ToolbarItem}, template: ` `, data: function() { return { l10n: { stringEbookReaderActivity: '', stringPrevious: '', stringNext: '', stringLibrary: '', stringSettings: '', stringHelp: '', stringFullscreen: '' } } }, methods: { localized: function(localization) { var vm = this; Object.keys(this.l10n).forEach(function(key, index) { vm.l10n[key] = localization.get(key.substr(6)); }); }, getApp: function() { return app; } } }