I am new to angular.I have two components,One to Display an image slider and another for displaying the list of categories (similar to side nav,but displayed as a list).I want my list component to draw over the image slider so that both are visible, with the image slider's content under list is hidden.
Is there any way to achieve this?
Thanks in advance.
Please have a look at this:Layout Of Webpage
<mat-nav-list>
<a mat-list-item routerLink="#" *ngFor="let list of lists">
<mat-icon >
{{list.category_icon}}
</mat-icon>
{{list.category_name}}
</a>
</mat-nav-list>
Related
I am new to semantic UI (and web development in general) and am looking to implement a design like this:
So to be clear: The bar with icons is always there, the labels for the icons appear only when the mouse is over the menu bar somewhere; label rectangle hoovers over the site content and it does not stretch from top to bottom.
Can anyone give me a tip on how to accomplish this?
Menu/icon bar can be a sidebar that is always visible I guess:
<div class="ui visible left thin sidebar borderless vertical icon menu">
<a class="item">
<i class="search icon"></i>
// Would like label text here
</a>
..etc
</div>
But I don't see anything that can help me with the labels/popup and preferably have the definition of that text in the same item.
Any help greatly appreciated!
As nice as Semantic UI is, we now decided that it not the right framework for us. We are building an technical application, not a regular website, which is all custom design and we would run into issues like this all the time. #Michael: thanks for answering!
After the mat-menu is triggered and items are shown, the popup elements are not scrolling along with the page. Instead they seem to be broken from the mat-menu icon and they are always visible as I scroll the page.
<mat-icon class="mat-accent" [matMenuTriggerFor]="menuOptions">menu</mat-icon>
<mat-menu #menuOptions="matMenu"> <button mat-menu-item *ngFor="let menuItem of menuItems" (click)=selectMenuItem(menuItem)> {{menuItem.text}}</button> </mat-menu>
As shown in below picture, even though the initial menu-items popup appeared correctly, as I scroll the page, the popup elements are no longer attached to the above hamburger icon [which was attached with matMenuTriggerFor as shown in above code]
Issue will be fixed in the next version.
For now you can do workaround in .mat-menu-panel set position: fixed!important;
I am using Vue.js (which I don't think have anything to do with this issue) and a color picker package vue-color. What I want to achieve is following:
A button or rectangle element have color as selected color when clicked show a menu type dropdown with color picker. User can pick color here, and when they click outside color picker, it collapse. I tried doing this with bootstrap dropdown and everything works fine except when I click to pick color the menu collapse(refer to following code):
<ul>
<li class="dropdown">
Dropdown <span class="caret"></span>
<ul class="dropdown-menu" role="menu">
<li><sketch-picker v-model="colors" /></li>
</ul>
</li>
</ul>
Above code shows this output, which is same as what I want to achieve but on first click only it collapse, hence user couldn't tune it.
On exploring I found below link, but am not able to translate it into vue.js
https://github.com/react-bootstrap/react-bootstrap/issues/1490
I also tried using select and putting color-picker in it's option, but then no color-picker comes and only r, g, b values are shown.
I also tried to make my own div and show-and-hide using vue. But instead of coming over base div it takes it own space even with z-index (I know this is workable but I couldn't get this working). Any help would be appreciated
At the moment the below code means the link for "deploy-sidebar" and "notifications.html" are overlapping, meaning if I try and click the deploy-sidebar icon, its actually the notifications link thats activated.
<div class="content-controls solid-color fixed-header">
<a class="deploy-sidebar" href="#"></a> <em class=
"content-title">Title</em>
<a class="mytextwithiconFriendActivityNo" href="notifications.html"></a>
<a class="mytextwithiconFriendActivityYes" href="notifications.html"></a>
<a class="mytextwithiconBadgeActivityNo" href="notifications.html"></a>
<a class="mytextwithiconBadgeActivityYes" href="notifications.html"></a>
</div>
I thought I could use margin-left to position the icon correctly, but this creates the overlap with the deploy side bar icon.
Guessing I need to use CSS, but can I use some other method to position the icon where it is, without creating the overlap that acts as a link. I've tried background-position too, but that does not seem to work
When I have an element associated with a Twitter Bootstrap Tooltip and the Tooltip will overlap outside the browser window, it tries to realign within the window but it misaligns vertically (i.e. the top alignment of the tooltip is now centred rather than above the target element)
Has anyone encountered this before and if so, what was the work around/fix/update?
Yes, others have encountered this before. For example, Issue #4125: Bad position of tooltip or Issue #3556: Tooltips near edge of window don't activate properly.
In the former it is suggested to either disable text wrapping or set a fixed height.
In the latter it is suggested (rather jestingly - but nevertheless potentially useful) to set a different positioning on tooltips you know are going to be near the window edge. E.g., placement: 'left' or placement: 'right'.
At this point there doesn't seem to be any impetus toward getting this handled in the repo.
I have experienced this issue and found the following.
Caused the issue
<a href="https://www.facebook.com/ComfortEstatePlanning" data-toggle="tooltip"
data-placement="bottom" title="" data-original-title="follow us on Facebook"
><i class="fa fa-facebook-official fa-lg fa-2x pull-right"></i></a>
Note the pull-right class is on the i tag
<a href="https://www.facebook.com/ComfortEstatePlanning" data-
toggle="tooltip" data-placement="bottom" title="" data-original-
title="follow us on Facebook" class="pull-right"><i class="fa fa-facebook-
official fa-lg fa-2x"></i></a>
Solution is to put the pull-right class on the a tag