I'm trying to use angular-material and specifically the md-select directive. In their example the selection container opens up so it hides the selector and stretches both up and down as seen in these images
Before opening the selector:
After opening the selector:
I use it in the top of my screen and I would like the selection container to open down (like old-school drop-down lists). So I'm trying to achieve something that looks like this: (just for clarification - I made this image using paint. It's not that I was able to make it happen)
Here is a code pen with the real example: http://codepen.io/AviEt/pen/ONOqjO
Related
i'm wondering the way to get the state for each section, using React fullPage.js.
I want to know the way to get section's state, so i can give the css property to the header for each different sections.
Such as, when you get to the website, the header is shown. However, from the second page, the header goes on disapper(display:none).
Thanks for giving me a hand !
You can use multiple methods:
Using fullpage.js callbacks (See JS example or React Example)
Calling fullpage_api.getActiveSection (See example)
Using CSS state classes (See example or example 2)
I'm using angular material, which has a neat tooltip, but it's not supporting HTML. So basically, just like a regular tooltip, when I hover over an element I want the contents of a component to appear on the right/left/top/bottom (wherever there is enough space available).
How can do that?
I have the same content to be displayed on a pop-up and desktop view.
I already used media queries to adjust the content on desktop/mobile view. But in desktop view, the same content needs to be displayed on a pop-up with different margins.
How can I achieve this? Please help. Thank you.
Just add different margin that will overwrite default one based on parent class of the component - in your case it will be pop-up class.
If you do not want to increase CSS specificity - you may try add class modificator (eg component--big-margin) if you are using CSS methodology like BEM.
I'm writing an AngularJS app. I need to open a particular modal popup that is big in size. Is there any AngularJS library out there that allows me to open a modal popup according to my specification ? I have taken a look at AngularStrap : http://mgcrea.github.io/angular-strap/##modals, which looks like it doesn't support resizing at all, and AngularUI - Bootstrap : http://angular-ui.github.io/bootstrap/#/modal, which supports an option for big modal or small modal. I have measured the big modal and it's only 900px in width, which is not that big for me. I want the option to open the modal with specified size at will.
I have seen some answers on here that suggest to modify the .modal CSS if I want bigger modal popup, but I can't. Other parts of the code did use default modal popup, modify it will cause a mess everywhere else.
Is there any suggestions on how to accomplish this with AngularStrap (preferred library) or AngularUI - Bootstrap ?
Thanks,
You can take a separate class name for that modal and make CSS changes using that class name.It won't affect the existing modals.
I ended up using jQuery.addClass to append a separate class name into that modal. This is precisely the effect I'm looking for.
I tried using windowClass to my modal service and then appending custom CSS class to this:
windowClass: 'app-modal-window'
.app-modal-window .modal-dialog{width: 375px;
}
i am looking forward to make a welcome screen of my web app like the picture i shown..
here is a pic of example:
http://img600.imageshack.us/img600/4144/1j5h.png
The truth is i have tested many almost all the panels that GWT has to offer, and still i cannot make it.
For example:
The upper header, i made it with a DockLayoutPanel like this:
DockLayoutPanel Header = new DockLayoutPanel(unit.PCT);
header.setStyleName(¨fw¨);
header.setWidht("100%");
header.setHeight("35px");
header.addEast(ingresar,15);
header.addEast(pass,15);
header.addEast(user,15);
Using that panel, i can have all the 2 boxes and the button on the right corner of the screen, and with AUTO-WITDH.
*(even i cannot pad the red button)..
As you can check the horizontal Center Panel has a different style, i create it as Horizontal Panel, but when i do :
header.add(center_panel);
It is useless, the css from header will ofuscate the css from horizontal panel, also i cannot get the box right in the CENTER.
i have zero experience in GWT, i would like if someone can tell me the way, because i am using panels and i am not quite sure that i am using the right ones for this tasks, or the best ones.
THanks very much
Facundo
If you don't have much experience in GWT components try creating the UI with using GWT UI Binder. Its much more similar to creating a layout with html and css. Also you can use most of the html elements such as divs,spans etc.. GWT Uibinder
You can give styles on individual panels like,
for horizontal,
HorizontalPanel hp=new HorizontalPanel();
hp.setStyleName("");