Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<button class="close" mat-icon-button color="warn" (click)="onClose()">
<mat-icon>close</mat-icon>
</button>
<igo-ogc-filterable-item
igoListItem
[layer]="layer"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
:host {
.close {
margin-top: 1px;
margin-right: 2px;
position: absolute;
top: 0;
right: 0;
}
igo-ogc-filterable-item {
width: 95%;
display: grid;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {
Input,
Output
} from '@angular/core';
import { MatButtonModule } from '@angular/material/button';
import { MatIconModule } from '@angular/material/icon';

import { OnUpdateInputs } from '@igo2/common/dynamic-component';
import { WidgetComponent } from '@igo2/common/widget';
Expand All @@ -19,7 +21,7 @@ import { IgoMap } from '../../../map/shared/map';
templateUrl: './ogc-filter.component.html',
styleUrls: ['./ogc-filter.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [OgcFilterableItemComponent]
imports: [OgcFilterableItemComponent, MatButtonModule, MatIconModule]
})
export class OgcFilterComponent implements OnUpdateInputs, WidgetComponent {
@Input() layer: Layer;
Expand Down
Loading