Sha256: 67d9af8493132f9afc8d00ae82cba31d645e734bee2949194a29258078ed9aab
Contents?: true
Size: 380 Bytes
Versions: 45
Compression:
Stored size: 380 Bytes
Contents
import { Controller } from '@hotwired/stimulus' import URI from 'urijs' export default class extends Controller { static targets = ['cards'] updateCards(event) { this.cardsTargets.forEach((frame) => { // Add date param to the existing frame.src frame.src = new URI(frame.src).setQuery('global_range[date]', event.target.dataset.days).toString() }) } }
Version data entries
45 entries across 45 versions & 1 rubygems