What is difference between v-app-bar and v-toolbar in vuetify? - vue.js

I just started exploring vuetify. All the vuetify componets resides in <v-app>.
I wanted to create menu for my site so in documentation I found <v-app-bar> and <v-toolbar>
I am confused that if I should keep menu items inside <v-app-bar> or <v-toolbar> as offical documentation says
About <v-app-bar> https://vuetifyjs.com/en/components/app-bars
The v-app-bar component is pivotal to any graphical user interface
(GUI), as it generally is the primary source of site navigation. The
app-bar component works great in conjunction with a
v-navigation-drawer for providing site navigation in your application.
About <v-toolbar> https://vuetifyjs.com/en/components/toolbars
The v-toolbar component is pivotal to any gui, as it generally is the
primary source of site navigation. The toolbar component works great
in conjunction with v-navigation-drawer and v-card.
Both the description are almost same. What is difference in both and when we should use what? or we should use v-toolbar inside v-app-bar?

Per the Vuetify Migration Guide -- 'Migrating from v1.5.x to v2.0.x':
v-toolbar: All existing scrolling techniques and app functionality
has been deprecated and moved to v-app-bar.
Thus, starting in Vuetify 2.0, v-app-bar is what you probably want to use at the top of most typical apps since you can do scrolling-related effects and designate v-app-bar as a unique 'top level' application component using the app prop.
On the other hand, v-toolbar could be used for other 'subordinate' cases where scrolling should definitely not affect the toolbar, perhaps if v-toolbar is being used as part of a in-screen widget.

Actually v-app-bar extends v-toolbar to give you additional properties that you can use.
These properties give you far more granular control over the overall layout of the toolbar and how it responds to sizing and content changes in the surrounding space.
You can look at the properties of each and see how the v-app-bar has a dozen or more additional properties that you can leverage to customize the functionality and design of it, whereas the toolbar is opinionated about its purpose and limits those functionalities.

Related

React Native Is responsive?

First and most important: I am by no means a developer. We hired an agency to develop an APP for us, and i was given by a developed solution that i am not convinced if it is the best solution, So i would like to ask you guysfor advice.
Unfortunatelly i cannot put pictures nor links to code for the app, but i will do my best to explain myself:
The problems i encountered are mainly two:
All items appear to have fixed sizes applyed to them: When testing the app on different devices, the size of the elements is not responsive at all. In fact on small devices (Moto G5) There are elements that fall behind the bottom navigation bar making them unaccessible.
Lot of stuff fall below that said bottom navigation bar.
My question is the following:
Is react native responsive?
In web development there is a lot of flexibility when it comes to responsiveness with CSS and JS. Is React native any different? or there is a way to prepare the layout so it fits most of the common sizes without losing acces to interactions?
Hope i explained myself correctly. and again, sorry for not asking a technical specific question.
React Native is designed to be responsive, but it requires a different approach compared to web development. In web development, you can use CSS and JavaScript to make your website responsive, but in React Native, you use a different set of tools.
We have many ways to make the app responsive with the device's large screen and small screen.
Use the Dimensions API: React Native provides the Dimensions API, which allows you to get the dimensions of the screen at runtime. You can use this information to adjust the layout of your app based on the size of the screen.
Use third-party libraries ex: react-native-size-matters, react-native-responsive-screen, ...
Use Flexbox: React Native uses Flexbox for layout, just like web development. Flexbox is a powerful tool for creating responsive layouts that adapt to different screen sizes. You can use the flex property to adjust the size and position of elements on the screen.
In terms of your specific issue with elements falling behind the bottom navigation bar, it's likely that the layout is not taking the height of the navigation bar into account. You can use the Dimensions API to get the height of the navigation bar and adjust the layout accordingly.

Blazor: Detect when component is shown in the screen

Let's say I have a blazor component that uses a lot of resources to create an animation, it doesn't make sense to keep rendering it if the user scroll past the component (i.e. the component not visible in the screen). Is there a way to detect this using Blazor?
I am aware that I can rely on Intersection Observer API with JS, but I am looking for something in Blazor/C#.
Thanks,

How do I integrate react-navigation with an existing tab view component

I would like to use React Navigation with a tab view component that is not its default tab view (the one I have chosen to use is react-native-tab-view, as it provides a much more comprehensive interface for customization of its appearance). However, I just don't seem to be able to understand the documentation for writing custom navigators and routers. What are the basic steps I will need to perform this integration? How is this going to be affected by the fact that I will need to be able to compose a StackNavigator inside of some of my tab view's tabs?
As pointed out by #MarsonMao in the comments, the default implementation is based on react-native-tab-view. Unfortunately, it didn't provide the hooks I needed to make it work, but I was able to make a subclass of TabBarTop with a copy of the original render function modified to include the change I needed.

What Bootstrap 4 components work on css only (without Jquery, Tether)

I have previously used bootstrap 3 css only with angular 2 for an application which did not require jquery dependent bootstrap components like modal, carousel etc.
I am now considering using bootstrap 4 with Angular 2 and have looked through bootstrap 4 documentation, but still confused on what components depend on jquery and/or tether.js and what components work if I include css alone. Any help will be appreciated!
Current Alpha (6) has 3 sets of CSS.
bootstrap-reboot - defines only Html standard tags
bootstrap-grid - defines the mobile-firt grid system, e.g. .container & .col-x-x
bootstrap - full version
Generally speaking, the first two above will not require the JS dependencies.
If you want to dig deeper then a quick look at the bootstrap.scss source has the JS dependant items listed separately. Thus, the non-JS dependent components are:
Core CSS
reboot
type
images
code
grid
tables
forms
buttons
Components
transitions
dropdown
button-group
input-group
custom-forms
nav
navbar
card
breadcrumb
pagination
badge
jumbotron
alert
progress
media
list-group
responsive-embed
close
Other
print
Alternately, as of 4.4, the only components that require JavaScript are
Alerts for dismissing
Buttons for toggling states and checkbox/radio functionality
Carousel for all slide behaviors, controls, and indicators
Collapse for toggling visibility of content
Dropdowns for displaying and positioning (also requires Popper.js)
Modals for displaying, positioning, and scroll behavior
Navbar for extending our Collapse plugin to implement responsive behavior
Tooltips and popovers for displaying and positioning (also requires Popper.js)
Scrollspy for scroll behavior and navigation updates

Bootstrap template with off-canvas nav

This is not a coding question but rather a quick stop for directions.
I am looking into using Bootstrap framework for my next project. Bootstrap 3 official site has a great selection of default templates, but it seems to me they all have the same flaw -- I'll explain below.
One of the best responsive design features if a combination of JS and CSS media queries to take a regular, across the top, navigation and turn it into a hidden (on click) expand/collapse menus. This is great, BUT, all of the examples simply drop the menu links below each other and while it looks OK on a phone, it looks a bit ridiculous when a link with a single word, for example "About", is placed in a div of its own 768px wide.
A much nicer solution is to have that left or right sliding menu bar that pushes or overlaps the content of the site. Unfortunately there are not too menu of such examples, or at least I was not able to locate them.
This is where I need some help -- any basic templates with preferably right side menu on for smaller viewport browsers?
Here's an example right off-canvas navbar that may work for you...
Most of the off-canvas examples I've found push a sidebar off-canvas, but the top navbar is still collapsed into the usual vertical nav.
However, this example adjusts the navbar into a sliding right sidebar on smaller devices:
https://codeply.com/p/KDMFdhc6c8 (Bootstrap 3.x)
You could also consider switching over to Foundation (I've use bootstrap and foundation frameworks for several years and bout area great, one usually fits a project better than the other, depending on the needs).. Foundation has a native off-canvas component and it works very well (both left and right side off-canvas is available!)
foundation.zurb.com/docs/components/offcanvas.html