Options
All
  • Public
  • Public/Protected
  • All
Menu

Options for cloneModel API

Hierarchy

  • CloneModelOptions

Index

Properties

Optional includeCachedElement

includeCachedElement: boolean | CachedElementHandler

Specify how to deal with cached element, including cached block element, element in General Model, and wrapper element in Entity

  • True: Cloned model will have the same reference to the cached element
  • False/Not passed: For cached block element, cached element will be undefined. For General Model and Entity, the element will have deep clone and assign to the cloned model
  • A callback: invoke the callback with the source cached element and a string to specify model type, let the callback return the expected value of cached element. For General Model and Entity, the callback must return a valid element, otherwise there will be exception thrown.

Generated using TypeDoc