Preparing search index...
The search index is not available
MobX RESTful
MobX RESTful
ListModel
Class ListModel<D, F>
Abstract
This basic class is a middle class, which isn't for direct using
Type Parameters
D
extends
DataObject
F
extends
Filter
<
D
>
=
Filter
<
D
>
Hierarchy (
View Summary
,
Expand
)
BaseListModel
<
D
>
ListModel
Index
Constructors
constructor
Properties
baseURI
client
index
Key
Accessors
all
Items
current
One
current
Page
downloading
filter
no
More
page
Count
page
Index
page
List
page
Size
statistic
total
Count
uploading
Methods
change
One
clear
clear
Current
clear
List
count
All
delete
One
get
All
get
List
get
One
index
Of
load
New
Page
load
Page
refresh
List
remove
One
restore
List
turn
To
update
One
create
Nested
Constructors
constructor
new
ListModel
<
D
extends
DataObject
,
F
extends
Partial
<
NewData
<
D
>
>
=
Partial
<
NewData
<
D
>
>
,
>
()
:
ListModel
<
D
,
F
>
Type Parameters
D
extends
DataObject
F
extends
Partial
<
NewData
<
D
>
>
=
Partial
<
NewData
<
D
>
>
Returns
ListModel
<
D
,
F
>
Properties
Abstract
baseURI
baseURI
:
string
Abstract
client
client
:
RESTClient
index
Key
indexKey
:
keyof
D
= 'id'
Accessors
all
Items
get
allItems
()
:
D
[]
Returns
D
[]
current
One
currentOne
:
any
current
Page
get
currentPage
()
:
D
[]
Returns
D
[]
downloading
downloading
:
any
filter
filter
:
any
no
More
get
noMore
()
:
boolean
Returns
boolean
page
Count
get
pageCount
()
:
number
Returns
number
page
Index
pageIndex
:
any
page
List
pageList
:
any
page
Size
pageSize
:
any
statistic
statistic
:
any
total
Count
totalCount
:
any
uploading
uploading
:
any
Methods
change
One
changeOne
(
data
:
Partial
<
D
>
,
id
:
IDType
,
patch
?:
boolean
)
:
void
Parameters
data
:
Partial
<
D
>
id
:
IDType
patch
:
boolean
= false
Returns
void
clear
clear
()
:
void
Returns
void
clear
Current
clearCurrent
()
:
void
Returns
void
clear
List
clearList
()
:
void
Returns
void
count
All
countAll
(
keys
:
TypeKeys
<
D
,
IndexKey
>
[]
,
filter
?:
F
,
pageSize
?:
number
,
)
:
Promise
<
Partial
<
Record
<
TypeKeys
<
D
,
IndexKey
>
,
Record
<
string
,
number
>
>
>
>
Parameters
keys
:
TypeKeys
<
D
,
IndexKey
>
[]
filter
:
F
= ...
pageSize
:
number
= ...
Returns
Promise
<
Partial
<
Record
<
TypeKeys
<
D
,
IndexKey
>
,
Record
<
string
,
number
>
>
>
>
delete
One
deleteOne
(
id
:
IDType
)
:
Promise
<
void
>
Parameters
id
:
IDType
Returns
Promise
<
void
>
get
All
getAll
(
filter
?:
F
,
pageSize
?:
number
)
:
Promise
<
D
[]
>
Parameters
filter
:
F
= ...
pageSize
:
number
= ...
Returns
Promise
<
D
[]
>
get
List
getList
(
filter
?:
F
,
pageIndex
?:
number
,
pageSize
?:
number
)
:
Promise
<
D
[]
>
Parameters
filter
:
F
= ...
pageIndex
:
number
= ...
pageSize
:
number
= ...
Returns
Promise
<
D
[]
>
get
One
getOne
(
id
:
IDType
)
:
Promise
<
D
>
Parameters
id
:
IDType
Returns
Promise
<
D
>
index
Of
indexOf
(
id
:
IDType
)
:
number
Parameters
id
:
IDType
Returns
number
Protected
load
New
Page
loadNewPage
(
pageIndex
:
number
,
pageSize
:
number
,
filter
:
F
,
)
:
Promise
<
{
pageData
:
D
[]
;
totalCount
:
number
}
>
Protected
Parameters
pageIndex
:
number
pageSize
:
number
filter
:
F
Returns
Promise
<
{
pageData
:
D
[]
;
totalCount
:
number
}
>
Protected
Abstract
load
Page
loadPage
(
pageIndex
:
number
,
pageSize
:
number
,
filter
:
F
)
:
Promise
<
PageData
<
D
>
>
Protected
Parameters
pageIndex
:
number
pageSize
:
number
filter
:
F
Returns
Promise
<
PageData
<
D
>
>
refresh
List
refreshList
()
:
Promise
<
D
[]
>
Returns
Promise
<
D
[]
>
remove
One
removeOne
(
id
:
IDType
)
:
Promise
<
void
>
Parameters
id
:
IDType
Returns
Promise
<
void
>
restore
List
restoreList
(
__namedParameters
?:
Partial
<
Pick
<
ListModel
<
D
>
,
"pageIndex"
|
"pageSize"
|
"totalCount"
|
"allItems"
,
>
,
>
,
)
:
void
Parameters
__namedParameters
:
Partial
<
Pick
<
ListModel
<
D
>
,
"pageIndex"
|
"pageSize"
|
"totalCount"
|
"allItems"
>
,
>
= {}
Returns
void
turn
To
turnTo
(
pageIndex
:
number
,
pageSize
?:
number
)
:
ListModel
<
D
,
F
>
Parameters
pageIndex
:
number
pageSize
:
number
= ...
Returns
ListModel
<
D
,
F
>
update
One
updateOne
(
data
:
Partial
<
NewData
<
D
>
>
,
id
?:
IDType
)
:
Promise
<
D
>
Parameters
data
:
Partial
<
NewData
<
D
>
>
Optional
id
:
IDType
Returns
Promise
<
D
>
Static
create
Nested
createNested
(
parentId
:
IDType
)
:
BaseListModel
<
{}
>
Parameters
parentId
:
IDType
Returns
BaseListModel
<
{}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
baseURI
client
index
Key
Accessors
all
Items
current
One
current
Page
downloading
filter
no
More
page
Count
page
Index
page
List
page
Size
statistic
total
Count
uploading
Methods
change
One
clear
clear
Current
clear
List
count
All
delete
One
get
All
get
List
get
One
index
Of
load
New
Page
load
Page
refresh
List
remove
One
restore
List
turn
To
update
One
create
Nested
MobX RESTful
BaseListModel
BaseModel
ListModel
PersistNode
PageData
PersistListMeta
PersistMeta
PersistModel
DataObject
Filter
IDType
NewData
PersistFieldMeta
RESTClient
Statistic
Buffer
destroy
persist
persistList
restore
Stream
toggle
toggleNotification
M
M
N
E
P
V
F
C
I
C
P
M
F
P
C
P
T
T
A
A
A
T
R
This basic class is a middle class, which isn't for direct using