Catalog Columns

<.editor>

ConnieUI.Columns

Edit view


Columns

Drag to change the order the table shows them in.

Beneficiary
Account number
Amount

HEEx
<ConnieUI.Columns.editor name="Payment file" id="catalog-columns-editor" draft={@draft} view={@view} target={nil} />

Controls

:string

the name as it stands, which the host keeps: every tick and drag redraws this

:string
:string

an example view name, in the host's own terms

Set by the example

draft view target on_close

Docs

The view editor, as a slideout so the table stays readable behind it. It edits a draft rather than the table: a view is the account's, so nothing changes for anybody until it is saved, and the host is free to ask first.
Attribute Type Default Description
draft * {:struct, ConnieUI.Columns}
view :map nil
the view being edited, or nil for a new one
name :string ""
the name as it stands, which the host keeps: every tick and drag redraws this
target * :any
id * :string
on_close {:struct, Phoenix.LiveView.JS} nil
placeholder :string nil
an example view name, in the host's own terms