@peter-jak

@peter-jak

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: regeneratorRuntime ReferenceError #101731
    peter.jak
    Member

    After using the version
    "smart-webcomponents-angular": "^9.3.18"
    it’s working

    in reply to: Close one tabbed docked window #101418
    peter.jak
    Member

    Hello Yavor
    Have a look https://stackblitz.com/edit/github-e3kfs8?file=src/app/app.component.ts once we save the layout into JSON the tabCloseButtons is lost from the json.
    Best regards
    Peter

    in reply to: Close one tabbed docked window #101401
    peter.jak
    Member

    Hello Yavor
    Thank you very much for your answer. It’s working.
    But there is still one issue. Once I want to save the layout with getJSONStructure() the tabCloseButtons is not saved.
    So after I reload the docking layout the tabCloseButtons is lost. Could you have a look at it?
     
    Thanks
    Peter

    in reply to: static text in smart-menu #100975
    peter.jak
    Member

    Hallo 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.
    Peter

    in reply to: static text in smart-menu #100959
    peter.jak
    Member

    Hi 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

Viewing 5 posts - 1 through 5 (of 5 total)