aboutsummaryrefslogtreecommitdiffstats
path: root/apidoc
diff options
context:
space:
mode:
authorSauli Tähkäpää <sauli@vaadin.com>2015-11-09 13:58:36 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2015-11-09 14:11:21 +0200
commitb06e053efedb9bd21c073044b6a5caa73b89ceb3 (patch)
treea3e0d2af242eaa7f5e8a4ab8f9c17df9bffcd6a6 /apidoc
parent0452010651136e90311938e538220ee3e4257101 (diff)
downloadvaadin-core-b06e053efedb9bd21c073044b6a5caa73b89ceb3.tar.gz
vaadin-core-b06e053efedb9bd21c073044b6a5caa73b89ceb3.zip
Create links also for documented behaviors.
Diffstat (limited to 'apidoc')
-rw-r--r--apidoc/index.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/apidoc/index.html b/apidoc/index.html
index afc6729..522a6a1 100644
--- a/apidoc/index.html
+++ b/apidoc/index.html
@@ -59,7 +59,7 @@
for(var i=0;i < types.length; i++) {
var type = getPropertyType(types[i]);
- if(result.elementsByTagName[type]) {
+ if(result.elementsByTagName[type] || result.behaviorsByName[type]) {
var a = createLinkElement(types[i]);
types[i].textContent = '';
@@ -91,7 +91,7 @@
_.forEach(document.querySelector('#properties').querySelectorAll('iron-doc-property'), function(p) {
if(!isPrimitiveType(p.querySelector('#type').textContent)) {
- p.querySelector('#default').setAttribute('style', 'display:none');
+ p.querySelector('.annotation').setAttribute('style', 'display:none');
}
});
@@ -109,7 +109,8 @@
hyd.Analyzer.analyze('../../vaadin-grid/vaadin-grid-doc.html')
.then(function(result) {
- document.querySelector('iron-doc-viewer').descriptor = result.elementsByTagName[getElementTag()];
+ var descriptor = result.elementsByTagName[getElementTag()] || result.behaviorsByName[getElementTag()];
+ document.querySelector('iron-doc-viewer').descriptor = descriptor;
return result;
})