mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
(FuseNavigation) Trigger observables on item add
(Docs) Fixed Material Color Picker input for the documentation
This commit is contained in:
parent
842cb37fcb
commit
017ce59254
|
@ -332,6 +332,9 @@ export class FuseNavigationService
|
||||||
{
|
{
|
||||||
navigation.push(item);
|
navigation.push(item);
|
||||||
|
|
||||||
|
// Trigger the observable
|
||||||
|
this._onNavigationItemAdded.next(true);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -339,6 +342,11 @@ export class FuseNavigationService
|
||||||
if ( id === 'start' )
|
if ( id === 'start' )
|
||||||
{
|
{
|
||||||
navigation.unshift(item);
|
navigation.unshift(item);
|
||||||
|
|
||||||
|
// Trigger the observable
|
||||||
|
this._onNavigationItemAdded.next(true);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add it to a specific location
|
// Add it to a specific location
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
<fuse-highlight lang="html">
|
<fuse-highlight lang="html">
|
||||||
<textarea #source>
|
<textarea #source>
|
||||||
<fuse-material-color-picker [(selectedClass)]="colorClass"
|
<fuse-material-color-picker [(selectedClass)]="colorClass"
|
||||||
(onValueChange)="onSettingsChange()">
|
(onColorChanged)="onColorChanged()">
|
||||||
</fuse-material-color-picker>
|
</fuse-material-color-picker>
|
||||||
</textarea>
|
</textarea>
|
||||||
</fuse-highlight>
|
</fuse-highlight>
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
<div class="section-title">Outputs</div>
|
<div class="section-title">Outputs</div>
|
||||||
<p class="py-8" fxLayout="row" fxLayoutAlign="start center">
|
<p class="py-8" fxLayout="row" fxLayoutAlign="start center">
|
||||||
<code class="mr-16">onValueChange</code>
|
<code class="mr-16">onColorChanged</code>
|
||||||
<span>
|
<span>
|
||||||
Event that triggered when a color selected. Returns an object that holds palette, hue, class name,
|
Event that triggered when a color selected. Returns an object that holds palette, hue, class name,
|
||||||
background and foreground colors.
|
background and foreground colors.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user