@peter-jak
@peter-jak
Forum Replies Created
-
AuthorPosts
-
peter.jakMember
After using the version
"smart-webcomponents-angular": "^9.3.18"
it’s workingpeter.jakMemberHello Yavor
Have a look https://stackblitz.com/edit/github-e3kfs8?file=src/app/app.component.ts once we save the layout into JSON thetabCloseButtons
is lost from the json.
Best regards
Peterpeter.jakMemberHello Yavor
Thank you very much for your answer. It’s working.
But there is still one issue. Once I want to save the layout withgetJSONStructure()
thetabCloseButtons
is not saved.
So after I reload the docking layout the tabCloseButtons is lost. Could you have a look at it?
Thanks
Peterpeter.jakMemberHallo Christopher
I think this will not work.- The onReady event may be triggered before the angular async pipe gets its value.
- The async pipe simply doesn’t work in menu. Let’s say I want do display a clock in the menu
export class SomeAngularComponent implements OnInit { public currentTime = new Subject<string>(); ngOnInit(): void { setInterval(() => { const newTime = new Date().toISOString(); this.currentTime.next(newTime); }, 1000); }
In html template I have then
{{currentTime | async}}
The time will be never updated in Menu.
Peterpeter.jakMemberHi Christopher
Unfortunately the nested <smart-menu-item><span>{{ userName | async }}</span></smart-menu-item> works only for static content like:
<smart-menu-item><span>SOMEBODY</span></smart-menu-item> and not for async angular items.
The userName is specified in angular controller: public userName: Observable<string>;
The displayed menu item for async variable is like “Item 3” instead of variable value.
Peter -
AuthorPosts