Tokens CDK

Examples

TUI_DIALOGS

#

A stream of modal dialogs displayed by TuiDialogsComponent .

You can create your own service extending TuiPopoverService to easily add another modal dialogs behavior to your application.

TUI_IS_ANDROID

#

A token with a factory. It takes TUI_IS_MOBILE and TUI_IS_IOS , returns true if the device is mobile but not iOS (technically includes Windows Phone, Blackberry etc.)

TUI_IS_IOS

#

A token with a factory. It takes TUI_IS_MOBILE and if it is true detects iOS devices with a regex

TUI_IS_MOBILE

#

A token with a factory. It takes WA_USER_AGENT token and parses it with a complex Regex to detect users with mobile devices

TUI_NUMBER_FORMAT

#
Using TUI_NUMBER_FORMAT injection token you can customize numbers formatting.
For example: 10 500,33
Can be customized as: 10/500.33

Defaults:

  • decimalSeparator = ,
  • thousandSeparator = CHAR_NO_BREAK_SPACE
  • zeroPadding = true
  • rounding = truncate

Components that are customizable:

TUI_DATE_FORMAT

#
Using TUI_DATE_FORMAT injection token you can customize numbers formatting.
For example: 10.01.2024
Can be customized as: 2024/01/10

Description:

mode
active date format ( 'DMY' | 'MDY' | 'YMD' )
separator
single-character date's separator (dot, slash etc.)

Defaults:

  • mode = DMY
  • separator = .

Components that are customizable:

TUI_FIRST_DAY_OF_WEEK

#

Use TUI_FIRST_DAY_OF_WEEK injection token to change start day of the week (Monday by default).

    
    

This token can customize the following components: