Skip to main content
Version: Current

foundation-layout.foundationlayout.removeitems

Home > @genesislcap/foundation-layout > FoundationLayout > removeItems

FoundationLayout.removeItems() method

Removes all instances of a specified registered item from the layout.

Signature:

removeItems(registration: string, force?: boolean): number;

Parameters

ParameterTypeDescription
registrationstringstring of the registration ID
forceboolean(Optional) if set to true then the item will be removed even if it is not closable. Defaults to false, which is the same behaviour as the close button on the header.

Returns:

number

number of items removed

Remarks

Does not remove the registration from the layout system. Has a side affect of setting all tab views to be viewing the first tab in the stack.