DruxtFieldTextTrimmed
DruxtFieldTextTrimmed
Deprecated in druxt-entity:0.16.0, removed from druxt-entity:2.0.0. Use a field wrapper component resolved by the component suggestion system instead.
Renders a formatted text field's value, trimmed to the configured length.
See: /modules/entity/deprecations
DruxtFieldTextTrimmed- instance
- .format(item) ⇒
string
- .format(item) ⇒
- static
- .computed
- .trimLength :
integer
- .trimLength :
- .computed
- instance
.format(item) ⇒ string
Formats the item output.
Kind: instance method of DruxtFieldTextTrimmed
Returns: string - The item's value, trimmed to the trim length.
| Param | Type | Description |
|---|---|---|
| item | object | The field item. |
.computed
Kind: static property of DruxtFieldTextTrimmed
.trimLength : integer
Trim length.
Kind: static property of computed
Default: 600