SurfaceBulma.StaticTable (surface_bulma v0.6.1)

A static Bulma HTML table.

You can create a table by passing data to it and defining columns using the Table.Column component.

Properties

  • data :generator, required: true, root: true - The data that populates the table internal
  • expanded :boolean, default: true - The table is expanded (full-width)
  • bordered :boolean, default: false - Add borders to all the cells
  • striped :boolean, default: false - Add stripes to the table
  • class :css_class - The CSS class for the wrapping <div> element
  • row_class :fun - A function that returns a class for the item's underlying <tr> element. The function receives the item and index related to the row.

Slots

  • cols, generator_prop: :data, required: true - The columns of the table

Summary

Functions

Link to this function

render(assigns)

Callback implementation for Surface.Component.render/1.