Skip to content

Commit 5c936ed

Browse files
committed
Add help option prop types
1 parent 32d239d commit 5c936ed

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

js/scripts/generate-wrappers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,7 @@ class PythonWrapper {
813813

814814
this.properties = _.mapObject(this.config.properties, function(prop) {
815815
return {
816+
help: prop.options.help,
816817
trait_declaration: prop.getTraitlet(),
817818
defaultJson: prop.getPythonDefaultValue(),
818819
};

js/scripts/templates/autodoc.mustache

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
{{#each properties as |prop propName|}}
2626
.. py:attribute:: {{ propName }}
2727

28+
{{#if prop.help}}
29+
{{{indent prop.help ' '}}}
30+
{{/if}}
31+
2832
.. sourcecode:: python
2933

3034
{{{indent prop.trait_declaration ' '}}}

0 commit comments

Comments
 (0)