Monday, July 29, 2019

What are Framework7 Interview Questions?

A list of top frequently asked framework7 interview questions and answers for freshers and experienced are given below.

1) What is Framework7?

The Framework7 is a free and open-source mobile HTML framework. It is used to develop hybrid mobile apps or web apps for iOS and Android devices. It is compatible with other frameworks like also be like Angular, React.

2) In which year Framework7 was introduced?

The Framework7 was introduced in 2014. Its latest version v3.1.1 was released on August 3, 2018, licensed under MIT.

3) What is the reason behind Framework7 popularity?

The Framework7 is popular because of the following reasons:
  • It facilitates you to develop apps for iOS and Android both.
  • The learning curve for Framework7 is very easy.
  • Framework7 has many pre-styled widgets/components.
  • It has built-in helper libraries.

4) What are the main features of Framework7?

Main features of Framework7:
  • Framework7 is an open source framework, so it is free to use.
  • Framework7 has easy and familiar jQuery syntax so you can learn it very easily.
  • Framework7 has the built-in FastClick library, so it is very easy to control-click delay for touch UI's.
  • Framework7 has built-in grid system layout for arranging your elements responsively.
  • Framework7 dynamically loads the page from the template via flexible router API.

5) What are the advantages of Framework7?

Advantages of Framework7:
  • Framework7 is not dependent on any third party library.
  • Framework7 has its custom DOM7 for DOM manipulation.
  • Framework7 can also be used with Angular and React frameworks.
  • Framework7 facilitates you to create apps once you know HTML, CSS, and some basic JavaScript.
  • It supports faster development via Bower.
  • It is easy to develop apps for iOS and Android without learning it.

6) What are the disadvantages of Framework7?

Disadvantages of Framework7:
  • Framework7 only supports platforms like iOS and Android.
  • The online community support for Framework7 is not as broad as iOS and Andriod.

7) What are the several layouts for Framework7?

Framework7 provides different types of layouts for your application. It supports mainly four types of Navbar/Toolbar layouts:
  • Static Layout: The static layout is most often used layout type and includes navbar and toolbar which can be scrollable page content and each page contains its navbar and toolbar.
  • Fixed Layout: Fixed layout uses its navbar and toolbar which can be visible on screen and cannot be scrollable on the page.
  • Through Layout: In through layout, the navbar and toolbar appear fixed for all pages within a single view.
  • Mixed Layout: This layout is a mix of all the above layouts in the single view.

8) What are Navbars in Framework7?

There are three parts in navbars which may contain any HTML content in the following way:
  • Left: It is designed to place backlink icons or single text link.
  • Center: It is used to display the title of the page or tab links.
  • Right: This part can be used similarly as left part.

9) What is the use of different navbars in Framework7?

Following is a list of different navbars with details:
Basic navbar: A basic navbar can be created by using the navbar, navbar-inner, left, center and right classes.
Navbar with links: To use links in left and right part of your navbar, add <a> tag with a class link.
Multiple links: To use multiple links, add a few more <a class="link"> to the part of your choice.
Links with text and icons: The links can be provided with icons and text by adding classes for icons and wrapping the link text with the <span> element.
Links with only icons: Navbar links can be provided with only icons by adding icon-only class to links.
Related app and view methods: On initializing the View, framework7 allows you to use methods available for the navbar.
Hide navbar automatically: The navbar can be hidden/shown automatically for some Ajax loaded pages where a navbar is not required.

10) What are the toolbars in Framework7?

Toolbars are used to provide easy access to other pages by using navigation elements at the bottom of the screen.

11) What are the different Framework7 toolbars to use?

You can use toolbars in two ways as specified in the table.
  • Hide Toolbar: If you want to hide the toolbar automatically when you load the pages, use the no-toolbar class to loaded page.
  • Bottom Toolbar: Place the toolbar at the bottom of the page by using the toolbar-bottom class.

12) What are the different methods used with the toolbar?

Following is a list of methods used with toolbars:
  • myApp.hideToolbar(toolbar): It hides the specified toolbar.
  • myApp.showToolbar(toolbar): It shows the specified toolbar.
  • view.hideToolbar(): It hides the specified toolbar in the view.
  • view.showToolbar(): It shows the specified toolbar in the view.

13) What is Search Bar in Framework 7?

SearchBar is obtained in Framework 7 by using the SearchBar class. It is used for searching the elements.

14) What are the different SearchBar properties in framework 7?

Following is a list of different SearchBar properties:
  • mySearchbar.params: It represents the initialized parameters passed with an object.
  • mySearchbar.query: It searches the current query.
  • mySearchbar.searchList: It defines the search list block.
  • mySearchbar.container: It defines the search bar container with HTML element.
  • mySearchbar.input: It defines the search bar input with HTML element.
  • mySearchbar.active: It defines whether the search bar is enabled or disabled.

15) What are the different SearchBar methods?

Following is a list of SearchBar methods:
  • mySearchbar.search(query): This method is used to search the passed query.
  • mySearchbar.enable(): It is used to enable the search bar.
  • mySearchbar.disable(): It is used to disable the search bar.
  • mySearchbar.clear(): It facilitates you can clear the query and search results.
  • mySearchbar.destroy(): It is used to destroy the search bar instance.

16) What do you mean by Content Block in Framework 7?

In Framework 7, Content Blocks make you able to add extra content with a different format. It is generally used when you have much content of different types, and you have to put all on a page. For example:
  1. <div class = "page-content">    
  2.                      <p>This is out side of content block!!!</p>        
  3.                      <div class = "content-block">    
  4.                         <p>Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium     
  5.                         doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis     
  6.                         et quasi architecto beatae vitae dicta sunt explicabo.</p>    
  7.                      </div>    
For complete example: Click here

17) What is Layout grid in Framework 7?

The Framework7 provides different types of grid types for placing the content according to user needs.
The layout grid is used to provide different types of columns size.
For more: Click here.

18) What do you know by Overlays in Framework 7?

In Framework7, overlays are used to work with applications smoothly. Following is a list of some Overlays in Framework 7:
  • Modal: Modal is a small window which is used to display content from separate sources without leaving the parent window.
  • Popup: Popup is a popup box which is used to display the content when the user clicks on the element.
  • Popover: It manages the presentation of the temporary content.
  • Action Sheet: The Action Sheet is used to present the user with a set of possibilities for how to handle a given task.
  • Login Screen: Overlay login screen displays login screen format which can be used in page or popup or as a standalone overlay.
  • Picker Modal: Picker modal is used to pick some custom content which is similar to calendar picker.

19) What is the Progress Bar in Framework 7?

The progress bars can be used to show the loading of assets or progress of a task to the users. The Progress bar can be specified by using the progress bar class. When the user doesn't know how long the loading processes the request, you can use progress bar-infinite class.
  1. <div class = "progressbar-inline">    
  2.                             <p><span data-progress = "10" class = "progressbar"></span></p>    
  3.                                 
  4.                             <p class = "buttons-row">    
  5.                                <a href = "#" data-progress = "25" class = "button button-raised">25%</a>    
  6.                                <a href = "#" data-progress = "50" class = "button button-raised">50%</a>    
  7.                                <a href = "#" data-progress = "75" class = "button button-raised">75%</a>    
  8.                                <a href = "#" data-progress = "100" class = "button button-raised">100%</a>    
  9.                             </p>    
  10.                          </div>               
For complete example: Click here.

20) What Is Accordion In Framework7?

In Framework 7, the accordion is a graphical control element displayed as a stacked list of items. Each accordion can be expanded or stretched to reveal the content associated with that accordion.
For complete example: Click here.

21) What are the different classes used for accordion in Framework 7?

Following classes are used in Framework 7 accordion:
  • accordion-list: It is an optional class contains the group of accordion items list.
  • accordion-item: It is a required class for a single accordion item.
  • accordion-item-toggle: It is a required class used to expand accordion item content.
  • accordion-item-content: It is a required class used for hidden accordion item content.
  • accordion-item-expanded: It is a single expanded accordion item.

22) What are the cards in Framework 7?

The Framework 7 cards contain organized information related to a single subject like a photo, link, and text.
Following is a list of Framework 7 card type:
Card HTML Layout: The basic card HTML layout uses card classes to arrange its items.
List View With Cards: You can use cards as list view elements by adding cards-list class to <div class="list-block">.

23) What is the use of the floating action button in Framework 7?

The Framework7 Floating Action Button is used for promoted action. It is like a circled icon floating above the UI and has motion behaviors that include morphing, launching, and a transferring anchor point.
There are 3 types of action buttons used in Framework7:
  1. Floating Action Button Layout: It is very simple. You have to place it as a child of page or view.
  2. Morph to Popover: If you want to open popover on clicking the floating action button, then you can use floating-button-to-popover class.
  3. Speed Dial: You can invoke related actions upon clicking the floating action button by using speed dial.

24) What are tabs in Framework 7?

The Framework7 tabs are the set of logically grouped content that facilitates you to move between them and save the space like accordion quickly. Let's see the layout of a Framework7 tab:
  1. <!-- Tabs wrapper should have "tabs" class. It is a required element -->  
  2. <div class = "tabs">  
  3.    <!-- The tab should have "tab" class and unique id attribute -->  
  4.      
  5.    <!-- The tab is active by default - "active" class -->  
  6.    <div class = "tab active" id = "tab1">  
  7.       ...  The content for Tab 1 goes here ...  
  8.    </div>  
  9.      
  10.    <!-- The second tab, should have "tab" class and unique id attribute -->  
  11.    <div class = "tab" id = "tab2">  
  12.       ... The content for Tab 2 goes here ...  
  13.    </div>  
  14. </div>  

25) What is the message bar in Framework 7?

The Framework7 Message bar is a resizable toolbar for usage with messages. It provides a special resizable toolbar to work with the messaging system in the application.

Syntax:

  1. <div class="page toolbar-fixed">    
  2.   <div class="toolbar messagebar">    
  3.   <div class="toolbar-inner">    
  4.     <textarea placeholder="Message"></textarea><a href="#" class="link">Send</a>    
  5.   </div>    
  6. </div>       
  7. </div>    

26) What is the picker in Framework 7?

In Framework7, the picker is a very powerful component which facilitates you to choose any values from the list and also used to create custom overlay pickers. It looks like native iOS picker and can be used as an inline component or as an overlay.

27) What is the use of infinite scroll in Framework 7?

The Infinite scroll is used when you want to load additional content and perform the required actions when the page is near to the bottom.

Syntax

  1. <div class = "page">  
  2.    <div class = "page-content infinite-scroll" data-distance = "100">  
  3.       ...  
  4.    </div>  
  5. </div>  
Here:
page-content infinite-scroll: It is used for infinite scroll container.
data-distance: This attribute is used to configure distance from the bottom of a page (in px) to trigger infinite scroll event, and its default value is 50px.

28) What is the autocomplete in Framework 7?

In Framework7, autocomplete is a mobile friendly and touch-optimized component, which can be a drop-down or in a standalone way. You can create and initialize Autocomplete instance by using the JavaScript method:
  1. myApp.autocomplete(parameters)   
Here, parameters are required objects used to initialize the Autocomplete instance.

29) How can we use the date functionality in Framework 7?

The Framework7 provides Calender component which facilitates you to handle dates easily and can be used as an inline or as an overlay component. The overlay calendar converted to pop over on tablets automatically.
  1. myApp.autocomplete(parameters)   
Here, parameters are required objects used to initialize the Autocomplete instance.

30) What is the use of notifications in Framework7?

Notifications are used to display required messages which appear like Push (or Local) iOS notifications.
Usage of Framework7 Notification are:
IndexNotification UsageDescription
1)Notifications JavaScript APIThe notifications can also be added or closed with JavaScript by using the related app methods.
2)Notifications LayoutFramework7 notifications added by using JavaScript.
3)Example iOSFramework7 allows you to use different types of notifications in your iOS layout.
4)Example MaterialFramework7 notifications can also be used in the material layout.

No comments:

Post a Comment