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
1
vote
1 answer

Woocommerce custom product properties

I am migrating a webshop from a non- wordpress environment to woocommerce. The products would be synchronized from a 3rd party logistics API and the products contain extra data, like alcohol content, allergens, storage instructions, ingredients,…
Krisztián Dudás
  • 856
  • 10
  • 22
1
vote
2 answers

How to use "no commas" and "css custom properities" in a rgba value while using SCSS?

I"m trying to use CSS custom properties in a rgba value. I am able to get the desired result in pure css, but when I test this out in codepen.io or my IDE that are both using scss, I am getting an error of: overloaded function `rgba` given wrong…
Tyler Morales
  • 1,440
  • 2
  • 19
  • 56
1
vote
1 answer

TailwindCSS + NextJS: Integrating with PostCSS and IE11 support (custom properties)

According to the docs, tailwind states it supports ie11. ...yet it uses custom properties that are not supported by ie11. We're attempting to use this in a minimal nextjs project with the following postcss.config.js: module.exports = { plugins: [ …
1
vote
0 answers

HOWTO read Outlook custom property set with GRAPH

I am using the Office.js CustomProperties interface to store application specific data. Using the Office.js library I can succesfully read the information back in different application sessions using Office.js. A different API process needs to read…
1
vote
1 answer

currentColor set as a custom property doesn't work in Edge

When a color is set to currentColor via custom property it doesn't work. No matter whether property is set in a :root or a .selector scope. But when it is set as a currentColor directly it does work. I checked it locally and on Browserstack. Edge…
Luka Gronko
  • 423
  • 4
  • 13
1
vote
0 answers

Adding custom param to Mongoose schema

I'm working on an express API using Mongoose Schema. When creating for example a "user", I would like to check that my request.body do not contain field that I do not want user to edit. I was thinking about using the Mongoose schema by adding some…
Steve
  • 309
  • 3
  • 17
1
vote
1 answer

WPF Custom Property - required property

Is there any way to make a custom property required in WPF? I mean something like error message when my custom property in designer is not filled? E.g.: Required="true/false" My custom property definition: public static readonly DependencyProperty…
Pavel Etrich
  • 69
  • 2
  • 9
1
vote
0 answers

C# adding collection of custom properties from the property grid at design time

I have an issue of not being able to add created columns to the collection of that type. I have the following property: public ObservableCollection _BrowseLayoutColumns = new ObservableCollection(); …
1
vote
0 answers

create custom control with multiple value properties

i want to create a custom control that has multiple value properties. For example the Size property of any toolbox control, it takes two parameters a width and a height. Click here for an example So how can i create a property of a control that will…
Affan Mirza
  • 107
  • 2
  • 10
1
vote
0 answers

CAShapeLayer custom property is nil when drawInContext

I denfined a custom layer,and declare a custom property,but it's not work when animation in -(void)drawInContext:(CGContextRef)ctx method here is some code: @interface ZBBProgressLayer : CAShapeLayer @property (nonatomic, assign) CGFloat…
1
vote
2 answers

Episerver custom property value save

I have a custom property in Episerver inherited from LongString. The value of property is saved for the first time and retrieved correctly. But on successive save the value is not updated, before SaveData() the properties LoadData() keep calling and…
Sanjay Zalke
  • 1,331
  • 1
  • 18
  • 25
1
vote
1 answer

Custom Property of a Custom User Control gets reset during rebuild

I have the following Properties [DefaultValue(true), Category("Behavior")] public bool EnableBinding { get; set; } [DefaultValue(false), Category("Behavior")] public bool NeedApprove { get; set; } When changed using the designer and save…
1
vote
0 answers

Outlook user-properties are not getting deleted

I wrote following code to delete all the user properties of all the mails in folder -inbox. When I was stepping through the code, there were no any exceptions. Delete() and Save() methods were executed properly. Then after, when I was checking for…
Kushan Randima
  • 2,174
  • 5
  • 31
  • 58
1
vote
1 answer

Revit Custom File Properties

Hello I want to retrieve the custom properties of a file rfa or file rvt (Software Revit file format) I could during my research came across this link: https://forums.autodesk.com/t5/revit-api/revit-custom-file-properties/td-p/5533067 but I have…
Axel
  • 21
  • 7
1
vote
0 answers

Custom Property in EPiServer shows in top left corner in Chrome

We have created a plugin that shows a custom-property on a page. Until not so long ago, the property showed as a nice square just where I wanted it in edit mode. But now it just shows as a really tiny square in the top left corner in Chrome. All…
funkyfly
  • 1,144
  • 1
  • 11
  • 18