Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>Your questison is about the Polymer.dart port, but applies to Polymer.js devs as well :)</em></p> <p>As you point out, the issue is with Bootstrap's JS. It doesn't know about ShadowDOM and attempts to fetch nodes from the DOM using global selectors. For example, in bootstrap-carousel.js, I see things like:</p> <pre class="lang-js prettyprint-override"><code>$(document).on('click.carousel.data-api', ...', function (e) { ...}); </code></pre> <p>We explored using Bootstrap components inside of Polymer a little bit ago: <a href="https://github.com/Polymer/more-elements/tree/stable/Bootstrap" rel="nofollow">https://github.com/Polymer/more-elements/tree/stable/Bootstrap</a></p> <p>The most interesting to you would be <code>&lt;bs-accordion-item&gt;</code> (<a href="http://www.polymer-project.org/polymer-all/more-elements/Bootstrap/samples/accordion1.html" rel="nofollow">Demo</a>)</p> <p>The process is basically to wrap Bootstrap stuff inside a custom element and call into their APIs.</p> <p><strong>For the CSS</strong>: if you include their stylesheet inside your element, things should generally work:</p> <pre class="lang-html prettyprint-override"><code>&lt;polymer-element name="my-element"&gt; &lt;template&gt; &lt;link rel="stylesheet" href="bootstrap.css"&gt; ... &lt;/template&gt; &lt;script&gt;...&lt;/script&gt; &lt;/polymer-element&gt; </code></pre> <p>Keep in mind that if bootstrap.css is coming from a CDN, it needs to be CORS-enabled for the polyfills to work properly. This requirement goes away when native HTML Imports lands.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload