Questions tagged as 'propriedade'

3
answers

Javascript - Function that returns value of a CSS property

Good night (good morning or good afternoon) to everyone! I need a function that returns the value of a css property. Here is my code: CSS: .teste{ opacity: 0; display: none; } JavaScript: function funcao(){ var element...
asked by 12.01.2017 / 03:34
1
answer

Kotlin - How to reproduce the effect of "lateinit" on a "var" of an interface?

I have an interface called UserManager which has a var of type User interface UserManager { var user:User /* ... */ } and a class named UserManagerImpl that implements UserManager class UserManagerI...
asked by 21.04.2016 / 00:32
2
answers

Starting an Array of a Private Attribute in Another Class

I am doing some exercises and I came across a problem, it follows part of my code: class Empresa{ public String nome; public String cnpj; private Funcionario[] empregados; public String rua; public String bairro; public int livre = 0; public...
asked by 14.09.2015 / 01:24
1
answer

Is there any way to shorten the property declaration?

I know that in C # you can do this: public string propriedade { get; set; } Is there any short way of declaring properties with the Get and Set procedures in Visual Basic? The only way I know it is this: Private _propriedade...
asked by 18.09.2016 / 23:12
1
answer

Passing variables in Jquery .css ()

I'm having problems with the following code: //Desktop = D var posicaoMenuD = $('#desktop-menu').position().top(); $(document).scroll(function(){//Alscutador de scroll da página var posicaoScrollD = $(document).scrollTop(); //Obtém o scrol...
asked by 17.01.2017 / 01:50
1
answer

Access attribute of a JS object using as key the key of another attribute

I'm trying to get the value inside a given object using the key of another object: Ex: I have the objects: var obj1 = { id:'gh73f'} var obj2 = { gh73f : 123, h39sg : 764, c9wer : 921 } I've tried: var valor = obj2[obj1.id]...
asked by 27.05.2014 / 14:22
1
answer

Display flex and width of child elements are not working

I'm developing a form, however, an error occurred on the page, the elements are bordered to the end of the width of the parent div, even if setting a margin 0 and width less than 50% (which would divide to 2 or more elements in line) *{...
asked by 24.03.2017 / 16:05
1
answer

Computed property Polymer

Greetings. My problem is this. I have a product detail page. It is accessed after clicking on a specific product on another listing page, the content is displayed through the product ID. So far so good. Inside this detail page, I have an element...
asked by 27.06.2018 / 14:45
1
answer

Pass arguments to the property getter

VB.NET allows you to declare parameters in the property getter Public ReadOnly Property Propriedade(param As String) As String Get Return param & "!" End Get End Property It's a strange feature and in C # it does not work. What...
asked by 26.10.2017 / 20:04
1
answer

How to pass an array to a property?

I am trying to pass an array of Strings and two arrays from TAlignment to three properties (published). But I'm having the following error (which is the same for all three properties):    [dcc32 Error] uCad.pas (31): E2188 Published property...
asked by 07.02.2018 / 21:40