Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Include Page
sneak peek warning
sneak peek warning
Div
classapi-page

fluid.computeNickName(typeName)

Section
Column
width70%

Compute a "nickname" given a fully qualified typename, by returning the last path segment.

Code Block
javascript
javascript
bgColorwhite
borderStylenone
fluid.computeNickName(typeName);

File name: FileName.js

Parameters

Span
classborderless-table

typeName

(Type) description

Return Value

Span
classborderless-table

String

The last path segment of the specified typeName

Column
width5%

Column

See Also


Examples

Code Block
javascript
javascript
var shortName = fluid.computeNickName("fluid.uiOptions");

In this example, shortName would have a value of "uiOptions."

Code Block
javascript
javascript
var nick = fluid.computeNickName("cspace.autocomplete.popup");

In this example, nick would have a value of "popup."
s example, shortName would have a value of "uiOptions."