1. Home
  2. /
  3. Quasar-framework
  4. /
  5. Quasar Counter with Input Step

Quasar Counter with Input Step - Quasar-framework Typing CST Test

Loading…

Quasar Counter with Input Step — Quasar-framework Code

Increment or decrement counter by a custom input step.

<template>
<q-page class="flex flex-center">
  <div class="text-center">
    <h2>{{ count }}</h2>
    <q-input v-model.number='step' type='number' label='Step' class='q-mb-md'/>
    <q-btn color="primary" @click="increment">+</q-btn>
    <q-btn color="negative" @click="decrement">-</q-btn>
    <q-btn color="secondary" @click="reset">Reset</q-btn>
  </div>
</q-page>
</template>
<script setup>
import { ref } from 'vue';
const count = ref(0);
const step = ref(1);
const increment = ()=>count.value+=step.value;
const decrement = ()=>count.value-=step.value;
const reset = ()=>count.value=0;
</script>

Quasar-framework Language Guide

Quasar Framework is a Vue.js-based framework that allows developers to build high-performance, responsive web apps, mobile apps (via Cordova/Capacitor), and desktop apps (via Electron) using a single codebase.

Primary Use Cases

  • ▸Vue.js web applications (SPA and SSR)
  • ▸Progressive Web Apps (PWA)
  • ▸Mobile apps via Cordova or Capacitor
  • ▸Desktop apps via Electron
  • ▸Cross-platform apps from a single codebase

Notable Features

  • ▸Prebuilt Vue components
  • ▸Responsive grid and layout system
  • ▸Multi-platform support (Web, Mobile, Desktop)
  • ▸Themeable design with light/dark modes
  • ▸CLI tools for scaffolding and building apps

Origin & Creator

Created by Razvan Stoenescu in 2015 to enable multi-platform app development with Vue.js.

Industrial Note

Quasar is widely used for enterprise dashboards, mobile hybrid apps, PWAs, and Electron-based desktop applications built with Vue.js.

More Quasar-framework Typing Exercises

Quasar Counter ExampleQuasar Counter Card LayoutQuasar Floating CounterQuasar Counter with ToolbarQuasar Counter with Card GridQuasar Counter with DialogQuasar Counter with Toggle ThemeQuasar Counter with SliderQuasar Counter with Badge

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher