Packages

A set of simple Surface components based on ant-design.

Current section

Files

Jump to
live_antd lib components table column.ex
Raw

lib/components/table/column.ex

defmodule LiveAntd.Components.Table.Column do
@moduledoc """
Defines a column for the parent table component.
The column instance is automatically added to the table's
`cols` slot.
"""
use Surface.Component, slot: "cols"
@doc "Column header text"
prop(label, :string, required: true)
end