-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MGREMY
committed
Aug 1, 2024
1 parent
614f87a
commit 254583e
Showing
7 changed files
with
114 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Directive, ElementRef, inject, Input } from '@angular/core'; | ||
|
||
@Directive({ | ||
selector: 'iframe[flowbiteIframeChachedSrc]', | ||
standalone: true, | ||
}) | ||
export class IframeCachedSrcDirective { | ||
protected elementRef = inject(ElementRef); | ||
|
||
@Input() | ||
public get cachedSrc(): string { | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
return this.elementRef.nativeElement.src; | ||
} | ||
public set cachedSrc(value: string) { | ||
if (this.elementRef.nativeElement.src !== value) { | ||
this.elementRef.nativeElement.src = value; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<flowbite-navbar | ||
isFixed | ||
[customStyle]="{ base: 'flex flex-wrap items-center justify-between p-4 2xl:px-60' }"> | ||
<flowbite-navbar-brand link="/"> | ||
<img | ||
src="./assets/flowbite-angular-logo.svg" | ||
class="h-8" | ||
alt="Flowbite Logo" /> | ||
<span class="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">Flowbite Angular</span> | ||
</flowbite-navbar-brand> | ||
<flowbite-navbar-content> | ||
<flowbite-navbar-item link="/ui/docs">Docs</flowbite-navbar-item> | ||
<flowbite-navbar-item link="https://flowbite.com">Flowbite</flowbite-navbar-item> | ||
</flowbite-navbar-content> | ||
<div class="flex flex-row"> | ||
<flowbite-dark-theme-toggle /> | ||
<flowbite-navbar-toggle /> | ||
</div> | ||
</flowbite-navbar> | ||
<section class="antialiased dark:bg-gray-900"> | ||
<flowbite-navbar | ||
isFixed | ||
[customStyle]="{ base: 'flex flex-wrap items-center justify-between p-4 2xl:px-60' }"> | ||
<flowbite-navbar-brand link="/"> | ||
<img | ||
src="./assets/flowbite-angular-logo.svg" | ||
class="h-8" | ||
alt="Flowbite Logo" /> | ||
<span class="self-center text-2xl font-semibold whitespace-nowrap dark:text-white">Flowbite Angular</span> | ||
</flowbite-navbar-brand> | ||
<flowbite-navbar-content> | ||
<flowbite-navbar-item link="/ui/docs">Docs</flowbite-navbar-item> | ||
<flowbite-navbar-item link="https://flowbite.com">Flowbite</flowbite-navbar-item> | ||
</flowbite-navbar-content> | ||
<div class="flex flex-row"> | ||
<flowbite-dark-theme-toggle /> | ||
<flowbite-navbar-toggle /> | ||
</div> | ||
</flowbite-navbar> | ||
|
||
<router-outlet /> | ||
<router-outlet /> | ||
|
||
<flowbite-scroll-top /> | ||
<flowbite-scroll-top /> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters