← All Pull Requests

adom-3d: pass title and info through (component-widgets#2) #8

Merged not released yet opened by Ray

For adom/component-widgets#2: lets ::adom-3d pass title and info through to the widget.

component-widgets 1.1.21 reads title (the name the viewer's info bar shows for this model, defaulting to heading) and info="off" (hide the bar), and hands them to the wiki's /viewer/3d route as ?title= / ?info=0. The registry only passes the attributes listed here, so this adds title and info to adom-3d's attrs. One line in widgets.json.

heading already passes through, so pages that set it get per-model names once the viewer route reads ?title= (that half is a separate git-wiki PR).

Diff Skip to comments

--- a/widgets.json+++ b/widgets.json@@ -1,192 +1,195 @@⋯ 152 unchanged lines ⋯    "src",    "poster",    "heading",-   "caption"+   "caption",+   "title",+   "info"   ]  },  {⋯ 30 unchanged lines ⋯   "height": "auto"  } ]+

Comments

No comments yet.

Log in to comment.