Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Include Page
sneak peek warning
sneak peek warning
{div:class=} h1.
Wiki Markup
Div
classapi-page

fluid.computeNickName(typeName)

{section} {column:width=70%} Compute a

Section
Column
width70%

Compute a "nickname"

given

a

fully

qualified

typename,

by

returning

the

last

path

segment.

{

Code Block
:javascript|borderStyle=none|bgColor=white}
javascript
bgColorwhite
borderStylenone
javascript

fluid.computeNickName(typeName);
{code} *

File

name:

* {{

FileName.js

}} h2. Parameters {span:class=

Parameters

Span
classborderless-table

} |*{{typeName}}*|

typeName

(Type)

description | {span} h2. Return Value {span:class=borderless-table} |*String*| The last path segment of the specified {{typeName}} | {span} {column} {column:width=5%} {column} {column} h3. See Also {column} {section} ---- h3. Examples {code:javascript}

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");
{code}

In

this

example,

{{

shortName

}}

would

have

a

value

of

"uiOptions."

{code:javascript}

Code Block
javascript
javascript

var nick = fluid.computeNickName("cspace.autocomplete.popup");
{code}

In

this

example,

{{

nick

}}

would

have

a

value

of

"popup."

{div}