800 questions
1
vote
0
answers
99
views
Web component library using Lit return Failed to resolve module specifier "lit"
I created a new web component library project based on :
[email protected]
[email protected]
using Vite's library mode (see https://dev.to/receter/how-to-create-a-react-component-library-using-vites-library-mode-...
0
votes
1
answer
239
views
Modify CSS inside a Shadow DOM (Lit-Element)
I have a hidden DOM created by a third party. I want to configure the application of a bold style on the word "Power", considering that when the legend tag of "Power" is entered, ...
0
votes
1
answer
26
views
Trouble mutating an array with data fetched from axios in polymer 2
I am experimenting with Polymer 2 for work related reasons. I decided to make an infinite scroll. So far I know how to do it in other frameworks (such as VUE) but I am having a little bit of trouble ...
0
votes
1
answer
195
views
Javascript function inside polymer is not a function error
I have a javascript function defined in polymer as such:
myTest(arg) {<do stuff here>}
Inside this function, based on some conditions, I want to change the onclick of a button defined in the ...
0
votes
1
answer
89
views
Polymer JS input value can be set however not being rendered in the UI
I have two fields called LegalName and OperatingName (field 1 and field 2). When a value is being added to id="legalName" an eventlistener should be added so when we focusout and tab to ...
0
votes
0
answers
110
views
How do I get mwc-icon-button working with font awesome?
I have the following...
<!-- Works -->
<i class="fab fa-linkedin" slot="actionItems"></i>
<!-- Does not work -->
<mwc-icon-button icon="linkedin&...
0
votes
1
answer
123
views
Polymer is not defined
I am trying to call a function on the click of paper-button in my polymer application.
But polymer throws error there:
I searched for the same error I found that we should import polymer.html.
I have ...
1
vote
1
answer
123
views
Polymer <dom-repeat> data binding to child element not working?
I have a snippit as follows to try to pass a property down to a child element as follows:
<dom-repeat items="{{employees}}" as="employee">
<template>
<child-...
0
votes
1
answer
329
views
Item inside <nuxeo-data-table-column> component passed to a function as an argument yields empty object
<nuxeo-data-table-column>
[[item.title]]
</nuxeo-data-table-column>
This works. Here 'item.title' renders title.
<nuxeo-data-table-column>
[[_callme(item)]]
</nuxeo-data-table-...
1
vote
0
answers
56
views
How can i prevent my draggable menu go outside a div in Polymer 2?
I have a draggable menu that i want it to be restricted within parent in Polymer 2
Here is my draggable function, i saw that there is a way to fix my problem using javascript vanilla but i tried with ...
0
votes
2
answers
29
views
Why does Webcomponent object value is shared between the different instances of the same webcomponent?
I created a web component called TestElement with Polymer as below. It simply has an object value and a function which adds values to this component.
<dom-module id="test-element">
<...
0
votes
1
answer
503
views
Chrome 80 polymer TypeError: Cannot read property '__proto__' of null
My Chrome is updated to Chrome 80 version.Then My site doesnot work gives below error:
My app use Angular 5,
My bower.json:
"webcomponentsjs": "webcomponents/webcomponentsjs#0.7.0",
" vendor....
0
votes
1
answer
199
views
Polymer 2 iron-selector selected element doesn't update after the dom changes order of elements
I have a component, which has 4 instances.
User clicks number 2, product B gets selected.
When the dom is re-ordered, later after he selects another option, these 4 instances of the component card-...
0
votes
1
answer
421
views
Polymer: on-click event on dom-repeat item is not identified in index.html
I have a polymer app with entry point index.html . For some reason i had to use dom-repeat inside index.html itself instead of a polymer element. The code is like this
<dom-bind id="mainbody"&...
0
votes
0
answers
69
views
Route not working if not basic url polymer
i am using this tutorial to use routes in polymer 2, i am setting route, and it's working fine when i run the standard url...
For example: testurl.com (this works)
After that, every single page i go ...