Questions tagged [children]

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

1638 questions
6
votes
2 answers

WPF Animate property of child without using Name

I'm trying to create a storyboard in XAML that animates a property of one of the child elements of an element which raises an event. But I can't seem to get it to work without using Names, which is something I can't really do in this specific…
PJanssen
  • 103
  • 1
  • 7
6
votes
4 answers

How to run getElementsByTagName on children of an element only?

I'm having trouble getting a selector to work properly. I have this HTML:
frequent
  • 27,643
  • 59
  • 181
  • 333
6
votes
4 answers

using insertChildren AND getting child attributes

I am actually trying to create a custom composite table component because h:datatable or p:datatable do not fit my needs. Nevertheless it shall be used like a primefaces datatable. After I found JSF composite component childrens and Expose items…
CrisbyJ
  • 61
  • 1
  • 2
6
votes
4 answers

Java Dom parser reports wrong number of child nodes

I have the following xml file: Then I'm trying to parse it with java, but getchildnodes reports wrong number of child nodes. Java code: DocumentBuilderFactory…
John Frost
  • 673
  • 1
  • 10
  • 24
6
votes
2 answers

How should a UIView get references to its children?

I have a xib with a root view that is a UIView subclass. How should this view get references to the child views I declared in Interface Builder? Obviously a ViewController can be wired up with outlets, but what about a UIView?
Undistraction
  • 42,754
  • 56
  • 195
  • 331
6
votes
5 answers

Get parents recursive in right order for deletion from MySQL table

I have an table structure like this mysql> SELECT id, name, parent_id FROM categories; +-------+------------+-----------+ | id | name | parent_id | +-------+------------+-----------+ | 15790 | Test | 0 | | 15791 | Test2 |…
dan-lee
  • 14,365
  • 5
  • 52
  • 77
6
votes
4 answers

jQuery selector not this child

Is there any way to attach a click event to several elements, and then have all children to the element, except children of THIS (the one clicked), to run a function? That's a terrible explanation, but I'm looking for something like…
Richard Harris
  • 929
  • 3
  • 8
  • 14
5
votes
3 answers

WPF MenuItem children not showing

I am using an ObjectDataProvider and a DataTemplate to populate a MenuItem inside my Menu bar. (WPF, C#/XAML) See snipet below. Result: The top menu item appears, when i click on it, the wrapping menu item (the one with the bound header text)…
NicholasF
5
votes
2 answers

Last child forked will not die

I have the main process forking two times and thus creating two children. The two children are piped with each other like this: ls | more Now the problem is that the second child never dies. Why is that? When does the last child in a pipe die…
Pithikos
  • 18,827
  • 15
  • 113
  • 136
5
votes
5 answers

Problem with jstree can expand nodes with no children

I'm working with jstree with ajax and I see that all my nodes have the arrow to expand it, even those which have no children. On the demo page of jstree http://www.jstree.com/demo this is not the case. I don't see on the demo code something…
TiGi
  • 115
  • 2
  • 9
5
votes
3 answers

Finding all "X-generation" descendants using jQuery

Solved (sort of) Well, I think I solved it (barring edge cases) using the following: function findByDepth(parent, child, depth){ var children = $(); $(child, $(parent)).each(function(){ if($(this).parentsUntil(parent, child).length…
Dan Lugg
  • 20,192
  • 19
  • 110
  • 174
5
votes
1 answer

children.toArray() - TS2339: Property 'key' does not exist on type 'ReactChild | ReactFragment | ReactPortal'... - React Typescript

I'm creating a TypeScript component/wrapper that adds a divider between each child: import React, { FC, Children } from 'react' const DividedChildren: FC = ({ children }) => { return (
{Children.toArray(children).map((node, index)…
BiasInput
  • 654
  • 1
  • 10
  • 28
5
votes
1 answer

How do I hide all children except the for the first child in Javascript/JQuery and CSS?

HTML: …
user317005
5
votes
1 answer

Updating the UI for a tree structure in SwiftUI

I have an ObservableObject class, Model0 which has a Published object nested. The nested object represents a recursive tree structure. I want to be able to update the tree structure and have the UI update appropriately. However, in the below code,…
BenJacob
  • 957
  • 10
  • 31
5
votes
2 answers

How to access slot props in the created hook?

I'm trying to access properties I'm passing on to my slot. But my slotProps are undefined. As I'm still new to Vue and I've read their docs I still can't seem to figure out why I can't access the props data. Problem I'm trying to access the…
Salman
  • 1,109
  • 3
  • 25
  • 55
Heading
Text
Text