Questions tagged [parent]

In an oriented tree, the parent is the previous node before the node of interest. The word parent can then be used in countless abstractions of computer science. The container of contained graphic or logic items can be called a parent. The inherited class in OOP can be called the parent.

2914 questions
0
votes
1 answer

How to create a SASS rule like "apply to element if parent is not x"

First of all, I'm sorry if there is already a similar question that I ask, but it is not that easy to search for that specific case. What I want to achieve, is coloring every "a" element, except those that are wrapped in a header element…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
0
votes
1 answer

Using parent to call a method from the components Blazor

I have this method in my components called ClearFiles(string PathName) which I currently call by clicking one of the buttons on the component, but now I'm trying to call of them at once but I cannot figure out how to do this. Calling a single…
0
votes
2 answers

Protocol Doesn't Send Value to Other VC

That is my footerView called FooterTableViewCell. I have this protocol called SurveyAnswerTableViewCellDelegate. It's parent is AddQuestionViewController. When I tap on the footerView I trigger @IBActtion. @objc protocol…
Mert Köksal
  • 817
  • 1
  • 7
  • 26
0
votes
1 answer

how to get the height of the children from a parent? - React

Sorry for the question. I am new to react. I want to get the height of each child then apply the maximum one on all of them. by the way i do it, i get always the height of the last child. on other hand i don't know exactly how to force the maximum…
aya amine
  • 3
  • 3
0
votes
3 answers

React JS - how to read specific attribute from a child JSX before mounting it to the DOM

What I need to achieve is to handle a specific attribute from one JSX component that I import to its parent component in a way that I will display here. Child component returns JSX with 'someId' attribute: return

{title}

And…
Vlado
  • 3,517
  • 2
  • 26
  • 24
0
votes
1 answer

Getting hidden control of parent from iFramed code-behind

In my parent page I have a hidden control: I need for my page in the iFrame to be able to get this value from C# code-behind. I have so far been unsuccessful. In the child page's…
user390480
  • 1,655
  • 4
  • 28
  • 61
0
votes
1 answer

How to use query sql for show parent table in laravel

How to display room rates using mysql query? I have 2 tables, namely the room table and the rental rate table, I want to display the rental rates for each room. table room table rental rate How to call it with mysql query ? i have tried using…
0
votes
1 answer

Open a jquery dialog using prev() and parent()

I have a list of dialog boxes which I want to open when there assosciated icon is clicked on but not write a .click() function for each dialog. At the moment my html looks like this.
0
votes
1 answer

How to find parent node with specific name?

def query = SQLQuery() <- my sql query def result = query.execute() result.nodes.each{node -> node.setProperty(JcrConstants.JCR_TITLE, "new3") I found all components with a certain resource type using groovy consoly, and I need to replace…
alex
  • 1
  • 2
0
votes
1 answer

How can I use a Button Child in more than one Parents?

I hope someone can help me. I'm pretty sure that it's really easy but most of the time it get me really stuck. I'm using React and in this example I have two Parents components and one CloseButton Child component that has the function of hide and…
0
votes
1 answer

How to set the image hight to the a grid row hight, but ignore a parent ScrollViewers

So on one side, I have an Image that should resize automatically to the row size which I managed by just giving the row a height of 1*
0
votes
1 answer

Get parentNode on change the CodeMirror

I have multiple div elements, each includes one codemirror element. I want to get id of div on changing codemirror inside. $(document).ready(function(){ $(".code").each(function (i, editorEl) { CodeMirror.fromTextArea(editorEl, { …
Bakyto
  • 1
  • 1
0
votes
1 answer

boolean state variable change causes parent component to disappear?

What I currently have is a parent component called WhatDo.tsx that has a button which should open a child component called AddToWardrobe.tsx, which is currently simply a form to be filled out. To do this, I've used a { boolean ? ( show AddToWardrobe…
0
votes
3 answers

Jquery accessing distanced parents

Consider the following HTML structure for drop-down menu:
0
votes
1 answer

How to select the parent elements?

I am trying to make a sidebar that stores the last click link into the local storage and still opens the collapse links after the page reloads. $(".clickedLink").parent().parent().css('background-color', 'green'); Could someone help me how to…
1 2 3
99
100