# `Alternera.Plugin.Editor.RowErrors`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_plugin_editor/lib/alternera/plugin/editor/row_errors.ex#L1)

A step's save errors split by the row of a list they are about, for an
editor that shows each at its row (`Plugin.RowError` reads the row:
`To row 2 (…): …`, `input 3: …`, `Set value 1: …`, after at most one
`<Plugin name>: `). `TargetList` splits its To rows with it, the Set
editor its values and the Call editor its inputs.

# `capitalize`

```elixir
@spec capitalize(String.t()) :: String.t()
```

`text` with its first letter in upper case.

# `split`

```elixir
@spec split([term()] | nil, String.t(), non_neg_integer(), (String.t() -&gt; String.t())) ::
  {%{required(non_neg_integer()) =&gt; String.t()}, [term()]}
```

`errors` split by the `label` row they are about: a map of row (from 0,
below `count`) to the first reason about it, without its `<label> N
(…):`, passed through `reword` (an editor that draws its rows by names
of its own says them so) and then capitalised (a later reason about the
same row is left out), and the other messages, unchanged and in order.
A message about a row past the last stays among the others, so the
editor can show it above the list rather than lose it.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
