Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Template Component Integration for Form Editors #8155

Open
alestoya opened this issue Feb 21, 2025 · 0 comments
Open

Expose Template Component Integration for Form Editors #8155

alestoya opened this issue Feb 21, 2025 · 0 comments

Comments

@alestoya
Copy link

Enhancement

Expose Template Component Integration for the Form's Editors.

Overview

Currently, in order to add additional markup around a given editor, it should be defined through the EditorTemplateHandler. It would be beneficial to be able to declare the Form's Editor via the Template Component.

Warning

Although the Template will practically allow the inclusion of any of the available components within the suite, it is important to take into consideration the following editors that allow built-in integration with the Form - https://docs.telerik.com/kendo-ui/api/javascript/ui/form/configuration/items#itemseditor

This would then enable the declaration of the form editor for a given item in the following manner:

@(Html.Kendo().Form<FormViewModel>()
    .Name("form")
    .Items(items =>
    {
        items.Add()
            .Field(f => f.Username)
            .Label(l => l.Text("Username:"))
            .Editor(e => Html.Kendo().Template()
                    .AddHtml(@<text>
                        <span class="error-message"></span>
                    </text>)
                    .AddComponent(component => component
                        .TextBox()
                        .Name("Username")
                    )
            );

    })
)

This enhancement can also be considered a CSP Improvement as it will support scenarios such as the Global Deferring.

@alestoya alestoya added this to the 2025 Q2 (May) milestone Feb 21, 2025
@alestoya alestoya self-assigned this Feb 21, 2025
@github-actions github-actions bot added the FP: Planned Sync status with associated Feedback Item label Feb 21, 2025
@alestoya alestoya added FP: In Development Sync status with associated Feedback Item and removed FP: Planned Sync status with associated Feedback Item labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant