mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4152] Updated folder structure of core docs (#4415)
* [ADF-4152] Moved core library docs into subfolders * [ADF-4152] Moved core library docs into subfolders * [ADF-4152] Manual fixes to core doc file links * [ADF-4152] Further automatic + manual link tidying
This commit is contained in:
committed by
Eugenio Romano
parent
285e56e9fb
commit
5fc05da7aa
32
docs/core/pipes/format-space.pipe.md
Normal file
32
docs/core/pipes/format-space.pipe.md
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
Title: Format Space pipe
|
||||
Added: v3.0.0
|
||||
Status: Active
|
||||
Last reviewed: 2018-11-27
|
||||
---
|
||||
|
||||
# [Format Space pipe](../../../lib/core/pipes/format-space.pipe.ts "Defined in format-space.pipe.ts")
|
||||
|
||||
Replaces all the white space in a string with a supplied character.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
<!-- {% raw %} -->
|
||||
|
||||
```HTML
|
||||
<div [id]="'CHECK MY ID' | formatSpace">
|
||||
BATTLESTAR GALACTICA
|
||||
</div>
|
||||
```
|
||||
|
||||
<!-- {% endraw %} -->
|
||||
|
||||
## Details
|
||||
|
||||
The pipe replaces each run of whitespace characters in the string with a single character
|
||||
(which is the underscore by default) and transforms the string to lowercase (eg, `test a pipe`
|
||||
becomes `test_a_pipe`).
|
||||
|
||||
You can specify a different replacement character by passing it as a pipe parameter.
|
||||
You can also pass `false` to the `lowercase` parameter to skip the conversion to lowercase
|
||||
and just replace the whitespace.
|
Reference in New Issue
Block a user