DruxtFieldTextSummaryOrTrimmed
DruxtFieldTextSummaryOrTrimmed
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 summary, or the value trimmed to the configured length.
See: /modules/entity/deprecations
DruxtFieldTextSummaryOrTrimmed- instance
- .format(item) ⇒
string
- .format(item) ⇒
- static
- .computed
- .trimLength :
integer
- .trimLength :
- .computed
- instance
.format(item) ⇒ string
Formats the item output.
Kind: instance method of DruxtFieldTextSummaryOrTrimmed
Returns: string - The item's summary, or the value trimmed to the trim length.
| Param | Type | Description |
|---|---|---|
| item | object | The field item. |
.computed
Kind: static property of DruxtFieldTextSummaryOrTrimmed
.trimLength : integer
Trim length.
Kind: static property of computed
Default: 600