@zeix/ui-element
Version:
UIElement - a HTML-first library for reactive Web Components
32 lines (16 loc) • 582 B
Markdown
[**@zeix/ui-element**](../README.md)
***
[@zeix/ui-element](../globals.md) / asString
# Function: asString()
> **asString**(`fallback?`): [`AttributeParser`](../type-aliases/AttributeParser.md)\<`string`\>
Defined in: [src/lib/parsers.ts:71](https://github.com/zeixcom/ui-element/blob/297c0e8e040b3880ad85a2bc873523a8086f09a3/src/lib/parsers.ts#L71)
Parse an attribute as a string with a fallback
## Parameters
### fallback?
`string` = `''`
fallback value
## Returns
[`AttributeParser`](../type-aliases/AttributeParser.md)\<`string`\>
parser function
## Since
0.11.0