PolymerElements API 引用?

PolymerElements API reference?

在哪里可以找到 PolymerElements 的完整 API 参考资料?

例如,the description for PaperDialogBehavior表示

Use the dialog-dismiss and dialog-confirm attributes on interactive controls to close the dialog. If the user dismisses the dialog with dialog-confirm, the closingReason will update to include confirmed: true.

但是我在任何地方都找不到任何关于 closingReason 实际上是什么(属性?传递给某些回调的参数?)以及它如何 "includes" confirmed: true

与其在使用 Polymer 时浪费时间猜测如何做每一件小事,不如有一个实际的 API 参考。有吗?

没有任何进一步的信息。文档写得不好,你必须自己找到很多东西。请记住,Polymer 中的一切都与属性有关。所以 closingReson 是 属性,您可以在 paper-dialog 上访问(或使用 paperDialogBehavior 的任何其他元素)。

此 属性 包含对象 {confirmed: true|false}

说真的,behaviors 的文档写得非常糟糕。这是非常混乱的。例如:

modal: boolean = false If modal is true, this implies no-cancel-on-outside-click, no-cancel-on-esc-key and with-backdrop.

但是 none 这些属性在 paperDialogBehavior 中指定,因为它是从 iron-overlay-behavior 继承的。而且这些继承没有记录(大部分)。