Is there a way to use app-route to create a catch all route?
Adding wild card doesn't seem to work the way I was expecting.
It doesn't look like this is possible as of v0.9.2 of app-route. The fallbackSelection attribute on iron-pages might work for you.
If you have a different use case than what's described in this issue, I suggest opening a new issue within the Github project.
Related
I using vue3. I need to router-tabs likes vue-router-tab.
I tried to use vue-router-tab on Vue3, but its changelog shows that it only works with Vue2.
So I want to make a router tab myself. But I don't know how to make it.
Please tell me how to make the most basic router-tab.
You want to rely on Vue's <slot> method. There are multiple ways of doing it from there.
There's a LearnVue that will help you learn how to do it: https://learnvue.co/tutorials/vue-reusable-tabs-component
What is the minimum example, if any, using the Polymer PWA (https://polymer.github.io/pwa-starter-kit/), to show correctly a vaadin-grid?
I tried many different combinations, but never a working one, with, often, this warning:
property-accessors.js:275 Polymer::Attributes: couldn't decode Array as JSON
Am I doing anything totally wrong?
Thanks
Andrea
Starting from the v5.2.0-beta1 we recommend using following Grid features:
column helper elements (vaadin-grid-filter-column, vaadin-grid-sort-column)
column convenience properties (path, header and text-align)
renderers for more complex cases where you previously used templates
See the example here: https://glitch.com/edit/#!/lying-blanket?path=app.js:29:42
https://lying-blanket.glitch.me/
Note: I'm using fetch API here for simplicity only, you can use XHR if necessary.
My problem is i need to execute multiple times one controller, but i need to control that action. How can i add or remove an ng-controller from html tag. For example i have controller with name view and i need an <div ng-controller="view"> but i need a method to toggle it to <div>. On toggle would be better to delete the controller that took place, but i think angular do that automatically Any idea, perhaps something with directives?
You should use a directive instead of a controller. Controllers are not meant to be set and removed like this, the only way to do so would be to recompile the HTML each time which would bring more problems than it solves.
In short, this is an XY problem, please try to step back and formulate what problem exactly you are trying to resolve.
I have an control, to which I want to add a custom html attribute called, previousValue.
The Salesforce Developer's Guide assures me that I can do this by prefixing the attribute name with html-.
So I have an element that appears thus:. I also have the docType="html-5.0" attribute in my page control.
However, in Eclipse I get an 'unsupported attribute' error. I have upgraded to the latest force.com IDE; can any one tell me why this isn't working? What else do I need to do?
Thanks.
After much experimentation, the answer to this seems to be that the salesforce developer's guide is inaccurate and the 'hmtl-' prefix is not supported by the <apex:inputField> component. I can add it without a problem to an <apex:outputPanel> component. Don't understand why this should be so and the whole point to using these attributes is to locate data in a relevant place and avoid complex jquery selects to find the data relative to the location at which it is required.
I'm working on a Safari extension, and I'd like to detect when <applet>s are going to load (the onbeforeload event) on a page. However, there seems to be no such event for these.
How should I do it? Transform all <applet> tags to <object> tags and then intercept their onbeforeload events? I think it would break the document.applets collection, so it's not a very cool solution. Is there a better way?
You can check that using JavaScript. The applet element in HTML DOM has an isActive() property. You can test that on intervals. You can find several basic examples here.
Since <applet> is not very subtle, I just hook on DOMContentLoaded and DOMNodeInserted to catch <applet>s as soon as I can. It's butchy but I don't think I can do any better.