Top

mixin Node-Ui

smx.Ui. Node-Ui

Extends Node with UserInterface methods

Methods

ui(key, [type])

  • static

Gets an user interface asset by key and type

Parameters
  • key {String}
  • [type="screen"] {String}
Example
<!-- language: lang-xml -->
<page ui-template="tmpl/page.html">

<!-- language: lang-js -->
page.ui('template');
//-> "tmpl/page.html"

//<page ui-screen-template="tmpl/page-screen.html" ui-print-template="tmpl/page-print.html">
page.ui('template','print');
//-> "tmpl/page-print.html"
page.ui('template','screen');
//-> "tmpl/page-screen.html"
page.ui('template');
//-> "tmpl/page-screen.html"