A-Frame: How to make HTML elements visible in VR mode - aframe

I am trying to create a VR experience using A-Frame. Currently I have an HTML interface elements on the screen.
Currently, when I go into VR I cannot see these elements. How can I implement them on VR?
Screenshot

Related

Simulating mobile resolution (or mobile view) in a component of an Angular 9 application

I need to have a section/component of an angular application to simulate responsive view of my form data. For example, lets say I have an angular app that has a form. After filling up that form the form data is then sent/passed to a component Simulate which then renders the form data. The Simulate component has an input which allows the user to switch between mobile, tablet, medium laptop or big screen views, in short the form data needs to be rendered in a responsive way. I know I can just get the height and width of the Simulate component but there is another angular app, say Viewer-App which only takes the form data and renders the data and that app is responsive. So if I just modify the height or/and width of the component the screen width and height is still the same as that of the current device and not of the modified height or width of the component (Simulate).
My question is, how do I go about the Simulate component such that the media queries or the css behaves as if it is being rendered in a specific screen? I have seen many examples using an iframe but none where a component is passed to that iframe and the iframe renders it. I can configure the url of the iframe to a source of the Viewer-App with the appropriate route params to the form data, but that would mean making an HTTP request which I want to avoid.
I am using Angular 9 with Bootstrap 4 (without the JS part, just the grid).
This link has a solution but it uses an iFrame.
This link has an iFrame in a component's template but it doesn't seem feasible in my situation.

Google App maker mobile and browser compatibility

App maker sample projects are working perfectly in mobiles, forms and tables are adjusted perfectly to the mobile view. But whatever we developed in app maker the designs are not adjusted to mobile layouts they are still in the desktop view. Is there any option to configure the application to work in mobile.
Our application is not working correctly in safari is that any browser compatibility issue from app maker or it is the issue from our side.
You need to use the Flow and Layout sections along with Panels to make sure your widgets group/resize/align correctly when resizing the screen. You can test this easily in chrome by pressing F12 and toggling the device toolbar (Ctrl-Shift-M or the 2 mobile devices icon at the top of the sidebar).
Read up on CSS Flexbox to understand how the Flow section works. With a combination of Fill Parent and Fit to Content in layout, using horizontal/vertical Panels, and grouping your widgets in Panels, along with using the Flexbox features, you should be able to get your screen to accommodate desktop and varying sized mobiles. It definitely takes some time to get the right combination though.

Angular 2: User drag for touch devices at runtime

I have a grid that allows items inside to be dragged and resized. I want the drag effect to appear when an item is dragged. If I dd user-drag attribute in css against the element, it doesn't allow for resize. So, I am attaching that css property to the element at runtime (using Renderer.setElementStyle) on MouseMove method. It is all working perfectly for mouse related operations.
Now, I need to replicate the same for touch devices. Basically, I need to attach the user-drag property to an element on touchStart event. Using Renderer.setElementStyle does not help.
Questions:
1. Is drag effect visible on touch devices if we use user-drag property?
2. If yes, how we set this at runtime in an Angular application?
Answer to this one:
HTML5 drag and drop API does not support touch based interactions. Only mouse. So setting this attribute won't matter for touch cases.
To achieve drag and drop one should either build that using touch events (touchstart, touchmove, touchend, touchcancel) or leverage libraries.

How to use Material Design Lite to target only desktop browser

I'm using MDL for a desktop-only web application and I do not need the content to be responsive. That is, even if the user resizes the browser window, I don't need to re-arrange the content. Neither it will ever be browsed on a mobile device. How do I prevent the content from being responsive?
https://getmdl.io/components/index.html#layout-section/grid
I have provided reference to the MDL grid at the above link.
The content should not be responsive without initiating something like the mdl-grid class and mdl-cell class which would then allow you to label pieces like a content card with specific sizing, which will resize based on the device. If you are using your own style sheets you could create a card class which would have a specific pixel width you believe would work best for the project on a desktop.

Lightbox with Flex

I want a fusion chart in my flex app to display with a Lightbox effect like the effect you get when you click on any of the charts here or checkout the demos here
These effect have been attained with the help of javascript. How do i get the same effect via Flex? Any idea?
Thanks a lot
I built a Flex component called PopUpThumbnail that is very similar to HTML/JavaScript lightbox components.
Here's an example application that I created with it to displays Flickr images.
Add a mask over the top of the whole application with the content area in the middle and the semi alpha area around it. Clicking on the surrounding mask removes the layer, and you can interact with the content area as normal (make it look like a popup rather than actually using one...)

Resources