Skip to main content

module salix::ace::Demo

rascal-0.40.17
salix-contrib-0.2.7

Usage

import salix::ace::Demo;

Source code

http://github.com/usethesource/salix-contrib/src/main/rascal/salix/ace/Demo.rsc

Dependencies

import salix::ace::Editor;
import salix::App;
import salix::Core;
import salix::HTML;
import salix::Index;
import String;
import IO;
import util::Math;

alias Model

tuple[bool visible, str code]

function init

Model init()

function aceApp

SalixApp[Model] aceApp(str id = "ace")

function aceWebApp

App[Model] aceWebApp()

data Msg

data Msg  
= changeIt()
| textUpdated()
| showHide()
| editorChange(map[str,value] delta)
;

function update

Model update(Msg msg, Model m)

function view

void view(Model m)