

Last date modified: July 02 2025
Card instance
readonly
active:boolean
Indicates whether the card is currently active. Cards in a dock will be active when the associated tab is active. Cards in a frame are always active.
activeFlag:
boolean
Indicates whether card is currently active or not
readonly
applicationWindow:IApplicationWindow
Reference to the application window the card is currently in
Cards can be moved to layouts in various different browser windows, but the code defined in the card callback methods will often be executing in the context of the IWindowService.main window. This property should be used to determine which window the card is currently in. This is especially important when performing actions such as querying the DOM. Note that when a card has not been placed in a layout, the card framework cannot know which window it will be added to. In these situations, this property will be undefined.
readonly
autoRestore:boolean
Indicates whether card is set to auto restore or not
readonly
optional
bottomToolbar:IToolbar
The card's bottom toolbar, if it has one.
readonly
cardError:ICardError
The card error of any error that occurred while handling the card
readonly
config:IReadonlyCardConfig
The card configuration
readonly
optional
defaultHeight:number
The default height for the card (as rem units)
readonly
optional
defaultWidth:number
The default width for the card (as rem units)
readonly
dockSkeletonClassName:string
Class name to be used to apply to the skeleton to the cards in this dock.
readonly
optional
element:HTMLElement
The root HTML element of the card
readonly
enabled:boolean
Indicates whether the card is enabled.
readonly
optional
errorString:string
A description of any error that occurred while handling the card
readonly
optional
frame:HTMLIFrameElement
The HTML element containing the IFrame of the card
readonly
hasError:boolean
true if an error has occurred while handling the card
readonly
optional
height:number
The current height for the card (as pixels)
readonly
icon:IReadonlyCardIcon
readonly
id:string
The unique identifier from ICardConfig.id (must not be shared by any default or custom card)
readonly
optional
instance:ICardInstance
The instance data associated with the card
readonly
instanceId:string
A unique id for this card instance (combination of ICard.id and ICard.instance)
readonly
instanceIndex:number
The instance number of the card (generally 0 unless there are multiple instances of the same card)
readonly
optional
leftToolbar:IToolbar
The card's left toolbar, if it has one.
readonly
loadDeferred:Promise
<void
>
returned deferred to determine if the card has loaded
readonly
optional
location:ICardLocation
Current location of the card. If the card has not been placed in a location yet, or has been removed from its location, this is undefined.
readonly
maximized:boolean
Indicates whether the card is currently maximized.
readonly
minHeight:number
The minimum height of the card (as rem units)
readonly
minWidth:number
The minimum width of the card (as rem units)
readonly
order:number
The index to use when sorting the tabs for the cards in a dock.
readonly
optional
overlay:ICard
The overlay card if showOverlay() was called, or undefined if no overlay is set.
readonly
optional
parameters:any
[]
Additional parameters attached to the card during creation. The interpretation of these parameters is dependent on the card type.
popoutInProgress:
boolean
readonly
poppedIn:boolean
Experimental
Indicates whether the card is currently popped in.
This flag is used by the experimental popout feature.
readonly
poppedOut:boolean
Experimental
Indicates whether the card is currently popped out.
This flag is used by the experimental popout feature.
readonly
optional
rightToolbar:IToolbar
The card's right toolbar, if it has one.
readonly
skeletonVisible:boolean
True if the skeleton for this is currently visible
readonly
status:CardStatus
The state (CardStatus) the card is in
readonly
title:string
The human-readable card title
readonly
optional
toolbars:IToolbar
[]
The card toolbar controls
readonly
optional
topToolbar:IToolbar
The card's top toolbar, if it has one.
visible:
boolean
Controls whether the card is visible. Setting this property to false will hide the card, setting it to true will show the card. Hiding a card can result in other panes being hidden as well, e.g. hiding a card when it is the only card in the dock will result in the dock being hidden as well. Cards are visible by default.
readonly
optional
width:number
The current width for the card (as pixels)
readonly
window:Window
Reference to the browser window the card is currently in
This property is the same as ICard.applicationWindow.window
.
activate():
Promise
<boolean
>
Activate the card if it is in a dock. This results in the card content being displayed in the dock body. If the card is still in the process of loading, a skeleton will be displayed until the load completes. If the card is not in a dock, this method has no effect.
Promise
<boolean
>
bindInstance(
instance
,layout
?):void
Binds an ICardInstance to the card. Alternately, the ICardConfig.createInstance() function may be specified to have an ICardInstance created automatically for each card instance.
• instance: ICardInstance
The ICardInstance to bind to the card
• layout?: any
Reserved for internal use
void
canDeactivate():
boolean
Check if card is currently able to be deactivated
boolean
completeFrameLoad():
void
Manually resolves the loading of the card for an IFrame or view model card loader.
void
createBanner(
message
,config
?):IMessageCardBanner
Creates a message banner that will display within the card
• message: string
Banner message
• config?: IMessageCardBannerConfig
Optional banner configuration
createHtmlBanner(
contentHTML
,config
?):IHtmlCardBanner
Creates a custom HTML banner that will display within the card
• contentHTML: string
Custom HTML content of the banner
• config?: IHtmlCardBannerConfig
Optional banner configuration
createToolbar(
config
):IToolbar
Creates a toolbar in the card. Toolbars may also be created via the ICardConfig.toolbarsConfig property.
• config: ICardToolbarConfig
deactivate():
Promise
<boolean
>
Deactivate the card if it is in a dock. This results in the card content being hidden. If the card is not in a dock, this method has no effect.
Promise
<boolean
>
disable():
void
Disables the card. When cards are disabled, they are automatically deactivated and the associated dock toolbar button (if any) is disabled, preventing activation.
void
dismissBanner(
banner
):void
Dismisses a banner and removes it from the card. Equivalent to calling ICardBanner.dismiss().
• banner: ICardBanner
void
dismissBannerByClass(
bannerClass
):void
Method to dismiss the banner by class
• bannerClass: string
void
enable():
void
Enables the card if it has been disabled by a call to ICard.disable().
void
failFrameLoad(
error
):void
Manually fails the loading of the card for an IFrame or view model card loader.
• error: Error
Error to pass to reject
void
hideOverlay():
Promise
<void
>
Hides any overlay that was shown via a call to showOverlay()
Promise
<void
>
hideSkeleton(
immediately
?):void
Hides card skeleton without delay.
• immediately?: boolean
void
load():
Promise
<void
>
Loads the card if it is not already loaded. Note that it is normally not necessary to call this method because cards are loaded automatically when they activated in the UI. Manual loads may be useful in certain circumstances, for instance if the loading process is lengthy.
Promise
<void
>
maximize():
Promise
<void
>
Moves the card to cover the whole viewport.
Promise
<void
>
move(
location
,force
?):Promise
<boolean
>
Experimental
Moves the card to the specified location.
This is an experimental API. The application may not function properly when invoking this API.
• location: ICardLocation
Location to move the card to
• force?: boolean
Optional boolean indicating whether or not the card should be forecefully moved,
bypassing the standard cardCanDeactivate()
checks. Defaults to false.
Promise
<boolean
>
Promise that resolves to a boolean indicating if the card was successfully moved
popin(
force
?, ...rest
?):Promise
<boolean
>
Experimental
Docks the card and returns it to its original location after being popped out.
This is an experimental API. The application may not function properly when invoking this API.
• force?: boolean
Optional boolean indicating whether or not the card should be forcefully popped in,
bypassing the standard cardCanDeactivate()
checks. Defaults to false.
• ...rest?: any
[]
Promise
<boolean
>
Promise that resolves to a boolean indicating whether or not the card could be popped out.
popout(...
rest
):Promise
<boolean
>
Experimental
Undocks the card and moves it to a new popout window.
This is an experimental API. The application may not function properly when invoking this API.
• ...rest: any
[]
Promise
<boolean
>
Promise that resolves to a boolean indicating whether or not the card could be popped out.
remove():
void
Removes the card from its current dock.
void
reportError(
displayString
,error
,customProperties
?):void
Report that the card is in error state. This will display the passed in error message on the card if ICardError.isFatal is true and log it.
• displayString: string
Message to be displayed on the card.
• error: ICardError
The ICardError instance containing information about the error.
• customProperties?
Any other additional data related to the error.
void
restore():
Promise
<void
>
Un-maximizes the card so that it shows in its location instead over the whole viewport.
Promise
<void
>
resumeMinHeight():
void
Resumes the min height of the card
void
setActiveFlag(
flag
):Promise
<void
>
Sets activeFlag to given value, if possible
• flag: boolean
Promise
<void
>
setStatus(
status
):void
Set the card's status to one of the CardStatus values.
• status: CardStatus
void
showOverlay(
overlay
):Promise
<void
>
Temporarily replaces the card contents with another card, for instance to display an error message. Only the overlay contents are used - other properties from the overlay card, such as the title and minimum size are ignored.
• overlay: ICard
Promise
<void
>
showSkeleton(
immediately
?):void
Shows card skeleton without delay.
• immediately?: boolean
void
stateChanged():
void
Called to notify the card system that the card's internal state (the data returned by ICardInstance.cardSaveState) has changed.
void
suspendMinHeight():
void
Temporarily suspends the min height of the card
void
unload():
Promise
<void
>
Unloads the card. Normally it is not necessary to call this method but it may be useful if the card is no longer needed.
Promise
<void
>
updateLayout():
void
Called to notifiy the card system to update the layout.
void
waitForDetachment():
Promise
<void
>
Wait for the card to be detached
Promise
<void
>
On this page
Why was this not helpful?
Check one that applies.
Thank you for your feedback.
Want to tell us more?
Great!
Additional Resources |
|||
DevHelp Community | GitHub | Release Notes | NuGet |