Questions tagged [custom-properties]

Use the custom-properties tag for questions relating to using non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them. For questions about custom properties in CSS, use the css-variables tag, instead.

Custom properties are just that: non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them to be defined by the programmer when writing code or during run time. For questions about custom properties in CSS, use the tag, instead.

115 questions
3
votes
3 answers

How do I set a default value for a ASPX UserControl property?

I have a user control defined on an page as follows: I am wanting to reuse the same control on a different page with a custom property as follows:
mezoid
  • 28,090
  • 37
  • 107
  • 148
2
votes
1 answer

NodeJS - @azure/service-bus : How to pass `userProperties` in message to C# backend

Before, I was using azure-sb package to handle service bus message in NodeJS with below sample code: let message = { body: JSON.stringify(body), customProperties: { userId: userId } }; However, after changed to use package…
DaiKeung
  • 1,077
  • 1
  • 19
  • 38
2
votes
1 answer

PUN 2 Getting Custom Properties

I've recently taken on the task of custom properties in Photon. I have been able to figure out how to set the custom properties, but not get the custom properties. My hashtable is in my player controller script, while the place where I set (and…
2
votes
3 answers

Is it possible to place custom values (properties) in ejb-jar.xml?

1) We are using OpenEJB (both embedded and standalone) with a few deployed EJBs. We would like to specify some simple static business rules and values (example: icon_size=200). Normally, we would put them in a regular properties file (example:…
Luis Soeiro
  • 4,262
  • 6
  • 35
  • 45
2
votes
1 answer

add custom property to props.location

Using React and Javacript, is it acceptable to add a custom property to props.location when passing it via props.history.push? e.g. this.props.history.push({ pathname: '/someurl', state: {smallObject: myObject}, customProperty :…
susie derkins
  • 512
  • 2
  • 6
  • 17
2
votes
1 answer

How to use CSS variables as background color for keyframe animation in Edge browser

I'm trying to use CSS variables as the background-color values. I got it to work in Chrome but not in Edge browser. I'm not sure if I did something wrong or it is a bug with the Edge browser. In this example, the square change background-color from…
2
votes
2 answers

Custom revision properties in Mercurial?

Can I setup a custom property for my hg repository so that I could store/retrieve its value for each revision? Like, weather in Tokyo at the time of commit, etc. Same for git?
ulu
  • 5,872
  • 4
  • 42
  • 51
2
votes
1 answer

unable to update dialog.data Quickblox[iOS]

I need to store custom parameters in a chat dialog but it dialog fails to update with the new parameters. In both the print statements, the one under under Chat Dialog and updated Dialog; the data field in the still (null). I have followed the steps…
user782400
  • 1,617
  • 7
  • 30
  • 51
2
votes
1 answer

Do I have to clean custom properties (Expandos) on window.onunload event?

In one article I have seen that it may be good to clear all expandos on window.unload event to prevent memory leaks. I cannot understand why to do this. Isn't the browser cleaning all the DOM and its relevant resources of it once you leave the page…
pencilCake
  • 51,323
  • 85
  • 226
  • 363
2
votes
0 answers

Sitemesh3 custom properties

Currently I am trying custom properties to my decorator for additional javascript files for a specific template. In my decorator I have tried using: And in my JSP I tried:
Jamie
  • 1,909
  • 3
  • 22
  • 47
1
vote
1 answer

How to add custom (user defined) properties to entities with EclipseLink?

I'd like to add user-defined custom fields to an existing entity in EclipseLink. For performance reasons, I want them to be stored directly in the entity's table, and I also want them to be "first class citizens", i.e. usable in queries. From an…
Jochen
  • 7,270
  • 5
  • 24
  • 32
1
vote
3 answers

How to get the data from a custom propertie that is in a group on an custom control on an Xpage?

I'm working on a custom control that has custom properties. If I want to use the value of a property it is very easy. For the value of the property "maptype" I can use compositeData.maptype But how do I do this wit groups? For example I have a goup…
Martin Meijer
  • 21
  • 1
  • 4
1
vote
3 answers

How can I get a custom css variable from any element (cypress)

I want to create some tests checking the styles of elements. We use these custom CSS vars. Is there any way to get these in cypress instead of checking for e.g. RGB(0,0,0)? Thx in advance!
Stefanie Uhl
  • 166
  • 1
  • 2
  • 11
1
vote
0 answers

How to find applying CSS variables that aren’t set/defined?

In complex or underway stylesheets, there may occur scenarios when no conditionals and no global :root declarations apply, so there is no value-assigning definition for a custom property, which however is being used in some applying…
dakab
  • 5,379
  • 9
  • 43
  • 67
1
vote
1 answer

Match css custom properties with Regxr

I want to match CSS custom properties with the Regxr pattern. So I tried with /^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/gim which works fine with normal characters, but when it comes to emoji or other language characters, it doesn't work as…
Moni
  • 47
  • 9