Timer Web

Content Type: Widget
Categories: Utility

Overview

The Timer Web widget allows Mendix developers to integrate a customizable countdown timer into their applications. You can define the duration in minutes, reset the timer using a Boolean attribute, and trigger actions (nanoflows or microflows) when the timer completes or when clicked.

This widget is useful for features like session timeouts, quiz timers, PIN verification, reminders, or any time-bound actions in your Mendix applications.

Documentation

Overview

The Timer Web widget allows Mendix developers to integrate a customizable countdown timer into their applications. You can define the duration in minutes, reset the timer using a Boolean attribute, and trigger actions (nanoflows or microflows) when the timer completes or when clicked.

This widget is useful for features like session timeouts, quiz timers, PIN verification, reminders, or any time-bound actions in your Mendix applications.

 

Features

  • Configurable Duration – Bind a numeric attribute to define timer duration (in minutes).

  • 🔄 Reset Timer – Use a Boolean attribute to reset the timer dynamically.

  • Trigger Actions – Call a nanoflow or microflow automatically when the timer completes or on user interaction.

  • 📡 Nanoflow/Microflow Argument Support – Pass context objects such as PIN or user session data.

  • 🎨 Customizable – Supports Mendix styling options for appearance.

Properties

General Tab

  • Duration in Minutes:Bind an integer attribute. This defines the countdown duration of the timer in minutes.

  • resetTimer:Bind a Boolean attribute.

    • When set to true, the timer resets.

    • Should be set back to false after reset to allow further resets.

  • On click:Action performed when the timer or button is clicked. Supported actions:

    • Call a nanoflow

    • Call a microflow

    • Show a page

  • Nanoflow:Choose the nanoflow to execute.

  • Nanoflow Arguments:Pass an object (e.g., PIN) or other values to the nanoflow.

Example Use Case

  1. PIN Verification Flow

    • Duration = Time_In_Minutes (5 minutes).

    • resetTimer = Boolean reset.

    • When the timer completes or button is clicked, nanoflow VerifyPIN is triggered with PIN object as input.

  2. Session Timeout

    • Duration = 30.

    • resetTimer = Bound to a session reset attribute.

    • On timeout → Logout nanoflow executes.

Installation

  1. Download the Timer Web widget from the Mendix Marketplace.

  2. Place it inside a Data View or Layout Grid where you need countdown functionality.

  3. Configure the properties as described.

Configuration Steps

  1. Add an Integer attribute in your entity (e.g., Time_In_Minutes).

  2. Add a Boolean attribute in your entity (e.g., reset).

  3. Drop the Timer Web widget inside a Data View bound to the entity.

  4. Configure:

    • Duration in Minutes → Time_In_Minutes.

    • resetTimer → reset.

    • On click → Select Nanoflow/Microflow.

    • Pass arguments if required (e.g., PIN object).

Limitations

  • Only supports countdown in minutes (not seconds).

  • Requires a data context (entity) for binding attributes.

Releases

Version: 1.0.0
Framework Version: 10.18.3
Release Notes: This widget is useful for features like session timeouts, quiz timers, PIN verification, reminders, or any time-bound actions in your Mendix applications.