Extends
Methods
FindDataHolders(p_data, p_resultsopt)
TODO // Replace with Filter
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_data |
* | |||
p_results |
array |
<optional> |
null
|
FindFirstByOptionValue(p_key, p_value)
TODO // Replace with Filter
Parameters:
Name | Type | Description |
---|---|---|
p_key |
string | |
p_value |
* |
FindFirstDataByStringID(p_stringID)
TODO // Replace with Filter
Parameters:
Name | Type | Description |
---|---|---|
p_stringID |
string |
FindFirstDataHolder(p_data)
TODO // Replace with Filter
Parameters:
Name | Type | Description |
---|---|---|
p_data |
* |
Members
autoSort :boolean
TODO
defaultSortFunc :function
TODO
Methods
Sort(p_options)
Sort this Catalog based on sorting options. Format : { id:'id to look for and test (optional)', fn:'sorting function' }. Triggers a 'SORTED' signal if the Catalog has been effectively sorted.
Parameters:
Name | Type | Default | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
p_options |
object |
null
|
Optional sorting options Properties
|
This section list the main methods used to watch/unwatch signals on this object. For more info on signals, see signals
Methods
Unwatch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
Watch(p_signal, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
WatchOnce(p_signalId, p_fn, p_listener) → {common.pool.DisposableObjectEx}
- Inherited From:
(p_signal, …args)
_Broadcast- Inherited From:
Methods
()
_Init- Inherited From:
()
_PostInit- Inherited From:
Methods
(p_func)
_Bind- Inherited From:
Members
:boolean
isReleasing- Inherited From:
Methods
Release()
- Inherited From:
()
_CleanUp- Inherited From:
Members
autoRelease :boolean
- Inherited From:
commandList :actions.Command
- Inherited From:
:number
countTODO
data :core.data.DataBlock
- Inherited From:
dataBound :boolean
- Inherited From:
expanded :boolean
TODO
:boolean
isDir- Inherited From:
name :string
- Inherited From:
optionHandler :common.helpers.OptionsHandler
- Inherited From:
options :object
- Inherited From:
parent :data.core.catalog.Catalog
- Inherited From:
path :string
- Inherited From:
primaryCommand :actions.Command
- Inherited From:
secondaryCommand :actions.Command
- Inherited From:
Methods
Add(p_item) → {data.core.CatalogItem|data.core.Catalog}
Add the specified item to this catalog
Parameters:
Name | Type | Description |
---|---|---|
p_item |
data.core.CatalogItem | data.core.Catalog |
AddCommand(p_cmd)
- Inherited From:
AppendOptions(p_options)
- Inherited From:
At(p_index) → {data.core.catalog.CatalogItem|data.core.catalog.Catalog}
TODOReturns the item at the specified position in this catalog.
Parameters:
Name | Type | Description |
---|---|---|
p_index |
number | the item's index. |
Clear()
Clears the catalog and releases all items
ForEach(p_fn, p_thisArgopt, p_reverseopt)
Loops through all items in Catalog. Callback should match the signature : (item, index)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_fn |
function | |||
p_thisArg |
object |
<optional> |
null
|
|
p_reverse |
boolean |
<optional> |
false
|
GetOption(p_id, p_fallback)
- Inherited From:
GetOrCreateCatalog(p_options) → {data.core.catalog.Catalog}
Gets or create a catalog inside this one using the specified options
Parameters:
Name | Type | Description |
---|---|---|
p_options |
CatalogItemOptions |
GetOrSetOption(p_id, p_fallback)
- Inherited From:
PreventRelease()
- Inherited From:
Register(p_itemInfos) → {data.core.catalog.CatalogItem|data.core.catalog.Catalog}
Create a catalog item given the specified item infos.
Parameters:
Name | Type | Description |
---|---|---|
p_itemInfos |
CatalogItemOptions |
Remove(p_item)
Removes the specified item from this catalog
Parameters:
Name | Type | Description |
---|---|---|
p_item |
data.core.CatalogItem |
Resolve(p_path, p_fromopt)
Resolve the specified path and return the item if it exists.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_path |
string | array | |||
p_from |
number |
<optional> |
0
|
SetOption(p_id, p_value)
- Inherited From:
(p_stringopt, p_depthopt)
StructToStringTODO
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_string |
string |
<optional> |
null
|
|
p_depth |
number |
<optional> |
null
|
Members
:number
rootDistance- Inherited From:
Methods
(p_newData, p_oldData)
_OnDataChanged- Inherited From:
(p_data)
_OnDataReleased- Inherited From:
(p_item)
_OnItemAddedCallback when an item has been added to the catalog
Parameters:
Name | Type | Description |
---|---|---|
p_item |
data.core.CatalogItem | data.core.Catalog |
(p_item)
_OnItemReleasedCallback when an item has been released
Parameters:
Name | Type | Description |
---|---|---|
p_item |
data.core.CatalogItem | data.core.Catalog |
(p_item)
_OnItemRemovedCallback when an item is removed from this catalog
Parameters:
Name | Type | Description |
---|---|---|
p_item |
data.core.CatalogItem |
(p_options)
_OnOptionsUpdated- Inherited From:
(p_options)
_OnOptionsWillUpdateTODO
Parameters:
Name | Type | Description |
---|---|---|
p_options |
object |
()
_OnUpdate- Inherited From:
(p_rootOptions, p_contentopt, p_parentopt) → {data.core.Catalog}
CreateFromCreates a Catalog from a mockup object.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_rootOptions |
CatalogItemOptions | |||
p_content |
* |
<optional> |
null
|
|
p_parent |
* |
<optional> |
null
|
(p_itemOptions, p_forceCatalogopt) → {constructor}
GetItemClassFind a suitable item class based on provided options
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
p_itemOptions |
object | |||
p_forceCatalog |
boolean |
<optional> |
false
|
(p_path)
PathInfosParse a string to a catalog-friendly format
Parameters:
Name | Type | Description |
---|---|---|
p_path |
string |