Javascript for Episerver 7.5 cms

DeleteContent

Location

epi-cms/command/DeleteContent

Extends

Properties

_attrPairNames

Used across all instances a hash to cache attribute names and their getter and setter names.

_modelChangeWatcher

canExecute

category

clipboard

hasWastebasket

Flag indicating whether the provider of current content has a wastebasket. This is set internally on model change.

iconClass

The icon class of the command to be used in visual elements.

isAvailable

label

The action text of the command to be used in visual elements.

model

order

selection

tooltip

Methods

protected method _execute ( )

Executes the move or remove method on the model depending on whether the wastebasket is supported. Also clears the clipboard if it contains one of the deleted items.


protected method _hasWastebasketSetter ( hasWastebasket )

Sets the hasWastebasket property as well as updating the label and iconClass properties to reflect the available action.

Parameters

protected method _onModelChange ( )

Updates canExecute after the model has been updated.