Include Page |
---|
| docs:sneak peek warningdocs: |
---|
| sneak peek warning |
---|
|
Div |
---|
class | Wiki Markup |
---|
{div:class=api-page | }
h1. fluid.computeNickName(typeName) Section |
---|
Column |
---|
|
|
Compute a
{section}
{column:width=70%}
Compute a "nickname" given a fully qualified typename, by returning the last path segment.
{code
javascript | javascript | bgColor | white |
---|
borderStyle | none |
---|
:javascript|borderStyle=none|bgColor=white}
fluid.computeNickName(typeName);
{code}
*File name:* {{FileName.js
Parameters
Span |
---|
class | }}
h2. Parameters
{span:class=borderless-table
typeName
| }
|*{{typeName}}*| (Type)
description Return Value
Span |
---|
|
String | The last path segment of the specified typeName |
|
Column |
---|
|
Examples
Code Block |
---|
javascript | javascript | 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}
var shortName = fluid.computeNickName("fluid.uiOptions");
{code}
In this example, {{shortName}} would have a value of "uiOptions."
{code
:javascript
javascript | }
var nick = fluid.computeNickName("cspace.autocomplete.popup");
{code}
In this example, {{nick}} would have a value of "popup."
{div}