javascript - Best way to implement switchable pages for a bootstrap SPA -
i creating relatively simple web ui embedded platform. layout styling bootstrap 4 seems nice way go. idea single page application without using additional framework. number of pages limited, fixed navbar or tabs 4 pages. of pages contain number of "cards" show information. navigation controlled embedded part via websocket.
now more concrete, way create "switchable pages" bootstrap.
- hiding showing div
- hiding showing container ( possible ? )
- dynamically create page within javascript function
- any other option ?
i not have experience javascript , web programming, pointers or suggestions helpful.
the easiest way add same class (lets assume it'll _view
) , different ids "views". $('._view').hide(); $('#' +id).show();
every time need open "page". p. s. underscore in class name points maintainers class not used styling, needed script
Comments
Post a Comment