ForgeComponents
en

Components

j-Title

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • singleton

Configuration:

  • separator {String} a character for separation (default: -)
  • name {String} a name of the website (default: document.title)
  • empty {String} a string, which is filled, if there is no value in the path
  • plus {Boolean} adds a default title as a plus phrase (default: true)

Methods:

  • component.rename(value)

Use it with <ui-component name="title">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Pavol Danko. Source: the Componentator components repository, MIT license.

example.html
Title has been changed with the value defined in the <code>common.name</code>.

<ui-component name="title" path="common.name"></ui-component>

<script>
	var common = { name: 'Page name' };
</script>