Taiga UI 5.0 is out!

Tokens CDK

GitHub

On this page

TUI_BREAKPOINT

Token to observe changes in the current breakpoint. Change the viewport of this window to see changes in breakpoint

CSSService
Mobile
Desktop small
Desktop large
Mobile

WA_IS_ANDROID

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

WA_IS_IOS

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

WA_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 ( 'dd/mm/yyyy' | 'mm/dd/yyyy' | 'yyyy/mm/dd' )
separator
single-character date's separator (dot, slash etc.)

Defaults:

  • mode = dd/mm/yyyy
  • separator = .

Components that are customizable: