valErr_TextErrCol: Colour the 'text' by using the error colour

View source: R/validation_error_functions.R

valErr_TextErrColR Documentation

Colour the text by using the error colour

Description

Colour the text by using the error colour

Usage

valErr_TextErrCol(text, error, addError = TRUE)

Arguments

text

to be coloured. if not supplied, the coloured error text will be returned. If text is of class dmdScheme_validation, the function will be called with text = text$header, error = text$error

error

either level, text or colour of error (see valErr_errorLevels)

addError

if the error text should be added in the front of the text.

Value

the coloured text or error text


dmdScheme documentation built on Aug. 22, 2022, 9:06 a.m.