Change NavigationList Items after view is rendered

I have a ToolPage app. The content of the SideContent needs to be populated from a response of Firestore collection read, which is async (promise).

So far, every single attempt to sort this out failed. Tried to fetch data in the Component.js but still response is after view got rendered. Even attempted to insert the items manually, but in this case although items have been added to the control, the view does not change at all

Is there any posible way to wait for Firestore reponse?
Or at least to rerender the view from the OpenUI5 perspective?

In case you wonder, below is the sidecontent definitions on the view:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> <tnt:sideContent>
<tnt:SideNavigation id="_IDGenSideNavigation1"
visible="{= ${!device>/system/phone}}"
expanded="true"
selectedKey="Lobby"
itemSelect=".onItemSelect">
<tnt:NavigationList id="_IDGenNavigationList1" items="{path: '/Navigations>/navigations'}">
<tnt:NavigationListItem id="_IDGenNavigationListItem1"
text="{title}"
icon="{icon}"
key="{key}">
</tnt:NavigationListItem>
</tnt:NavigationList>
</tnt:SideNavigation>
</tnt:sideContent>
</code>
<code> <tnt:sideContent> <tnt:SideNavigation id="_IDGenSideNavigation1" visible="{= ${!device>/system/phone}}" expanded="true" selectedKey="Lobby" itemSelect=".onItemSelect"> <tnt:NavigationList id="_IDGenNavigationList1" items="{path: '/Navigations>/navigations'}"> <tnt:NavigationListItem id="_IDGenNavigationListItem1" text="{title}" icon="{icon}" key="{key}"> </tnt:NavigationListItem> </tnt:NavigationList> </tnt:SideNavigation> </tnt:sideContent> </code>
        <tnt:sideContent>
        <tnt:SideNavigation id="_IDGenSideNavigation1"
            visible="{= ${!device>/system/phone}}"
            expanded="true"
            selectedKey="Lobby"
            itemSelect=".onItemSelect">
            <tnt:NavigationList id="_IDGenNavigationList1" items="{path: '/Navigations>/navigations'}">
                <tnt:NavigationListItem id="_IDGenNavigationListItem1"
                    text="{title}"
                    icon="{icon}"
                    key="{key}">
                </tnt:NavigationListItem>
            </tnt:NavigationList>
        </tnt:SideNavigation>
    </tnt:sideContent>

And this is the Firestore fetch:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code> getNavigations: function () {
this.collRefNavs.get().then(
function (collection) {
var navModel = this.getView().getModel("Navigations");
var navData = navModel.getData();
var navs = collection.docs.map(function (docNav) {
return docNav.data();
});
navData.navigations = navs;
var navList = this.getView().byId("_IDGenNavigationList1");
navData.navigations.forEach(
function (element) {
var index = 0;
navList.insertItem(index, element)
}
)
}.bind(this));
},
</code>
<code> getNavigations: function () { this.collRefNavs.get().then( function (collection) { var navModel = this.getView().getModel("Navigations"); var navData = navModel.getData(); var navs = collection.docs.map(function (docNav) { return docNav.data(); }); navData.navigations = navs; var navList = this.getView().byId("_IDGenNavigationList1"); navData.navigations.forEach( function (element) { var index = 0; navList.insertItem(index, element) } ) }.bind(this)); }, </code>
            getNavigations: function () {
            this.collRefNavs.get().then(
                function (collection) {
                    var navModel = this.getView().getModel("Navigations");
                    var navData = navModel.getData();
                    var navs = collection.docs.map(function (docNav) {
                                return docNav.data();
                            });
                    navData.navigations = navs;

                    var navList = this.getView().byId("_IDGenNavigationList1");
                    navData.navigations.forEach(
                        function (element) {
                            var index = 0;
                            navList.insertItem(index, element)
                        }    
                    )
                }.bind(this));
        },

I ended up using the Visible property of each item instead. By manipulating this, it gets the job done. Any other way to change the sideContent does not get reflected. In my case this implies that I need to handle the menu in a different way, rather than binding the items to a model and expecting that to get reflected in the View

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật