Introduce an elementToStructure and rangeToStructure downcast conversions #9783
Labels
domain:dx
This issue reports a developer experience problem or possible improvement.
package:engine
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Milestone
📝 Provide a description of the new feature
(names of the downcast helpers are yet to be chosen)
Currently, while down-casting model structures to the view structures we rely on the model-view bindings (mappings) so the children of some model element are inserted as children of the bound view element. But sometimes we need to be able to indicate where some model element children should be placed after conversion.
For example for tables:
This could be handled by the conversion as specifying a template:
The
tableRow
s would be converted by dedicatedelementToElement
converters.This way we could use
triggerBy
API forheadingRows
attribute to reconvert only thetable-thead-tbody
structure without reconverting the whole table.This would be also helpful for document/advanced lists. For example for such model structure:
We could generate:
So for the
triggerBy
range API we could reconvert only theul-li
structure and reuse the view of the content (paragraphs or other blocks inside those list items)If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: