Commit d65c0e25 authored by Magdalena Turska's avatar Magdalena Turska

rename slots for pb-popover to align with alternate parameters

parent 11a53837
......@@ -21,8 +21,8 @@
<template>
<main>
<div>
<p><pb-popover>Lorem<span slot="content">tooltip popover</span></pb-popover> ipsum dolor sit amet,
consetetur <pb-popover persistent>sadipscing<span slot="content">persistent dialog popover</span></pb-popover> elitr, sed diam nonumy eirmod tempor invidunt ut labore et
<p><pb-popover>Lorem<span slot="alternate">tooltip popover</span></pb-popover> ipsum dolor sit amet,
consetetur <pb-popover persistent>sadipscing<span slot="alternate">persistent dialog popover</span></pb-popover> elitr, sed diam nonumy eirmod tempor invidunt ut labore et
dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
</p>
</div>
......
......@@ -14,7 +14,7 @@
<paper-dialog id="dialog" dynamic-align no-overlap horizontal-align="left" vertical-align="top">
<h2><slot name="title"></slot></h2>
<paper-dialog-scrollable>
<slot name="content"></slot>
<slot name="alternate"></slot>
</paper-dialog-scrollable>
<div class="buttons">
<paper-button dialog-confirm="dialog-confirm" autofocus="autofocus">
......@@ -25,7 +25,7 @@
</template>
<template is="dom-if" if="[[!_isPersistent()]]">
<paper-tooltip for="link" position="bottom" fit-to-visible-bounds="fit-to-visible-bounds">
<slot name="content"></slot>
<slot name="alternate"></slot>
</paper-tooltip>
</template>
......
......@@ -232,6 +232,17 @@
<param name="type" value="'line'"/>
<param name="label" value="@n"/>
</model>
</elementSpec>
<elementSpec ident="app" mode="change">
<model behaviour="inline">
<param name="content" value="lem"/>
<param name="alternate" value="rdg"/>
<param name="persistent" value="true()"/>
<param name="name" value="'pb-popover'"/>
<pb:template xmlns="" xml:space="preserve">
<pb-popover persistent="[[persistent]]">[[content]]<span slot="alternate">[[alternate]]</span></pb-popover>
</pb:template>
</model>
</elementSpec>
</schemaSpec>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment