Docs Quickstart Figma Flowbite
1.3.0
Getting started
Customize
Components
API Reference NEW
utils / Class

Guid

This class provide an implementation of Guid used as id for flowbite-angular components.

See Also

Constructor

If value is given and if the value is a valid Guid, then return a Guid from the string ; Otherwise or if no value is given, create a Guid class without value.

Presentation
constructor(
	value?: string | undefined
): Guid;
Parameters
NameTypeDescription
value
string | undefined

Guid as string if you want to get a Guid type from string

Static Accessors

static

get empty

Function that generate an empty Guid.

Presentation
static get empty(): string;
Type

string

Static Methods

static

isValid()

Check if the provided Guid is valid.

Presentation
static isValid(str: string): boolean;
Parameters
NameTypeDescription
str
string

The Guid to check.

Returns
boolean -

true if the Guid is valid ; false otherwise.

static

newGuid()

Function that generate new Guid.

Presentation
static newGuid(): Guid;
Returns
Guid -

New Guid.

Methods

toJSON()

ToJson base method.

Presentation
toJSON(): string;
Returns
string -

Value as Json compatible string.

toString()

ToString base method.

Presentation
toString(): string;
Returns
string -

Value as string.

Flowbite

© 2019-2024 Flowbite™ is a registered trademark. All Rights Reserved.