Vue.js - custom photo grid with custom overlay - vue.js

how can i make a photos grid (each photo is a card) with custom overlay.
when the user hover the photo, he will see the details overlay.
so the user will see the photo and details on it.
i tried to do this with "Beautify" and "Bootstrap-Vue"
and did not succeed.
example for what i look for: example website

Just build your grid of items - styling them with bootstrap "Card" component and grid system to make it as a grid.
Then just use this custom vue component with v-for and then bind #mouseover + #mouseleave on this element to change the state of hovered property or whatever you like to call it. Then just change your text or structure in your component according to hovered state.
Simple demo here:
http://jsfiddle.net/e8y0hLps/

Related

React-native custom component renders list items under views of other components

I have created an autocomplete textbox component which basically renders a list of suggestions as the user types. When it is the only component on the screen it works fine but when I try putting it inside a view with another component its view seems to render over the component it is placed alongside. When I put them in separate views the list seems to render under the view below it. I was just wondering if there was a way to render the list above the other views on the screen? Thanks for your help
I suggest you to render a modal on pressing the search view and the modal should contain your textbox for typing and the flatlist below it. The modal will render above all views on your screen. for more help read the documentation.
https://facebook.github.io/react-native/docs/modal

Is it possible to render a vue component offscreen and convert to an image?

I'm implementing a drag and drop grid dashboard similar to cryptotiles.io or microsoft's powerbi. I have the grid working using vue-grid-layout. I want to now implement a drawer to add in more tiles. Would it be possible to render a component on plan on displaying on the grid onto an offscreen canvas. From there convert that to an image and use the image as a preview so that user's know what the component kind of looks like before adding it to the actual grid?
edit: html2canvas offscreen
I found this. I'm wondering if adding to the dom off the window somehow to make a thumbnail would affect performance?

Navbar image between title and buttons

Is there a way to put a image or some text next to the buttons on the left and right side, but not clickable?
I want to provide some user info (just a number) that's always visible, but it's not an action, so no button.
you can use a custom component for the navBar, using:
navBarCustomView: 'example.CustomTopBar' //registered component name
you can have a look to the style format for the navBar in the docs

objects inside Ext.tab.Panel

I am writing simple apps with Sencha Touch 2. I see that the basic object in app/view/Main.js is Ext.tab.Panel.
What other Ext objects can be embedded directly into Ext.tab.Panel? Where can I look up this information?
From the Sencha Touch 2.3.1 docs, Ext.tab.Panel section:
http://docs-origin.sencha.com/touch/2.3.1/#!/api/Ext.tab.Panel
Tab Panels are a great way to allow the user to switch between several
pages that are all full screen. Each Component in the Tab Panel gets
its own Tab, which shows the Component when tapped on. Tabs can be
positioned at the top or the bottom of the Tab Panel, and can
optionally accept title and icon configurations.
Basically, you can put any view class which is subclass of Ext.Container inside a tab panel.
You can put any view you want.You can even put another container inside a container
Have a look at sencha touch docs.
http://docs.sencha.com/touch/2.3.1/#!/guide/views

Galleriffic - how to display div on mouseover, hide on mouseout?

I'm trying to display exif info inside a div when hovering over a div element in the gallery (image or filename). It's easy enough to do outside of the gallery, but when I try to do it with a div element of the gallery, nothing happens because the content is being served up via jquery.galleriffic.js dynamically.
You can see the effect here when you mouseover the image:
http://forums.dpreview.com/forums/post/50833256
I have the exif info to display in a database, so I just need to know how to show/hide the div when hovering over the image. Trial and error would take me a while, so if you're an expert, I'd appreciate some advice on where to place the .bind("mouseover")... statements in jquery.galleriffic.js
This is a similar question, but the problem wasn't resolved:
jQuery Galleriffic issue with jQuery inline
Add the exif data to the "caption" area (defined in galleriffic.captionContainerSel), and show/hide with css when you hover the slideshow image.