ConsumerFunction (engine/conversion)
@ckeditor/ckeditor5-engine/src/conversion/downcasthelpers
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.
Parameters
element : Element
The model element to be converted to the view structure.
consumable : ModelConsumable
The
ModelConsumable
same as inDowncastConversionApi.consumable
.[ options ] : Object
-
Properties
[ options.preflight ] : Boolean
Whether should consume or just check if can be consumed.
Defaults to
false
Returns
Boolean
true
if all consumable values were available and were consumed,false
otherwise.