Results for “prop”
Small, practical examples. Search by task or narrow things down below.
Read a JSON property
Parse a JSON document and dispose it after reading in C#.
C#✓ Tested
Read a property with keyof
Keep the key and returned value tied to an object type.
keyof✓ Tested
Read a scalar JSON property
Extract a named value using a JSON path.
JSON_VALUE✓ Tested
Read an optional JSON property safely
C#: Use TryGetProperty instead of throwing when an optional property is absent.
C#✓ Tested
Reuse a CSS custom property
CSS: Learn how to reuse a CSS custom property in a complete browser example.
CSS✓ Tested
Reuse colors with custom properties
Define a CSS custom property and use it for text color.
CSS✓ Tested
Select object properties
Create a smaller object with only the fields you need.
Select-Object✓ Tested
Set a boolean element property
jQuery: Learn how to set a boolean element property in a complete browser example.
jQuery✓ Tested
Set a JSON property
Create an updated JSON document from existing text.
json_set✓ Tested
Supply a default prop value
Supply a default prop value with a small React component and explicit browser behavior.
React✓ Tested
Synchronize a document property with an effect
Synchronize a document property with an effect with a standalone Angular component and explicit browser behavior.
Angular✓ Tested
Update a JSON property
Create updated JSON text with JSON_MODIFY.
JSON_MODIFY✓ Tested