(FuseNavigation) Trigger observables on item add

(Docs) Fixed Material Color Picker input for the documentation
This commit is contained in:
sercan 2018-11-16 09:53:31 +03:00
parent 842cb37fcb
commit 017ce59254
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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.