axiom-0.4.4: Web EDSL for running in browsers and server nodes using transient

Safe HaskellNone
LanguageHaskell2010

GHCJS.HPlay.Cell

Description

 

Synopsis

Documentation

data Cell a Source #

Constructors

Cell 

Fields

Instances

Attributable (Cell a) Source # 

Methods

(!) :: Cell a -> Attribute -> Cell a #

boxCell :: (Show a, Read a, Typeable a) => ElemID -> Cell a Source #

creates (but not instantiates) a input box cell with polimorphic value, identified by a string. the cell has a getter and a setter. To instantiate it us his method mk

bcell :: (Show a, Read a, Typeable a) => TransIO (Cell a) Source #

creates (but not instantiates) an input box that has a setter and a getter. To instantiate it us his method mk

(.=) :: MonadIO m => Cell a -> a -> m () infixr 0 Source #

Cell assignment using the cell setter

get :: Cell x -> TransIO x Source #

mkscell :: JSString -> Maybe Double -> Expr Double -> Widget Double Source #

make a spreadsheet cell. a spreadsheet cell is an input-output box that takes input values from the user, has an expression associated and display the result value after executing calc

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit

scell :: JSString -> Expr Double -> Cell Double Source #

gcell :: JSString -> Widget Double Source #

within a mkscell formula, gcell get the the value of another cell using his name.

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit

calc :: Widget () Source #

executes the spreadsheet adjusting the vaules of the cells created with mkscell and solving loops

see http://tryplayg.herokuapp.com/try/spreadsheet.hs/edit