Members
-
metas :Object
-
The metadatas object to describe the VEGAS JS framework.
Type:
- Object
Properties:
Name Type Description name
string The name of the library
description
string The description of the library
version
string The version of the library
license
string The license of the library
url
string The url of the library
Example
trace( core.dump( metas ) ) ;
-
valueOf
-
Returns the real value of the object.
-
valueOf
-
Returns the real value of the object.
-
version :string
-
The string expression of the current VEGAS version.
Type:
- string
Methods
-
sayHello(name, version, link)
-
Logs out the version and renderer information for this running instance of VEGAS JS. If you don't want to see this message you can run
vegas.skipHello()
before creating your application.Parameters:
Name Type Description name
string The name of the library.
version
string The version of the library.
link
string The url link of the library.
Example
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Test VEGAS</title> </head> <body> <script src="./js/vegas.js"></script> <script> if( !vegas ) { throw new Error("The VEGAS library is not found.") ; } // vegas.skipHello() ; // skip the library hello message window.onload = function() { vegas.trace( vegas.core.dump( vegas.metas ) ) ; } </script> </body> </html>
-
skipHello()
-
Skips the default 'sayHello()' invokation at runtime.
Example
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>Test VEGAS</title> </head> <body> <script src="./js/vegas.js"></script> <script> if( !vegas ) { throw new Error("The VEGAS library is not found.") ; } vegas.skipHello() ; // skip the library hello message window.onload = function() { vegas.trace( vegas.core.dump( vegas.metas ) ) ; } </script> </body> </html>
-
trace()
-
A basic
trace()
function based on the console.log method.Example
trace( 'hello world' ) ;