Questions tagged [components]
A component in the Unified Modeling Language "represents a modular part of a system, that encapsulates its content and whose manifestation is replaceable within its environment. A component defines its behavior in terms of provided and required interfaces". The best example of component can be found in ActionScript- Flash,Flex sdks. There you have UI components like buttons, labels, DataGrids, charts those are reusable, distributable etc.
components
11,818
questions
1
vote
1
answer
20
views
ng drawerservice component called twice
ViewPurchaseOrder(item: any): void {
this.drawerService.create({
nzTitle: 'View Purchase Order',
nzMaskClosable: true,
nzWrapClassName: "full-drawer noSidebar",
...
0
votes
0
answers
9
views
Similar Component in Bootstrap
I'm building a website based on Bootstrap 5.3.3. And I'm looking for a component similar to the one attached in the photo. I prefer to use Bootstrap, but I can use another framework that supports ...
0
votes
1
answer
24
views
How to create a search bar like GitHub in React? [closed]
GitHub search bar got a syntax highlight feature in the input that add a background color when the query syntax is well written:
How could I achieve this kind of styling in a React component? I can't ...
1
vote
2
answers
36
views
Why update state during delete in Angular services doesn't rerender component?
I've two components getting
todos.services.ts:
import { Injectable } from '@angular/core';
import { TodoItem } from '../interfaces/todo-item';
@Injectable({
providedIn: 'root',
})
export class ...
1
vote
1
answer
38
views
Angular Component Not Subscribing to Service Observable
I have an Angular component that is supposed to react to changes emitted by an observable in a service, but it doesn't seem to be subscribing or reacting as expected. I'm working in the front-end part ...
0
votes
0
answers
29
views
How generated-sources folder is created?
I wonder how generated-sources folder is created under the /target folder. As far as I know it is created from Open API YAML file, however, I cannot find the generated classes as components in the ...
0
votes
0
answers
30
views
How to automatically change translation on all components when different language selected
I have a select drop down on a navbar which allows the user to select a different language. When the user selects a different language all text in the nav bar component gets translated, but no text in ...
-1
votes
1
answer
26
views
Configuration composent testing Cypress with StencilJS? [closed]
how to configure component testing with Cypress in a project using the StencilJS framework?
Cypress : v13
I was inspired by the configuration examples with the React and Angular framework, but ...
0
votes
1
answer
36
views
How to prevent a React component from freezing the page after loading?
I am using the following library uiwjs/react-json-view, it is the typical library to view json. The issue is that I want it to load a large json. But when it does, it freezes the page in the process. ...
1
vote
1
answer
59
views
Blazor .Net Core 8: How to use Server Side Component on the Client side?
I want to use the InteractiveAuto feature of WASM. So I want to create my pages on the client side.
But I also want to access server side components that have access to my SQL database.
It seems ...
1
vote
2
answers
25
views
Pass click functionality from one component to another in angular
I am having a parent component. Let say; Component1. In its html I have added below code.
<div>
<router-outlet></router-outlet>
</div>
<div>
<button>Banner</...
0
votes
0
answers
30
views
Best practice to do dynamic component content/structure within a React Project [closed]
I am currently in the process of creating an orientation website using react (nothing serious just a university project). Currently I am implementing a to-do list which is a list of components that ...
0
votes
0
answers
13
views
how to style images in styled-components
these are my images in my React.js app:
<img className="mobile-image" src={MobileImage} alt="mobile image" />
<img className="desktop-image" src={DesktopImage} ...
0
votes
0
answers
12
views
Failed to execute 'createElement' on 'Document': The tag name provided ('/static/media/image-web-3-mobile.aff7026b3651.jpg') is not a valid name [closed]
im trying to import an image from src folder
import MobileImage from "../../assets/images/image-web-3-mobile.jpg";
i get an error on my screen Failed to execute 'createElement' on 'Document':...
0
votes
1
answer
21
views
I'm using Preline, and on a dynamic page, why do I have to reinitialize it repeatedly?I'm using Next.js; shouldn't it only need to be initialize once?
I'm using preline and in a dynamic page why do i have to reinit it over and over. someone suggested using mutation observers, but this feels wrong I'm using nextjs shouldn't it be an spa and only ...