Skip to content

Expose delegate overload for .AddHtml() API of the Template Component #7757

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

Closed
alestoya opened this issue Mar 11, 2024 · 2 comments
Closed

Comments

@alestoya
Copy link

Overview

Currently, the only way to nest conventional HTML tag content for the Template Component would be through the following configuration

@(Html.Kendo().Template()
    .AddHtml("<div>")
    .AddHtml("<p>Test</p>")
    .AddHtml("</div>")
)

It would be beneficial if the configuration accepts a delegate overload that would allow transpose the previous configuration to the following


@(Html.Kendo().Template()
    .AddHtml(@<text>
           <div>
                 <p>Some Value</p>
           </div>
    </text>)
)

Current behavior

Currently, the Template component does not expose a delegate overload for the .AddHtml() API configuration.

Expected/desired behavior

The Template component should expose a delegate overload for the .AddHtml() API configuration.

Environment

  • Kendo UI version: 2024.1.130
  • Browser: [all]
@alestoya alestoya self-assigned this Mar 11, 2024
@github-actions github-actions bot added the FP: Unplanned Sync status with associated Feedback Item label Mar 11, 2024
@alestoya alestoya added FP: In Development Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item labels Mar 12, 2024
@daver77
Copy link

daver77 commented Mar 12, 2024

Thanks for raising this, it will be really useful!

@github-actions github-actions bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Mar 15, 2024
@VicTachev VicTachev added this to the 2024 Q2 (May) milestone Mar 21, 2024
@daver77
Copy link

daver77 commented Jun 14, 2024

Hi @alestoya , has this been released yet?

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

3 participants