Files
Testing/arrowchat/public/mobile/onsenui/css-components-src/previewer-src/components/platform-select.js
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

26 lines
780 B
JavaScript

export const PlatformSelect = {
props: ['platform'],
template: `
<div class="pv-platform-select">
<a class="pv-platform-select__link"
:class="{'pv-platform-select__link--active': this.platform !== 'ios' && this.platform !== 'android'}"
:href="getLocation() + '?platform=all'">All</a>
<a class="pv-platform-select__link"
:class="{'pv-platform-select__link--active': this.platform === 'ios'}"
:href="getLocation() + '?platform=ios'">iOS</a>
<a class="pv-platform-select__link"
:class="{'pv-platform-select__link--active': this.platform === 'android'}"
:href="getLocation() + '?platform=android'">Android</a>
</div>
`,
methods: {
getLocation() {
return location.pathname;
}
}
};