docs: widget ref generated hint
This commit is contained in:
parent
d08aaa319c
commit
8fbe7c0c1d
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
|
||||
<!-- This file is generated automatically from the widget class declarations. See scripts/build-widget-reference.js -->
|
||||
<div class="accordion" data-category="generic" markdown="1">
|
||||
|
||||
<h6 class="accordionlink" id="generic_properties"><a class="headerlink" href="#generic_properties">Generic properties</a></h3>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ require('./client-shim')
|
|||
var widgets = require('../src/client/widgets'),
|
||||
baseClass = require('../src/client/widgets/common/widget'),
|
||||
base = baseClass.defaults(),
|
||||
doc = []
|
||||
doc = ['<!-- This file is generated automatically from the widget class declarations. See scripts/build-widget-reference.js -->']
|
||||
|
||||
|
||||
doc.push(`
|
||||
|
|
@ -41,7 +41,7 @@ for (var propName in base) {
|
|||
doc.push(`
|
||||
| <h6 id="${permalink}" class="${dynamic? 'dynamic' : ''}">${propName}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h6> | \`${prop.type.replace(/\|/g,'\`|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>').replace('{','\\{')}</code> | ${help} |`
|
||||
)
|
||||
|
||||
|
||||
}
|
||||
|
||||
doc.push('</div>')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue