14 questions
2
votes
3
answers
81
views
How to dynamically set an HTML header tag (h1, h2, etc.) in a Blazor component?
I want to create a reusable Blazor component that allows the user to define the HTML header tag (<h1>, <h2>, etc.) via a parameter.
My goal is to render a header dynamically like this:
<...
0
votes
0
answers
54
views
How to Prevent Suspense Waterfall in React 18 with Dynamic, Server-Driven Components?
I’m building a React 18.3 (TypeScript) app where components are dynamically rendered based on a server-provided JSON structure. I’m using React.Suspense and React.lazy for code-splitting to load ...
0
votes
1
answer
29
views
Dynamic Component Blazor Run Public Method
I have a list of references to DynamicComponents in Blazor.
Each is possibly a different type. Each contains a method called "CodeGen"
I am trying to call the public methods, but cannot ...
0
votes
0
answers
109
views
Dash: A nonexistent object was used in an Input of a callback when dynamically loading components
I'm developing a multi-page Dash application where I dynamically switch between different views, such as a login page and a script selection page, using a placeholder div to load the content ...
2
votes
1
answer
214
views
How to use the AsyncPipe with ngComponentOutlet
I want to build a UI dynamically based on a JSON config. Trying to use ngComponentOutlet with the AsyncPipe so I can import(...) the components lazily. My implementation is not working (see example on ...
0
votes
1
answer
70
views
How to make a Runnable class a Spring Boot Component whose bean will be created dynamically?
I want to create a Spring Boot Component named GameSessionRunner that implements the Runnable interface. During its creation, GameSessionRunner needs an object of SudokuGame, which will be dynamically ...
2
votes
1
answer
515
views
DynamicComponent not refresshing when changing the component type
``<DynamicComponent Type="SelectedQuestionTemplate" Parameters="parameters" @ref="dynamicComponentRef"/>`
Am in a situation where I need to render the component ...
0
votes
1
answer
1k
views
NextJS Dynamic Component not rendering out in SSR even when SSR: true
Perhaps I misunderstand how the next/dynamic components work... but when I have code like this:
const RealContent = dynamic(() => import('./RealContentComponent'), {
loading: () => <span>...
1
vote
1
answer
917
views
Dynamic component selection in Vue-Router
I have a base component that is extended by some other Components as follows:
// UserForm
<template>
<div class="user-form"></div>
</template>
// ...
0
votes
1
answer
34
views
Conditional props in intreface
I have a question regarding interfaces:
Basically I'm creating a dynamic component that change depending on which page it is. My interface is constructed like so:
interface Props {
heading: string;
...
0
votes
1
answer
2k
views
how to create dynamic component in react?
so i want to create a a dynamic react component that the name come from the backend like:
[
{
"data": {
"header": "this is header one",
"article&...
1
vote
1
answer
2k
views
Laravel - How to pass array to dynamic blade component? Cannot use object of type Illuminate\View\DynamicComponent as array
I've got a dynamic component which I am trying to pass an array of data to like:
<x-dynamic-component
:component="$component['component']"
:data="$component&...
1
vote
0
answers
186
views
Blazor DynamicComponent displays the component twice when I change it's Type by using injected service
I have a single page blazor application,where I have a dynamic component tag
@page "/"
@if (_loadSettingCompleted)
{
<HeaderNavMenu SelectDialog="OnSelectDialog"
...
3
votes
1
answer
3k
views
How to create dynamic components using service without ComponentFactoryResolver as it is deprecated in angular
As you may know in earlier versions of angular, dynamic components could be created with the help of ComponentFactoryResolver as
export class DialogService {
dialogComponentRef: ComponentRef<...