by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Tomasz Pluskiewicz
    @tpluscode
    @hxgdzyuyi no. totally different things
    Sebastian Báez
    @SebasBaezCode

    Hi everyone, have used a web component in multiple domains? counts them as duplicate content? It is for SEO topics Thanks!

    For example: <static-text-component><static-text-component/> Contains -> Hello, my name is Sebastian, and... (700 words more...)
    If I have it in http://mydomain1.com and http://mydomain2.com Does Google find it as duplicate content and penalize me?

    I use StencilJs
    Thanks!
    Mark Dane
    @angrycat9000
    Any examples of how to internationalize/localize strings in web components?
    Tomasz Pluskiewicz
    @tpluscode
    there is not thing specific in the web components spec
    what libraries are you using?
    matrixbot
    @matrixbot

    Resynth > <@gitter_damntrecky:matrix.org> Hi everyone! I'm a developer for a company called ZingSoft. We have a product called ZingGrid which is a commercial grid web component. The code is closed source (https://github.com/ZingGrid/zinggrid) but available for free use in commercial products. How does we fit into the web component community and if we belong on this platform?

    I'm not trying to be spam or promotion, we are deeply involved and invested in web components and am wondering your thoughts on:

    1. commercial web components being available on webcomponents.org
    2. commercial web components in general. Is there a place for them for you? What would you expect

    Oh god no

    Resynth Terrible idea
    Resynth Also that is a promotion, you could've asked the question without mentioning your product is free for enterprises...
    Resynth Imagine putting nonfree components on webcomponents.org
    3 replies
    Mark Dane
    @angrycat9000
    @tpluscode I am using LitElement
    Tomasz Pluskiewicz
    @tpluscode
    good. I recently needed i18n and for lit-html this worked nicely: https://github.com/andreasbm/lit-translate
    sunilgidwani
    @sunilgidwani
    How it's different from React in term of Performance, coding ?
    Joe Pea
    @trusktr
    Hello!
    sunilgidwani
    @sunilgidwani
    hello Joe
    Joe Pea
    @trusktr
    I'd like to put http://lume.io elements on webcomponents, but it isn't ready yet. Got docs to write!
    Nick Ardecky
    @damntrecky

    Hi everyone! I'm a developer for a company called ZingSoft. We have a product called ZingGrid which is a commercial grid web component. The code is closed source (https://github.com/ZingGrid/zinggrid) but available for free use in commercial products. How does we fit into the web component community and if we belong on this platform?

    I'm not trying to be spam or promotion, we are deeply involved and invested in web components and am wondering your thoughts on:

    1. commercial web components being available on webcomponents.org
    2. commercial web components in general. Is there a place for them for you? What would you expect
    Vitaly Zdanevich
    @vitaly-zdanevich
    Hi, please check/update Wikipedia page, maybe add some screenshots.
    https://en.wikipedia.org/wiki/Web_Components
    plxmax
    @plxmax
    Hi. I am new to Web components. I want to use a search field and I found paper-search-panel. But I have no idea how to use it. Any ideas?
    Joe Pea
    @trusktr
    Do they have docs?
    @plxmax I just checked, and looks like they didn't document really how to actually import it. But I looked at the code, and they're relying on the old "HTML Imports" which has been removed from the web. So, you should not use that lib (or ask them to update it).
    I haven't tried it, but maybe vaadin elements has something you can use. They have a wide range of custom elements, and is actively maintained and documented, so you should be able to read the docs and figure out how to use the elements.
    Joe Pea
    @trusktr
    material-components-web-components is documented, should be easy to get started.
    Joe Pea
    @trusktr
    I recommend searching until you find some that are well documented so you know how to install them.
    http://webcomponents.org might have something you can use, but you need to check them out, see the docs, and see if they explain how to import them into a project or HTML page.
    Joe Pea
    @trusktr
    Each lib is different, some old, some new. Best bet is to rely on libs that have good documentation. The newer, the more likely they are to still work (f.e. they won't rely on defunct things APIs HTML Imports).
    Also ask questions on their GitHub pages. You might get help from specific libs there too.
    Arnur-K
    @Arnur-K
    How should web components look like, if my html looks like this
    graph-tree>
    <graph-tree-item label="Item 1">
    <graph-tree-item label="Item 1-1">
    <graph-tree-item label="Item 1-1-1"></graph-tree-item>
    </graph-tree-item>
    </graph-tree-item>
    </graph-tree>
    Tomasz Pluskiewicz
    @tpluscode
    what are you asking?
    5P4RK3R
    @5P4RK3R
    Hi Guys, I'm working on a web component with react and redux; I stumbled on a issue when i dispatch to the store, the state gets updated but the ui doesn't. It throws an error: Uncaught DOMException: Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.
    How can i fix this?
    Mark Dane
    @angrycat9000
    Sounds like you are trying to call attachShadow twice. It only needs to be called once. I would move it to the constructor of the web component @5P4RK3R
    5P4RK3R
    @5P4RK3R
    @angrycat9000 It worked thanks, But the elements gets appended when i change the state and it is showing the previous value and mutated value in ui
    Mark Dane
    @angrycat9000
    @5P4RK3R sounds like the element is just appending values. Probably need to reuse the existing elements or remove befor adding new ones. You can use the element.shadowRoot property to get access to the shadow root elements
    5P4RK3R
    @5P4RK3R
    @angrycat9000 Thanks mate, I used this.shadow.innerHTML to fix it
    Jeremy J Parmenter
    @JeremyJaydan
    Hey does anyone know if javascript is required for custom elements? I'm looking to simply style <flex-box></flex-box> with css into a re-usable css framework type deal. I'm wondering if there's some sort of catch when it comes to browser compatibility or something else?
    techboyg5
    @techboyg5
    Yes, you don't need JavaScript if you just want to use CSS to style that element. However note that shadow DOM requires JS.
    Jeremy J Parmenter
    @JeremyJaydan
    dope, thanks!
    techboyg5
    @techboyg5
    But I'd highly recommend class instead.
    Unrelated: Are there any web components that actually use closed shadow roots?
    techboyg5
    @techboyg5

    How should web components look like, if my html looks like this
    graph-tree>
    <graph-tree-item label="Item 1">
    <graph-tree-item label="Item 1-1">
    <graph-tree-item label="Item 1-1-1"></graph-tree-item>
    </graph-tree-item>
    </graph-tree-item>
    </graph-tree>

    Web Components work just like other HTML elements, except that they work on any website with the help of Shadow DOM.

    techboyg5
    @techboyg5

    Hi everyone! I'm a developer for a company called ZingSoft. We have a product called ZingGrid which is a commercial grid web component. The code is closed source (https://github.com/ZingGrid/zinggrid) but available for free use in commercial products. How does we fit into the web component community and if we belong on this platform?

    I'm not trying to be spam or promotion, we are deeply involved and invested in web components and am wondering your thoughts on:

    1. commercial web components being available on webcomponents.org
    2. commercial web components in general. Is there a place for them for you? What would you expect

    Make it open-source :)

    Riccardo Pasquini
    @morphy76_gitlab
    hello, I'm trying to publish my first webcomponent but I get the error about no Github URL associated... even because I used gitlab (https://gitlab.com/morphy76/jaf).... what's that about? PS I'm new with frontend dev, any coding hint is welcomed :)
    9 replies
    Riccardo Pasquini
    @morphy76_gitlab
    image.png
    EMazzaglia
    @EMazzaglia
    Hi guys!
    I'm starting a new project and I'm new using web components, what I need to know is if there are components templates to render, and if there are, where?
    Ben Rubin
    @B-3PO

    Hi all, long time fan of web components here. Have been working on a side project for a material design ui component library. I have slowly been working on it over the last 2 years and am finally going to start using it for some projects. I would love to get some feedback on it. Here is a link to the github and to the doc website. There are still some components under development and some others on the road map, but all the basics plus some are there. One big thing to note is the focus on mobile and desktop compatibly (the components are design to work with both and have specific features based on the view)

    https://github.com/webformula/pax-components
    http://components.webformula.io/

    momoko8443
    @momoko8443
    Hi guys!