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.

11658 questions
54
votes
1 answer

How to pass custom component parameters in java and xml

When creating a custom component in android it is often asked how to create and pass through the attrs property to the constructor. It is often suggested that when creating a component in java that you simply use the default constructor, i.e. new…
Emile
  • 11,451
  • 5
  • 50
  • 63
50
votes
3 answers

How to pass data between sibling components without using $scope?

I am making a component that contains 3 child components in this way: The main component contains list of heroes. The header component contains two buttons that are suppose to switch the view…
Beslinda N.
  • 4,808
  • 5
  • 27
  • 33
49
votes
4 answers

Deactivate input in react with a button click

I have this basic component and I want the textfield to be deactivated or activated whenever I click on a button. How can I achieve this? This is my sample code: import React from "react"; import Button from 'react-button' const Typing = (props) =>…
Second Son
  • 1,481
  • 1
  • 15
  • 26
49
votes
1 answer

Angular Component: no template replace option?

It looks like there is no "replace" option in new AngularJS 1.5 Component concept (like it was for directives). What would you suggest if I want to have table row element as component? Is it not possible in terms of valid HTML? Real example:…
Stepan Suvorov
  • 25,118
  • 26
  • 108
  • 176
49
votes
4 answers

Java Component based vs Request based frameworks

I was recently asked in an interview - In java, how do you compare component based frameworks to request based frameworks? I explained EJB as an example of Component based framework and Struts as a request based framework but was not convinced if I…
user150014
  • 743
  • 2
  • 8
  • 9
47
votes
6 answers

How to set a component non-reactive data in Vue 2?

I have a categories array, which is loaded once (in created hook) and then it is static all the time. I render these array values in a component template.