Files
2020-02-16 19:40:21 -08:00

51 lines
1.2 KiB
Plaintext

chui/template
var/chui/window/winder
New(var/window)
winder = window
proc/SetTemplate( var/code )
throw EXCEPTION( "Method stub: SetCode" )
proc/CallAction( var/ref, var/type, var/client/cli )
proc/Generate()
proc/OnRequest( var/method, var/list/data )
return null
/*
/bysql/value/function/chui
var/chui/template/bysql/tmpl
New( chui/template/bysql/template )
src.tmpl = template
proc/Call()
//fart
Invoke( var/list/bysql/value/argz )
Call( arglist( argz ) )//utility
addButton/Call( bysql/value/label, bysql/value/callback, bysql/value/data )
if( !label || !callback || label.type != "TEXT" || callback.type != "FUNCTION" )
throw EXCEPTION( "Expected TEXT, FUNCTION!" )
var/id = num2text( tmpl.id++ )
tmpl.rendered += tmpl.winder.theme.generateButton( id, label )
tmpl.hook( id, callback, data )
chui/template/bysql
var/bysql/engine/template
var/bysql/closure/closure
var/id = 0
var/list/hooks
proc/hook( var/id, var/bysql/value/function/func, var/bysql/value/data )
hooks[ id ] = list( func, data )
var/rendered = ""
New(var/chui/window/window)
template = new
template.LoadLibs( "chui", "chui", src )
..()
SetTemplate( var/code )
closure = template.LoadString( code )
*/