Questions tagged [children]

Children is the set of all nodes within a hierarchical data structure which have a node above them.

1638 questions
11
votes
5 answers

How to iterate over children with for-loop

I want to iterate over all childs of a jQuery's .children() return value, like this: var childs = $element.children(); for (var i = 1; i < childs.length - 1; i++) childs__.foo(); What do I have to write in the 3 line instead of __, to…
user1027167
  • 4,320
  • 6
  • 33
  • 40
11
votes
4 answers

Pass two children as props to a React component

I have a component like this const Component = () => { return (
{children}
{children2}
) } I would like to…
Itziar Urbieta
  • 111
  • 1
  • 1
  • 3
10
votes
4 answers

get each child('id') into array or string

I need to create a comma separated value for a hidden input created from a series of div id's
I want to use jquery but having…
Daniel Hunter
  • 2,546
  • 6
  • 28
  • 34
10
votes
1 answer

lazy render children

Take a look at this simple example: const List = function({ loading, entity }) { return ( Name: {entity.name} ); }; Layout component is rendering its children…
zhuber
  • 101
  • 3
10
votes
4 answers

flash as3 remove all children

Isn't there a simple "remove all children" function in flash? I don't understand why this code isn't working. I add children via: for (var i in project_array[cp].project_type_clips){ …
mheavers
  • 29,530
  • 58
  • 194
  • 315
10
votes
1 answer

How can you get the parent of a UIElement?

Ok, I know that FrameworkElement, which is a direct subclass of UIElement, has a Parent property, but Panel objects have children of type UIElement, not FrameworkElement (The Children property is of type UIElementCollection) which seems it would…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
10
votes
1 answer

jsoup: How to select the parent nodes, which have children satisfying a condition

Here's the part of the HTML (simplified for the question):
asliwinski
  • 1,662
  • 3
  • 21
  • 38
9
votes
4 answers

How to handle a delegated event for child elements only?

When delegating events using .on how do I target child elements: I have tried: childSelector = >* >:nth-child(n) But nothing is selected when I start with >. $(selector).on(event, childSelector, handler); Sometimes I want to target a direct…
Andreas Louv
  • 46,145
  • 13
  • 104
  • 123
9
votes
4 answers

Is there any way to occupy blank space in WrapPanel automatically?

The Children of WrapPanel are populated sequentially like attached screenshot. Therefore, according to the length of each child, the Panel makes long blank space. How can I utilize the blank space with re-arrangng the children ? It seems only few…
Kay Lee
  • 922
  • 1
  • 12
  • 40
9
votes
3 answers

parent div does not grow in height

I'm having trouble getting a parent div to extend its height as its children grow (Freud? :-)) sample page here the parent here being "main_bottom" which contains "main_mid" and its children. the structure is a little unusual because the text has to…
samoyed
  • 881
  • 4
  • 13
  • 25
8
votes
4 answers

Delete children of QML Grid

I want to loop through a QML Grid's children and destroy each of them using Javascript. Grid { id: contentGrid spacing: 10 ImageItem { imageSource: "file:/foo.jpeg" } // destroy this ImageItem { imageSource: "file:/bar.jpeg" } // destroy…
alex
  • 4,922
  • 7
  • 37
  • 51
8
votes
6 answers

jquery selection of elements with no visible children

Here's my goal: do something on an element, an , if all of its children are invisible. My code below outlines the in red if it has any invisible children. But I want to do so only if all the children are invisible. If the element has…
Glen
  • 171
  • 1
  • 6
8
votes
2 answers

programming *challenge* site *for children*?

I know there's some competition out there for whiz high school kids, but I'm looking for something more geared towards an advanced middle schoolers. The problems should be simpler than Project Euler or SPOJ and be language agnostic (or at least…
drysdam
  • 8,341
  • 1
  • 20
  • 23
8
votes
1 answer

Web.config transformation: how to apply a transformation to all node matching a Locator expression?

I've recently discovered the web.config automatic transformation in the web deploy tool of visual studio 2010. It's working well, but I have a scenario I can't seem to get working. Assume I have the following root Web.config
Clement
  • 3,990
  • 4
  • 43
  • 44
8
votes
1 answer

How to select a child from an UIElementCollection where a property = some value?

I have a UniformGrid with a number of Button's as Children. Each Button has a Tag with an ID, e.g. (dumbed down code): MyUniformGrid.Children.Add(new Button { Margin = new Thickness(5), Tag = Query.GetUInt32("id"), Width =…
Danny Beckett
  • 20,529
  • 24
  • 107
  • 134