The key of the component. You can close the component by calling the 'CardonContainer.remove(key)' method.
Hides the card.
By default, it calls the 'get' method that is passed as props: get(undefined)
. If you call it with a parameter, the promise resolves with that value.
Shows the card component. Card props can be passed optionally.
Wraps the component you want to make reusable and returns the 'show'
and 'hide'
functions within an object.
The type of props value
The type of return value
The component to show.
Options
{
show: (args?: P, callback?: (result: P) => void): Promise<R>,
hide: () => void,
}
Generated using TypeDoc
Enables destroy the component while hiding.
When you do not change this property, the component will not be removed from the root and you will need to hide it with the 'visible' property manually.
Default value is
'false'