How can I swipe between tabs using Polymer 1.0? - polymer

I am using Polymer 1.0 and looking to create a tabbed layout where I can swipe between each tab I have. I have found a swipe-pages component, but the dependencies on the site state that it needs "polymer": "Polymer/polymer#^0.4.0" which does not work with the rest of my application. Are there any other components compatible with the latest version of Polymer (or at least Polymer 1.0)?
Thanks

There is a Polymer 1.0 version. See https://github.com/slogger/swipe-pages.

I'm very new in web development but I made an swipeable-pages element for Polymer 1.0 that works with dynamic pages like dom-repeat!
https://github.com/emersonbottero/swipeable-pages.
P.S.: I know the question is old but people may still need it.
P.S.2: Improvements are welcome to the code :D.

Related

Polymer lit-element in polymer 1 app...possible?

New to Polymer BTW. I have polymer 1 app running. Wondering if I can use Polymer lit-elements in Polymer 1?
Trying to achieve: Ask is to embed another module which is written in JavaScript by another team in my company to my polymer1 app. Is there any better way to do this?
UPDATE: Alot of changes have been made since the below answer was given. It may be possible now. Not sure.
No, as far as mixing with other Polymer library iterations, lit-element is stand alone and a upgrade from Polymer 3.
From https://www.polymer-project.org/blog/2018-05-02-roadmap-faq
In summary:
No
Basically it is impossible.
You should consider upgrading to polymer 3 to use lit element
Polymer 1 is not even used in Classes, so it is practically impossible and polymer 1 is falling into disuse so the polymer team do not think it plans to support this new feature.

How to add Vaadin Polymer elements in Vaadin 7 application?

I am trying to build a Vaadin 7 elements and it would be beneficial if I can somehow directly use the polymer elements like these ones -->
http://vaadin.github.io/gwt-polymer-elements/demo/#paper/ButtonSample
However, there is no clear cut explanation or tutorial on how to add polymer elements in Vaadin application directly.
If you want to use web components on server-side there is an experimental addon from vaadin. Here you find a demo application
On the Vaadin forum page suggestion is to take a look at:
https://vaadin.com/labs-elements, https://vaadin.com/directory#!addon/elements-add-on and
https://github.com/vaadin/serverside-elements
but this is still experimental.
While we are waiting for official support you can include Vaadin Elements as stated in Demystifying Web Components or to include Vaadin Elements as stated in Integrating JavaScript Components and Extensions and Using web components in plain java.

Alternative for rich:page component in primefaces UI

I am working on a Migrating project in PrimeFaces 5.1.
The project is already done in rich faces. In our previous project we use Rich:page component for a page. I need a alternative component in PrimeFaces 5.1 UI.
Kindly help me over it. Thanks in advance.
That is very simple to answer. There is none. But if you use a facelets templating mechanism with defines for title etc, there is no real need for such a component in my bit so humbl opinion

Will polymer build more ready-use components?

I am going to port our windows-based Customer Management software to Web-based. I find polymer may be a choice.
However, for our usage, we can't find polymer component has table-view, drop-down menu(aka. the "select" element in html), date-picker, tree list.
Will polymer add these components later? Or these components will not be the target?
Thanks,
Barry
Polymer is just primarily a polyfill library that helps enabling HTML 5 Web Components in browsers that don't support them by themselves.
Web Components can be written by any developer, so you might need to develop some controls on your own especially the table view one. I'd guess you'll find most of the others mentioned in your question implemented one way or another. You should check out some of the WebComponents collection pages:
http://customelements.io/
http://component.kitchen/
http://bower.io/search/?q=web-components
For your table view control: I had a similar problem couple of years ago and had to implement my own solution. Maybe you can find a regular HTML library that supports table views and make it a (Polymer) Web Component by yourself.

Using HTML in Swing Applications

Need some help here..I am trying to write a simple swing application which displays some text based on user actions. Its like help where user clicks on some url and he is redirected to that page. I have huge html code and I want to render it in swing components. I was able to do it in JDK1.6 software but not in JDK1.4. Is there any way we can render complex html in swing components in JDK 1.4 software?
I appreciate help.
Thanks
Padur
I have used Flying Saucer to render complex XHTML on Swing components. It does render very well and includes listener for links. Two caveats:
Document must be XHTML (not HTML)
I haven't tested on JRE 1.4 (which is out of support at Sun/Oracle)
Maybe it's worth a try.