Preparing search index...
The search index is not available
TESSA Web API
TESSA Web API
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
>
;
setSessionInfo
(
response
:
CardNewResponse
,
session
:
ISession
,
)
:
Promise
<
boolean
>
;
}
Implemented by
CardNewStrategy
Index
Methods
create
Response
create
Section
Rows
fill
Entry
Fields
set
Session
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
Session
Info
setSessionInfo
(
response
:
CardNewResponse
,
session
:
ISession
)
:
Promise
<
boolean
>
Parameters
response
:
CardNewResponse
session
:
ISession
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
Session
Info
TESSA Web API
Loading...
Стратегия создания карточки.