CssClassSwitcher

Content Type: Widget
Categories: User Interface

Overview

This widget adds CSS classes determined by a microflow (or nanoflow) to elements determined by CSS selector. It's useful in applications that need to determine styling based on arbitrary logic and change it dynamically in runtime: An example may be a multi-tenant app with different styling for different brands, depending on settings of the current user. Another use case would be to allow your users to choose between multiple theme or skins for your application, depending on their preferences. You can also improve accessibility by switching to styling with e.g. bigger fonts and cleaner layout with less distractions for users with visual or cognitive impairments.

Documentation

Description

[Provide an extended description of your content]

Typical usage scenario

[Describe typical usage scenario(s)]

Features and limitations

[Describe the features / limitations of your content]

Dependencies [optional]

  • [Mendix modeler version]
  • [Other dependencies: E.g. modules, jars, images, styles etc.][

Installation [optional]

[Describe the necessary steps to install the content]

Configuration [optional]

[Describe the necessary steps to configure the content]

Known bugs [optional]

[Describe the known bugs]

Frequently Asked Questions [optional]

  • Q:
  • A:

Releases

Version: 1.1.3
Framework Version: 7.23.4
Release Notes: Test/sample app for Mendix 8 added.
Version: 1.1.2
Framework Version: 7.23.4
Release Notes: Docs updated + test/sample app replaced by a beautiful one :)
Version: 1.1.1
Framework Version: 7.23.4
Release Notes: Cross-browser fix (Internet Explorer issue fixed).
Version: 1.1.0
Framework Version: 7.23.4
Release Notes: Nanoflows support added (now you can also a microflow OR A NANOFLOW to determine the CSS class)
Version: 1.0.1
Framework Version: 7.23.4
Release Notes: Changed used Client API due to deprecations in Mendix 8.0: mx.ui.action => mx.data.action https://docs.mendix.com/releasenotes/studio-pro/8.0#deprecations
Version: 1.0.0
Framework Version: 7.23.4
Release Notes: Initial release