TESSA Web API
Preparing search index...
Platform.Cards.Service
ICardNewStrategy
Interface ICardNewStrategy
Стратегия создания карточки.
interface
ICardNewStrategy
{
createResponse
(
context
:
ICardNewStrategyContext
,
)
:
Promise
<
CardNewResponse
>
;
createSectionRows
(
context
:
ICardNewStrategyContext
,
)
:
Promise
<
StorageMap
<
CardRow
,
IStorage
>
>
;
fillEntryFields
(
section
:
CardSection
,
sectionMetadata
:
ICardMetadataSection
,
mode
:
CardNewMode
,
)
:
Promise
<
void
>
;
setUserInfo
(
response
:
CardNewResponse
,
user
:
IUser
)
:
Promise
<
boolean
>
;
}
Implemented by
CardNewStrategy
Index
Methods
create
Response
create
Section
Rows
fill
Entry
Fields
set
User
Info
Methods
create
Response
createResponse
(
context
:
ICardNewStrategyContext
)
:
Promise
<
CardNewResponse
>
Parameters
context
:
ICardNewStrategyContext
Returns
Promise
<
CardNewResponse
>
create
Section
Rows
createSectionRows
(
context
:
ICardNewStrategyContext
,
)
:
Promise
<
StorageMap
<
CardRow
,
IStorage
>
>
Parameters
context
:
ICardNewStrategyContext
Returns
Promise
<
StorageMap
<
CardRow
,
IStorage
>
>
fill
Entry
Fields
fillEntryFields
(
section
:
CardSection
,
sectionMetadata
:
ICardMetadataSection
,
mode
:
CardNewMode
,
)
:
Promise
<
void
>
Parameters
section
:
CardSection
sectionMetadata
:
ICardMetadataSection
mode
:
CardNewMode
Returns
Promise
<
void
>
set
User
Info
setUserInfo
(
response
:
CardNewResponse
,
user
:
IUser
)
:
Promise
<
boolean
>
Parameters
response
:
CardNewResponse
user
:
IUser
Returns
Promise
<
boolean
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
Response
create
Section
Rows
fill
Entry
Fields
set
User
Info
TESSA Web API
Loading...
Стратегия создания карточки.