question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Properties don't render default values

See original GitHub issue

Given:

public letterSpacing: number = 0;

The output does not show what the default value is. Is this intended?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shwillcommented, May 27, 2016

I inspected the json output and the default value is indeed there “defaultValue”. Knowing nothing about Handlebars and the like, I tried to edit the default template in ‘partials\type.hbs’ and included an

{{#if defaultValue}}  = {{defaultValue}} {{/if}}

but - as I expected - it did absolutely nothing. Can you give me some pointers on how to access the default value in the template? It would be quite a bit of help for my project. I don’t need an option, just a pointer where to edit the template manually. Thanks!

0reactions
Gerrit0commented, Dec 29, 2020

For a while now, TypeDoc will render initializers for properties:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding CSS properties that don't have default values
Every CSS property has Browser dependent default value so there is no such thing as CSS property without default value.
Read more >
I can't render default values on form element in theme_table()
Show activity on this post. I create the elements dynamicaly in ajax and i have common problem. The #default_value if not acting in...
Read more >
Is there a way to define default values for properties in ... - MSDN
Use the "DefaultValue" attribute. Attributes are pieces of "metadata" that can be placed on things such as classes, properties, methods, etc.
Read more >
Create default values for your personalization tokens
Enter a default value, which will appear for any visitors who don't have a value for the property you've selected. · Click Insert....
Read more >
Callback initialization with None vs default properties #468
plotly/dash-renderer#81 is a proposal to change our Dash callbacks are fired upon ... Input(id='input-2', value='initial value 2'), html.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found