How to use the metal-soy.getTemplate function in metal-soy

To help you get started, we’ve selected a few metal-soy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiferayCloud / marble / packages / marble-input-matrix / src / InputMatrix.soy.js View on Github external
// Please don't edit this file by hand.

/**
 * @fileoverview Templates in namespace InputMatrix.
 * @public
 */

goog.module('InputMatrix.incrementaldom');

goog.require('goog.soy.data.SanitizedContent');
var incrementalDom = goog.require('incrementaldom');
goog.require('soy');
goog.require('soy.asserts');
var soyIdom = goog.require('soy.idom');

var $templateAlias1 = Soy.getTemplate('Input.incrementaldom', 'render');


/**
 * @param {{
 *  currentFields_: (?),
 *  elementClasses: (?),
 *  fieldsConfig: (?),
 *  handleInput_: (?),
 *  closeButtonHtml: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
 *  hideCloseButtons: (boolean|null|undefined)
 * }} opt_data
 * @param {Object=} opt_ijData
 * @param {Object=} opt_ijData_deprecated
 * @return {void}
 * @suppress {checkTypes}
 */
github LiferayCloud / marble / packages / marble-toast / src / Toast.soy.js View on Github external
var soydata = goog.require('soydata');
// This file was automatically generated from Toast.soy.
// Please don't edit this file by hand.

/**
 * @fileoverview Templates in namespace Toast.
 * @public
 */

goog.module('Toast.incrementaldom');

var incrementalDom = goog.require('incrementaldom');
goog.require('soy.asserts');
var soyIdom = goog.require('soy.idom');

var $templateAlias1 = Soy.getTemplate('Spinner.incrementaldom', 'render');


/**
 * @param {{
 *  body: (function()|null|undefined),
 *  closeButton: (?),
 *  closeButtonHtml: (function()|null|undefined),
 *  elementClasses: (?),
 *  spinner: (?),
 *  spinnerClasses: (?),
 *  spinnerDone: (?)
 * }} opt_data
 * @param {Object=} opt_ijData
 * @param {Object=} opt_ijData_deprecated
 * @return {void}
 * @suppress {checkTypes}
github LiferayCloud / marble / packages / marble-button / src / Button.soy.js View on Github external
// This file was automatically generated from Button.soy.
// Please don't edit this file by hand.

/**
 * @fileoverview Templates in namespace Button.
 * @public
 */

goog.module('Button.incrementaldom');

goog.require('goog.soy.data.SanitizedContent');
var incrementalDom = goog.require('incrementaldom');
goog.require('soy.asserts');
var soyIdom = goog.require('soy.idom');

var $templateAlias1 = Soy.getTemplate('Spinner.incrementaldom', 'render');


/**
 * @param {{
 *  block: (boolean|null|undefined),
 *  disabled: (boolean|null|undefined),
 *  elementClasses: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  focusTabIndex: (boolean|null|undefined),
 *  format: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  href: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  icon: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  iconAlignment: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  id: (!goog.soy.data.SanitizedContent|null|string|undefined),
 *  label: (!goog.soy.data.SanitizedContent|function()|null|string|undefined),
 *  loading: (boolean|null|undefined),
 *  name: (!goog.soy.data.SanitizedContent|null|string|undefined),
github LiferayCloud / marble / packages / marble-select / src / Select.soy.js View on Github external
// This file was automatically generated from Select.soy.
// Please don't edit this file by hand.

/**
 * @fileoverview Templates in namespace Select.
 * @public
 */

goog.module('Select.incrementaldom');

goog.require('goog.soy.data.SanitizedContent');
var incrementalDom = goog.require('incrementaldom');
goog.require('soy.asserts');
var soyIdom = goog.require('soy.idom');

var $templateAlias1 = Soy.getTemplate('Dropdown.incrementaldom', 'render');


/**
 * @param {{
 *  arrowClass: (?),
 *  disabled: (?),
 *  buttonClass: (?),
 *  elementClasses: (?),
 *  expanded_: (?),
 *  handleDropdownStateSynced_: (?),
 *  handleItemClick_: (?),
 *  handleItemKeyDown_: (?),
 *  hiddenInputName: (?),
 *  items: (?),
 *  values: (?),
 *  selectedIndex: (?),
github metal / metal-devtools / src / soy / ParentSoy.soy.js View on Github external
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
/** @suppress {extraRequire} */
goog.require('goog.string');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('ChildSoy.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div', null, null,
      'style', 'padding-left: 16px;');
    itext('Parent:');
    ie_open('button', null, null,
        'onClick', 'addChild');
      itext('Add a Child!');
github metal / metal-devtools / src / soy / ChildSoy.soy.js View on Github external
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
/** @suppress {extraRequire} */
goog.require('goog.string');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('ParentSoy.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div', null, null,
      'style', 'padding-left:32px');
    itext('Child #');
    var dyn0 = opt_data.index;
    if (typeof dyn0 == 'function') dyn0(); else if (dyn0 != null) itext(dyn0);
    itext(':');
github metal / metal-devtools / src / soy / AppSoy.soy.js View on Github external
/** @suppress {extraRequire} */
goog.require('goog.i18n.bidi');
/** @suppress {extraRequire} */
goog.require('goog.asserts');
/** @suppress {extraRequire} */
goog.require('goog.string');
var IncrementalDom = goog.require('incrementaldom');
var ie_open = IncrementalDom.elementOpen;
var ie_close = IncrementalDom.elementClose;
var ie_void = IncrementalDom.elementVoid;
var ie_open_start = IncrementalDom.elementOpenStart;
var ie_open_end = IncrementalDom.elementOpenEnd;
var itext = IncrementalDom.text;
var iattr = IncrementalDom.attr;

var $templateAlias1 = Soy.getTemplate('ParentSoy.incrementaldom', 'render');


/**
 * @param {Object=} opt_data
 * @param {(null|undefined)=} opt_ignored
 * @param {Object=} opt_ijData
 * @return {void}
 * @suppress {checkTypes}
 */
function $render(opt_data, opt_ignored, opt_ijData) {
  ie_open('div');
    itext('Go to:');
    ie_open('a', null, null,
        'href', '/metal-devtools/jsx.html');
      itext('JSX example');
    ie_close('a');

metal-soy

A soy templates renderer to be used with Metal.js's Component class

BSD
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis