Visualize.Chart.Builder.BoardGrid (Visualize v0.4.1)

Copy Markdown View Source

The board mode's grid (spec/14 §22.3, D-152): every cell of the board placed on the 12-column grid with its handles and its preview, or the board as it reflows below its breakpoint.

The grid is a CSS grid with the board's own arithmetic (spec/15 §1.6): 12 equal columns, rows row_height high and gap apart. BuilderHook in scope board drags a cell by its body and resizes it by a handle, and pushes the rectangle; the server places it (Visualize.Chart.Builder.Boards.place/3) or refuses it, and the next render is where the cell is.

This module compiles only when Phoenix.Component is loaded (spec/10 §1.1, D-45, D-85).

Summary

Functions

The grid of the board mode (spec/14 §22.3): <div class="vis-builder-board-grid"> holding one <article class="vis-builder-board-cell"> per cell, placed by grid-column and grid-row and carrying data-board-cell and its rectangle, with its title, its component, its preview and its three handles; or, in the narrow view, the cells stacked as Visualize.Board.arrange/2 places them below the breakpoint, with no handles.

Functions

grid(assigns)

The grid of the board mode (spec/14 §22.3): <div class="vis-builder-board-grid"> holding one <article class="vis-builder-board-cell"> per cell, placed by grid-column and grid-row and carrying data-board-cell and its rectangle, with its title, its component, its preview and its three handles; or, in the narrow view, the cells stacked as Visualize.Board.arrange/2 places them below the breakpoint, with no handles.

Attributes

  • id (:string) (required) - the grid's id.
  • mode (:map) (required) - the board mode's assigns, as the builder derives them for the open board (spec/14 §22).
  • target (:any) - the phx-target of the hook and every control. Defaults to nil.