Skip to main content

15 Best Framework7 Interview Questions and Answers -[Mobile and Web Apps]

What Is Framework7?
Framework7 is open source mobile HTML framework and used to develop hybrid mobile and web apps with iOS and Android devices. It is a free and it was released in February 2016 licensed under MIT.

It is highly recommended to be familiar with basics of HTML, CSS and JavaScript to start creating apps with Framework7.

It is not compatible with all platforms and it's focused only on iOS and Google Material design experience and simplicity.

The history of framework 7 is not very older and the first version was released in 2014. The latest version-1.4.2 was released in February 2016 licensed under MIT.

Framework7, you can easily use with Angular and React frameworks.

Why We Use Framework7?
ü  Framework7 is easier to develop apps for iOS and Android and learning is very easy.
ü  Framework7 has many pre-styled widgets/components and built-in helper libraries.

What Are The Features Of Framework7?
ü  Framework7 is a free and open source framework for mobile HTML.
ü  Easy to Use
ü  Framework7 syntax is very much similar to JQuery.
ü  Framework 7 provides ready to use UI elements and widgets like modals, popup and others.
ü  IOS specific framework as it provides IOS like UI interaction
ü  Framework7 dynamically loads page from template via flexible Router API.

What Are The Advantages And Disadvantages Of Framework7?
ü  We can easily develop apps for iOS and Android without any expertise on technologies
ü  Framework7 has many pre-styled widgets/components
ü  Framework7 has built-in helper libraries
ü  Framework7 is not dependent on any third party library even for DOM manipulation.
ü  Framework7 supports faster development via Bower.

What Are The Disadvantages Of Framework7?
ü  Framework7 only supports platforms like iOS and Android devices.
ü  The support forums are a bit difficult to use.
ü  It does not support platforms other than IOS and android.

What Is Framework7 Environment?
Installation -
To get started we need to install Framework7 and we can install framework7 with two ways.

Ways 1 -Download From GitHub Repository

Ways 2 - Install From NPM
npm install framework7


Framework7 can also be imported as an ES-next module -
//Import core framework
import Framework7 from 'framework7';


CDNs Libraries for Framework7 –
//CDN for iOS App layout:
<link rel = "stylesheet" href = "/css/framework7.ios.min.css" /> 

//Framework7 iOS CSS Library:
<link rel = "stylesheet" href = "/css/framework7.ios.colors.min.css" /> 

//CDNs for Android/Material App Layout
<script src = "/js/framework7.min.js"></script> 

//Framework7 JS library
<script src = "/css/framework7.material.min.css"></script>


How To Initialize Framework7 App?
In Framework7, we should initialize our app and its looks like –
var app = new Framework7();


In the above I am using the app variable where we store Framework7 initialized instance for easy access in the apps.

Framework7 also provides more customization on initialization by passing object with parameters and its looks like -
var app = new Framework7({
  // App root element
  root: '#app',
  // App Name
  name: 'My App',
  // App id
  id: 'com.myapp.test',
  // Enable swipe panel
  panel: {
    swipe: 'left',
  },
  // Add default routes
  routes: [
    {
      path: '/about/',
      url: 'about.html',
    },
  ],
  // ... other parameters
});

What Are The Framework7 Layouts?
Framework7 supports three types of Navbar/Toolbar layouts that are -
ü  Static Layout
ü  Fixed Layout
ü  Through Layout
ü  Mixed Layout

What Is Layout Grid In Framework7?
In Framework7, Layout Grid provides different types of grid types to place the content as per user need. It also provides different types of columns size.

What Is Content Block In Framework7?
Framework7 Content blocks can be used to add extra content with different formats.
What Are List Views In Framework7?
Framework7 List views are powerful UI components that present data in a scrollable list of multiple rows.

The Framework7 List Views Are-
ü  List View Block
ü  List Item
ü  List Item Header/Footer
ü  Link Item
ü  List Button
ü  List Divider
ü  Grouped Lists
ü  Simple List
ü  Links List
ü  Media List

List View Block-
<div class="list">
  <ul>
      ... list elements here ...
  </ul>
</div>

List Item -
<div class="list no-hairlines">
  <ul>
      ... list elements here ...
  </ul>
</div>

List Item Header/Footer -
<li>
  <div class="item-content">
    <div class="item-media">
      <i class="icon my-icon"></i>
    </div>
    <div class="item-inner">
      <div class="item-title">
        <!-- Item header, must be first child of item-title -->
        <div class="item-header">Item header text</div>
        List element title
        <!-- Item footer, must be last child of item-title -->
        <div class="item-footer">Item footer text</div>
      </div>
      <div class="item-after">...</div>
    </div>
  </div>
</li>

Link Item -
<li>
  <a href="#" class="item-link">
    <div class="item-content">
      <div class="item-media">...</div>
      <div class="item-inner">...</div>
    </div>
  </a>
</li>

List Button -

<li>
  <a class="item-link list-button">List Button 1</a>
</li>
<li>
  <a class="item-link list-button">List Button 2</a>
</li>

List Divider -
<li class="item-divider">Divider title here</li>


Grouped Lists-
<div class="list-group">
  <ul>
    <li class="list-group-title">First group</li>
    <li class="item-content">...</li>
    <li class="item-content">...</div>
    </li>
    ...
  </ul>
</div>

Simple List -
<div class="list simple-list">
  <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    ...
  </ul>
</div>

Links List -
<div class="list links-list">
  <ul>
    <li>
      <a href="#">Link Item 1</a>
    </li>
    ...
  </ul>
</div>

Media List -
<div class="list media-list">
  <ul>
    <li>
      <div class="item-content">
        <div class="item-media">
          <img src="/images/img.jpg">
        </div>
        <div class="item-inner">
          <div class="item-title-row">
            <div class="item-title">Element title</div>
            <div class="item-after">Element label</div>
          </div>
          <div class="item-subtitle">Subtitle</div>
          <div class="item-text">Additional description text</div>
        </div>
      </div>
    </li>
  </ul>
</div>


What Is Virtual List Framework7?
Virtual List allows us to rendering lists of elements without losing the apps performance that’s fully compatible with all Framework7 components and its looks like –
1.      Search Bar,
2.      Swipeouts
3.      Sortable
4.      Infinite Scroll,
5.      Pull to Refresh
6.      And so on

Virtual List Components -
1.      Virtual List Layout
2.      Virtual List App Methods
3.      Virtual List Parameters
4.      Virtual List Methods & Properties
5.      Virtual List Events

What’s Are Router Events In Framework7?
Framework7 Router has a lot of useful events. Router will fire the following DOM events only on iOS-theme for swipe back pages.

Framework7 Router Events -
1.      swipeback:move
2.      swipeback:beforechange
3.      swipeback:afterchange    
4.      swipeback:beforereset    
5.      swipeback:afterreset
6.      swipeback:afterchange    
7.      swipeback:beforereset    
8.      swipeback:afterreset
I hope you are enjoying with this post! Please share with you friends. Thank you so much!

By Anil Singh | Rating of this article (*****)

Popular posts from this blog

39 Best Object Oriented JavaScript Interview Questions and Answers

Most Popular 37 Key Questions for JavaScript Interviews. What is Object in JavaScript? What is the Prototype object in JavaScript and how it is used? What is "this"? What is its value? Explain why "self" is needed instead of "this". What is a Closure and why are they so useful to us? Explain how to write class methods vs. instance methods. Can you explain the difference between == and ===? Can you explain the difference between call and apply? Explain why Asynchronous code is important in JavaScript? Can you please tell me a story about JavaScript performance problems? Tell me your JavaScript Naming Convention? How do you define a class and its constructor? What is Hoisted in JavaScript? What is function overloadin

List of Countries, Nationalities and their Code In Excel File

Download JSON file for this List - Click on JSON file    Countries List, Nationalities and Code Excel ID Country Country Code Nationality Person 1 UNITED KINGDOM GB British a Briton 2 ARGENTINA AR Argentinian an Argentinian 3 AUSTRALIA AU Australian an Australian 4 BAHAMAS BS Bahamian a Bahamian 5 BELGIUM BE Belgian a Belgian 6 BRAZIL BR Brazilian a Brazilian 7 CANADA CA Canadian a Canadian 8 CHINA CN Chinese a Chinese 9 COLOMBIA CO Colombian a Colombian 10 CUBA CU Cuban a Cuban 11 DOMINICAN REPUBLIC DO Dominican a Dominican 12 ECUADOR EC Ecuadorean an Ecuadorean 13 EL SALVADOR

25 Best Vue.js 2 Interview Questions and Answers

What Is Vue.js? The Vue.js is a progressive JavaScript framework and used to building the interactive user interfaces and also it’s focused on the view layer only (front end). The Vue.js is easy to integrate with other libraries and others existing projects. Vue.js is very popular for Single Page Applications developments. The Vue.js is lighter, smaller in size and so faster. It also supports the MVVM ( Model-View-ViewModel ) pattern. The Vue.js is supporting to multiple Components and libraries like - ü   Tables and data grids ü   Notifications ü   Loader ü   Calendar ü   Display time, date and age ü   Progress Bar ü   Tooltip ü   Overlay ü   Icons ü   Menu ü   Charts ü   Map ü   Pdf viewer ü   And so on The Vue.js was developed by “ Evan You ”, an Ex Google software engineer. The latest version is Vue.js 2. The Vue.js 2 is very similar to Angular because Evan You was inspired by Angular and the Vue.js 2 components looks like -

React | Encryption and Decryption Data/Text using CryptoJs

To encrypt and decrypt data, simply use encrypt () and decrypt () function from an instance of crypto-js. Node.js (Install) Requirements: 1.       Node.js 2.       npm (Node.js package manager) 3.       npm install crypto-js npm   install   crypto - js Usage - Step 1 - Import var   CryptoJS  =  require ( "crypto-js" ); Step 2 - Encrypt    // Encrypt    var   ciphertext  =  CryptoJS . AES . encrypt ( JSON . stringify ( data ),  'my-secret-key@123' ). toString (); Step 3 -Decrypt    // Decrypt    var   bytes  =  CryptoJS . AES . decrypt ( ciphertext ,  'my-secret-key@123' );    var   decryptedData  =  JSON . parse ( bytes . toString ( CryptoJS . enc . Utf8 )); As an Example,   import   React   from   'react' ; import   './App.css' ; //Including all libraries, for access to extra methods. var   CryptoJS  =  require ( "crypto-js" ); function   App () {    var   data

AngularJs input date format calendar

Table of Context bout  the input date.  Click for live demo on plnker 1. Allow to use of a custom date format like "yyyy/MM/dd" or "yyyy-MM-dd" etc. 2. Allow to check the input date typed by the user is correct or not. 1 2 3 4 //The model must be a Date object, otherwise Angular will throw an error. //The error is Invalid Date objects will be rendered as an empty string. i.e. The dates whose getTime() is NaN. //The model must be a Date object, otherwise Angular will throw an error. //The error is Invalid Date objects will be rendered as an empty string. i.e. The dates whose getTime() is NaN. The Example 1 code as given below. 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 <!doctype html> <html lang= "en" > <head>      <meta charset= "utf-8" />      <script src= " http://ajax.googleapis.com/ajax/lib