ExCell v0.0.14 ExCell.Adapters.CellJS View Source

The CellJS adapter can be used to output the cells as HTML compatible with cells-js. CellsJS was written with ExCell in mind.

Tags are automatically closed when they are part of the void elements specification.

CellsJS uses two predefined attributes to parse the Javascript. First it will look for the data-cell cell attribute and match it to the defined Cell in Javascript.

Second it will take the JSON arguments set on the data-cell-params attribute and use that to initialize the cell with user defined parameters.

Link to this section Summary

Functions

The attributes function is used to auto fill the attributes for a container with the data attributes

The container renders HTML with the attributes, class name and data attributes prefilled. The HTML is rendered with Phoenix.HTML.Tag

The data_attribute function is used to build up the data attributes and set the default data-cell and data-cell-params attributes

Link to this section Functions

Link to this function

attributes(name, id, attributes \\ [], params \\ %{}) View Source

The attributes function is used to auto fill the attributes for a container with the data attributes.

The container renders HTML with the attributes, class name and data attributes prefilled. The HTML is rendered with Phoenix.HTML.Tag.

Link to this function

container(options, callback) View Source

Link to this function

data_attribute(name, id, data \\ [], params \\ %{}) View Source

The data_attribute function is used to build up the data attributes and set the default data-cell and data-cell-params attributes.