View Source ExCell.Adapters.CellJS (ExCell v0.1.1)
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.
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.
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.