Skip to content

This widget adds a user-defined string to your page, taking object attributes as input parameters.

License

Notifications You must be signed in to change notification settings

akileng56/FormatString

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FormatString

This widget adds a user-defined string to your page, taking object attributes as input parameters.

Contributing

For more information on contributing to this repository visit [Contributing to a GitHub repository] (https://world.mendix.com/display/howto50/Contributing+to+a+GitHub+repository)

Typical usage scenario

Displaying multiple attributes as a single string

Installation

Import the widget to your project and add the Format String to a dataview on a page. Configure the properties to determine how the widget will behave in your application.

Features and limitations

  • Supports multiple attributes
  • Attributes can be retrieved one-deep
  • Setting the same attribute multiple times using different date/time formatting is not supported.

Properties

  • Display as - Lets you set the HTML element type to be rendered,
    or read-only . If rendered as HTML, the Display string is interpreted as literal HTML.
  • On click - A microflow that is to be executed on click.
  • Display string - The template string that should be displayed.
  • Empty value replacement - This string is used for the replace whenever the attribute is found empty.
  • Attributes - The list of attributes and their indentiefiers to be used in the Display string property of this widget.
  • Datetime format - Renders datetime attribute as date and/or time. Relative will render the date relative to current datetime.
  • Date pattern - Overrides the date part with the dojo/data/locale pattern specified. (e.g MMMM d, 'in the year' yyyy GGGG)
  • Time pattern - Overrides the time part with the dojo/data/locale pattern specified. (e.g h:m:s.SSS a z)
  • Decimal Precision - The number of decimals to display.
  • Group Digits - Displays separator character in case of a number datatype

About

This widget adds a user-defined string to your page, taking object attributes as input parameters.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%