Show raw api
{
"functions": [
{
"name": "new",
"desc": "Constructs a new ObservableMapList",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "ObservableMapList<TKey, TValue>"
}
],
"function_type": "static",
"source": {
"line": 24,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "Push",
"desc": "Adds an entry with a dynamic key. This is great for caching things\nthat need to be looked up by key.\n\n:::tip\nIf `observeKey` emits nil then the value will be excluded from the list.\n:::",
"params": [
{
"name": "observeKey",
"desc": "",
"lua_type": "Observable<TKey>"
},
{
"name": "entry",
"desc": "",
"lua_type": "TValue"
}
],
"returns": [
{
"desc": "Cleanup object that will remove the entry",
"lua_type": "MaidTask"
}
],
"function_type": "method",
"source": {
"line": 68,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetFirstItemForKey",
"desc": "Gets the first item for the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "TValue | nil"
}
],
"function_type": "method",
"source": {
"line": 101,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetItemForKeyAtIndex",
"desc": "Gets the item for the given key at the index\n\n```\nmapList:Push(\"fruits\", \"apple\")\nmapList:Push(\"fruits\", \"orange\")\nmapList:Push(\"fruits\", \"banana\")\n\n-- Print the last item\nprint(mapList:GetItemForKeyAtIndex(\"fruits\", -1)) ==> banana\n```",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
},
{
"name": "index",
"desc": "",
"lua_type": "number"
}
],
"returns": [
{
"desc": "",
"lua_type": "TValue | nil"
}
],
"function_type": "method",
"source": {
"line": 128,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetListCount",
"desc": "Gets how many lists exist",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "number"
}
],
"function_type": "method",
"source": {
"line": 145,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveListCount",
"desc": "Observes how many lists exist",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "Observable<number>"
}
],
"function_type": "method",
"source": {
"line": 154,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetAtListIndex",
"desc": "Gets the current value at the list index",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
},
{
"name": "index",
"desc": "",
"lua_type": "number"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<TValue?>"
}
],
"function_type": "method",
"source": {
"line": 165,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveAtListIndex",
"desc": "Observes the current value at the index",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
},
{
"name": "index",
"desc": "",
"lua_type": "number"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<TValue?>"
}
],
"function_type": "method",
"source": {
"line": 184,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetKeyList",
"desc": "Gets a list of all keys",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "{ TKey }"
}
],
"function_type": "method",
"source": {
"line": 204,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveKeyList",
"desc": "Observes the list of all keys.",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "Observable<{ TKey }>"
}
],
"function_type": "method",
"source": {
"line": 212,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveKeysBrio",
"desc": "Observes all keys in the map",
"params": [],
"returns": [
{
"desc": "",
"lua_type": "Observable<Brio<TKey>>"
}
],
"function_type": "method",
"source": {
"line": 220,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveAtListIndexBrio",
"desc": "Observes the current value at the index",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
},
{
"name": "index",
"desc": "",
"lua_type": "number"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<Brio<TValue>>"
}
],
"function_type": "method",
"source": {
"line": 231,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveItemsForKeyBrio",
"desc": "Observes all items at the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<Brio<TValue>>"
}
],
"function_type": "method",
"source": {
"line": 252,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetListFromKey",
"desc": "Gets a list for a given key.",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "{ TValue }"
}
],
"function_type": "method",
"source": {
"line": 272,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetListForKey",
"desc": "Gets the observable list for the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "ObservableList<TValue>"
}
],
"function_type": "method",
"source": {
"line": 288,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "GetListOfValuesAtListIndex",
"desc": "Gets a list of all of the entries at the given index, if it exists",
"params": [
{
"name": "index",
"desc": "",
"lua_type": "number"
}
],
"returns": [
{
"desc": "",
"lua_type": "ObservableList<TValue>"
}
],
"function_type": "method",
"source": {
"line": 300,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveList",
"desc": "Observes the observable list for the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<ObservableList<TValue>>"
}
],
"function_type": "method",
"source": {
"line": 321,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveListBrio",
"desc": "Observes the observable list for the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<Brio<ObservableList<TValue>>>"
}
],
"function_type": "method",
"source": {
"line": 333,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "ObserveCountForKey",
"desc": "Observes the number of entries for the given key",
"params": [
{
"name": "key",
"desc": "",
"lua_type": "TKey"
}
],
"returns": [
{
"desc": "",
"lua_type": "Observable<number>"
}
],
"function_type": "method",
"source": {
"line": 345,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
},
{
"name": "Destroy",
"desc": "Cleans up the ObservableMapList and sets the metatable to nil.",
"params": [],
"returns": [],
"function_type": "method",
"source": {
"line": 385,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
}
],
"properties": [],
"types": [],
"name": "ObservableMapList",
"desc": "Holds a map of lists. This is good for list-based",
"source": {
"line": 6,
"path": "src/observablecollection/src/Shared/ObservableMapList.lua"
}
}