CSS Sticky Footer Tutorial Example From Scratch 0

CSS Sticky Footer Tutorial Example From Scratch

Today, We want to share with you CSS Sticky Footer Tutorial Example From Scratch.In this post we will show you fixed footer overlaps content, hear for make div stick to bottom of parent we will give you demo and example for implement.In this post, we will learn about keep footer at bottom of page when scrolling with an example.

CSS Sticky Footer Tutorial Example From Scratch

There are the Following The simple About CSS Sticky Footer Tutorial Example From Scratch Full Information With Example and source code.

As I will cover this Post with live Working example to develop responsive sticky footer, so the css tricks sticky for this example is following below.

Creating a Sticky Footer

Step 1: HTML Part

<body>
  <main><main>
  <footer></footer>
</body>

Step 1: Pure CSS Part

main {
  min-height: calc(100vh - 50px);
}
footer {
  height: 50px;
}

Step 3: JavaScript Part

function set_main_height(){
   var footerHeight = $('footer').innerHeight();
   $('main').css('min-height','100vh -'+footerHeight);
}
 
$(function() { 
  set_main_height();
  window.resize(function(){
    set_main_height();
  });
});

Simple Sticky Footer Examples

Example 1: Sticky Footer with Negative Margin

HTML Part

<div class="content">
  <h1>Sticky Footer with Negative Margin 1</h1>
  <p><button id="add">Include Data</button></p>
  <div class="push"></div>
</div>

<footer class="footer">
  Footer 
</footer>

CSS Part
html, body {
  height: 100%;
  margin: 0;
}
.content {
  padding: 20px;
  min-height: 100%;
  margin: 0 auto -50px;
}
.footer,
.push {
  height: 50px;
}


js Part
$("#add").on("click", function() {
  $("<p>Welcome to PakaInfo – a blog where you will learn about General Information, Jobs, Earn Money, Education, Health, Technology, Life Style, Science, Top10, Nature.
In other words, it is a community of software engineers and developers.</p>").insertBefore(".push");
});

Example 2: Sticky Footer Navbar Template for Bootstrap

HTML Part

<div class="content">
  <div class="content-inside">
    <h1>Sticky Footer Navbar Template for Bootstrap</h1>
    <p><button id="add">Include Data</button></p>
  </div>
</div>

<footer class="footer">
  Footer 
</footer>

CSS Part
html, body {
  height: 100%;
  margin: 0;
}
.content {
  min-height: 100%;
}
.content-inside {
  padding: 20px;
  padding-bottom: 50px;
}
.footer {
  height: 50px;
  margin-top: -50px;
}

js Part
$("#add").on("click", function() {
  $("<p>Welcome to PakaInfo – a blog where you will learn about General Information, Jobs, Earn Money, Education, Health, Technology, Life Style, Science, Top10, Nature.
In other words, it is a community of software engineers and developers.</p>").appendTo(".content-inside");
});

Example 3: Sticky Footer Template for Bootstrap

HTML Part

<div class="content">
  <h1>Sticky Footer with calc()</h1>
  <p><button id="add">Include Data</button></p>
</div>

<footer class="footer">
  Footer 
</footer>

CSS Part
.content {
  min-height: calc(100vh - 70px);
  padding: 40px 40px 0 40px;
}
.footer {
  height: 50px;
}

js Part
$("#add").on("click", function() {
  $("<p>Welcome to PakaInfo – a blog where you will learn about General Information, Jobs, Earn Money, Education, Health, Technology, Life Style, Science, Top10, Nature.
In other words, it is a community of software engineers and developers.</p>").appendTo(".content");
});

Example 4: Adding a Sticky Footer Using CSS

HTML Part

<div class="content">
  <h1>Adding a Sticky Footer Using CSS</h1>
  <p><button id="add">Include Data</button></p>
</div>

<footer class="footer">
  Footer 
</footer>

CSS Part
html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.content {
  flex: 1 0 auto;
  padding: 20px;
}
.footer {
  flex-shrink: 0;
  padding: 20px;
}


js Part
$("#add").on("click", function() {
  $("<p>Welcome to PakaInfo – a blog where you will learn about General Information, Jobs, Earn Money, Education, Health, Technology, Life Style, Science, Top10, Nature.
In other words, it is a community of software engineers and developers.</p>").appendTo(".content");
});

Example 5: Pure CSS3 Sticky Footer

HTML Part

<div class="content">
  <h1>Pure CSS3 Sticky Footer with Grid</h1>
  <p><button id="add">Include Data</button></p>
</div>

<footer class="footer">
  Footer
</footer>

CSS Part
html {
  height: 100%;
}
body {
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}
.content {
  padding: 20px;
}
.footer {
  grid-row-start: 2;
  grid-row-end: 3;
}


* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font: 16px Sans-Serif;
}
h1 {
  margin: 0 0 20px 0;
}
p {
  margin: 0 0 20px 0;
}
.footer {
  background: #42A5F5;
  color: white;
  padding: 20px;
}

js Part
$("#add").on("click", function() {
  $("<p>Welcome to PakaInfo – a blog where you will learn about General Information, Jobs, Earn Money, Education, Health, Technology, Life Style, Science, Top10, Nature.
In other words, it is a community of software engineers and developers.</p>").appendTo(".content");
});

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about CSS Sticky Footer Tutorial Example From Scratch.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

BOOTSTRAP ACCORDION WITH PLUS MINUS ICON 0

BOOTSTRAP ACCORDION WITH PLUS MINUS ICON EXAMPLES

Today, We want to share with you BOOTSTRAP ACCORDION WITH PLUS MINUS ICON EXAMPLES.In this post we will show you Simple Bootstrap accordion with toggle button, hear for Bootstrap expand / collapse with plus and minus we will give you demo and example for implement.In this post, we will learn about add plus minus symbol to a bootstrap accordion with an example.

BOOTSTRAP ACCORDION WITH PLUS MINUS ICON EXAMPLES

There are the Following The simple About BOOTSTRAP ACCORDION WITH PLUS MINUS ICON EXAMPLES Full Information With Example and source code.

As I will cover this Post with live Working example to develop bootstrap 4 accordion with plus minus icon, so the add plus minus symbol to a bootstrap accordion for this example is following below.

Example 1: Bootstrap expand / collapse with plus and minus

Step 1 : HTML Part

<div class="container ">
 
    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
 
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="groupOne">
                <h4 class="panel-title">
                    <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                        <i class="plus-minus glyphicon glyphicon-plus"></i>
                        Product Group Item #1
                    </a>
                </h4>
            </div>
            <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="groupOne">
                <div class="panel-body">
                     
                </div>
            </div>
        </div>
 
        <div class="panel panel-default">
            <div class="panel-heading" role="tab" id="headingTwo">
                <h4 class="panel-title">
                    <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                        <i class="plus-minus glyphicon glyphicon-plus"></i>
                        Product Group Item #2
                    </a>
                </h4>
            </div>
            <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                <div class="panel-body">
                     
                </div>
            </div>
        </div>
 
    </div><!-- panel-group -->
      
</div><!-- container -->

Step 2 : javascript Part

$(function() {
  function toggleIcon(e) {
      $(e.target)
          .prev('.panel-heading')
          .find(".plus-minus")
          .toggleClass('glyphicon-plus glyphicon-minus');
  }
  $('.panel-group').on('hidden.bs.collapse', toggleIcon);
  $('.panel-group').on('shown.bs.collapse', toggleIcon);
 
});

Full Example of the Expand Collapse Div Plus Minus Using jQuery

Example 2: jQuery Accordion with Plus and Minus Toggle

Step 1: HTML Part

<div class="accordion_container">
  <div class="accordion_head">First Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>First Accordian Body, it will have description</p>
  </div>
  <div class="accordion_head">Second Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>Second Accordian Body, it will have description</p>
  </div>
  <div class="accordion_head">Third Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>Third Accordian Body, it will have description</p>
  </div>
</div>

<div class="accordion_container">
  <div class="accordion_head">First Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>First Accordian Body, it will have description</p>
  </div>
  <div class="accordion_head">Second Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>Second Accordian Body, it will have description</p>
  </div>
  <div class="accordion_head">Third Accordian Head<span class="plusminus">+</span></div>
  <div class="accordion_body" style="display: none;">
    <p>Third Accordian Body, it will have description</p>
  </div>
</div>

Step 2: jQuery Part

$(document).ready(function() {
  //toggle the component with class accordion_body
  $(".accordion_head").click(function() {
    if ($('.accordion_body').is(':visible')) {
      $(".accordion_body").slideUp(300);
      $(".plusminus").text('+');
    }
    if ($(this).next(".accordion_body").is(':visible')) {
      $(this).next(".accordion_body").slideUp(300);
      $(this).children(".plusminus").text('+');
    } else {
      $(this).next(".accordion_body").slideDown(300);
      $(this).children(".plusminus").text('-');
    }
  });
});

Step 3: CSS Part

.accordion_container {
  width: 500px;
}

.accordion_head {
  background-color: skyblue;
  color: white;
  cursor: pointer;
  font-family: arial;
  font-size: 14px;
  margin: 0 0 1px 0;
  padding: 7px 11px;
  font-weight: bold;
}

.accordion_body {
  background: lightgray;
}

.accordion_body p {
  padding: 18px 5px;
  margin: 0px;
}

.plusminus {
  float: right;
}

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about BOOTSTRAP ACCORDION WITH PLUS MINUS ICON EXAMPLES.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Bootstrap collapse plus minus sign Examples 0

Bootstrap collapse plus minus sign

Today, We want to share with you Bootstrap collapse plus minus sign.In this post we will show you bootstrap accordion with plus minus, hear for Accordion with plus minus icon toggle pure css we will give you demo and example for implement.In this post, we will learn about add plus minus symbol to a bootstrap accordion with an example.

Bootstrap collapse plus minus sign

There are the Following The simple About Bootstrap collapse plus minus sign Full Information With Example and source code.

As I will cover this Post with live Working example to develop bootstrap collapse panel with icon example, so the jquery accordion with plus minus for this example is following below.

create bootstrap accordion with plus minus icons

create index.html file and add Copy and paste this source code: Toggle Bootstrap Accordion With Plus Minus Icons on Header Link Click Example

<body>
    
<div class="bs-example">
    <h2>Bootstrap accordion with plus minus icons</h2>
    <div class="panel-group" id="accordion">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><span class="glyphicon glyphicon-plus"></span> PHP Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseOne" class="panel-collapse collapse">
                <div class="panel-body">
                    <p>PHP Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/programming/php/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"><span class="glyphicon glyphicon-plus"></span> Laravel Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseTwo" class="panel-collapse collapse in">
                <div class="panel-body">
                    <p>Laravel Server side Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/laravel/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree"><span class="glyphicon glyphicon-plus"></span> Angularjs Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseThree" class="panel-collapse collapse">
                <div class="panel-body">
                    <p>An Angularjs Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/angularjs/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
    </div>
    <p><strong>Note:</strong> Click on the Any linked heading menu text to expand or collapse accordion panels using CSS.</p>
</div>
</body>

Include CDN libs

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>

style.css

    .bs-example{
        margin: 20px;
    }
    .panel-title .glyphicon{
        font-size: 14px;
    }

main.js

<script>
    $(document).ready(function(){
        $(".collapse.in").each(function(){
            $(this).siblings(".panel-heading").find(".glyphicon").addClass("glyphicon-minus").removeClass("glyphicon-plus");
        });
        $(".collapse").on('show.bs.collapse', function(){
            $(this).parent().find(".glyphicon").removeClass("glyphicon-plus").addClass("glyphicon-minus");
        }).on('hide.bs.collapse', function(){
            $(this).parent().find(".glyphicon").removeClass("glyphicon-minus").addClass("glyphicon-plus");
        });
    });
</script>

Full example Source Code:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>create bootstrap accordion with plus minus icons</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style type="text/css">
    .bs-example{
        margin: 20px;
    }
    .panel-title .glyphicon{
        font-size: 14px;
    }
</style>
<script>
    $(document).ready(function(){
        $(".collapse.in").each(function(){
            $(this).siblings(".panel-heading").find(".glyphicon").addClass("glyphicon-minus").removeClass("glyphicon-plus");
        });
        $(".collapse").on('show.bs.collapse', function(){
            $(this).parent().find(".glyphicon").removeClass("glyphicon-plus").addClass("glyphicon-minus");
        }).on('hide.bs.collapse', function(){
            $(this).parent().find(".glyphicon").removeClass("glyphicon-minus").addClass("glyphicon-plus");
        });
    });
</script>
</head>
<body>
    
<div class="bs-example">
    <h2>Bootstrap accordion with plus minus icons</h2>
    <div class="panel-group" id="accordion">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseOne"><span class="glyphicon glyphicon-plus"></span> PHP Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseOne" class="panel-collapse collapse">
                <div class="panel-body">
                    <p>PHP Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/programming/php/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo"><span class="glyphicon glyphicon-plus"></span> Laravel Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseTwo" class="panel-collapse collapse in">
                <div class="panel-body">
                    <p>Laravel Server side Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/laravel/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                    <a data-toggle="collapse" data-parent="#accordion" href="#collapseThree"><span class="glyphicon glyphicon-plus"></span> Angularjs Tutorials with Example</a>
                </h4>
            </div>
            <div id="collapseThree" class="panel-collapse collapse">
                <div class="panel-body">
                    <p>An Angularjs Step By Step Full Example, Demo with Tutorils. <a href="https://pakainfo.com/jobs/technology/angularjs/" target="_blank">Learn more.</a></p>
                </div>
            </div>
        </div>
    </div>
    <p><strong>Note:</strong> Click on the Any linked heading menu text to expand or collapse accordion panels using CSS.</p>
</div>
</body>
</html>                                                                                                  

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Bootstrap collapse plus minus sign.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Installing APC for php Accelerator xampp/WAMP 0

Installing APC for php Accelerator xampp/WAMP

Today, We want to share with you Installing APC for php Accelerator xampp/WAMP.
In this post we will show you How To install APC Cache on WAMP/XAMPP, hear for how to install PHP Accelerator in Xampp we will give you demo and example for implement.
In this post, we will learn about Installing APC for PHP 7 Accelerator xampp/WAMP with an example.

How to install PHP Accelerator in Xampp ?

The PHP first of all php accelerator download and It’s should Internationalization extension is used to php accelerator wamp/xampp, amongst more, by PHP based Symfony (for some more validators) for install and/or enable a php accelerator (highly recommended).

This php accelerator xampp extension allows you to write source codes like this one Example:

$php_accelerator_xampp_format = new NumberFormatter('en_US', NumberFormatter::DECIMAL);
echo $php_accelerator_xampp_format->format(1234567.89); // 1,234,567.89

$php_accelerator_xampp_format = new NumberFormatter('fr_FR', NumberFormatter::DECIMAL);
echo $php_accelerator_xampp_format->format(1234567.89); // 1 234 567,89

$php_accelerator_xampp_format = new NumberFormatter('en_US', NumberFormatter::CURRENCY);
echo $php_accelerator_xampp_format->getTextAttribute(NumberFormatter::CURRENCY_CODE); // USD

$php_accelerator_xampp_format = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY);
echo $php_accelerator_xampp_format->getTextAttribute(NumberFormatter::CURRENCY_CODE); // BRL

After that Therefor much more, including install and/or enable a php accelerator (highly recommended). prestashop formatting of currency, install and/or enable a php accelerator, number and date/time, php accelerator ampps as well as UCA-conformant collations php accelerator cpanel (customizable all the method to compare two php_apc.dll php 7 strings).

install php accelerator To activate this PHP simple install apc on xampp extension in Xampp, just simple edit your file Like as a php.ini (Example in C:\xampp\php folder) and remove the semicolon to uncomment this line :

;extension=php_intl.dll

Note : : Lastly You don’t forget to Your PHP restart Apache !

We hope you get an idea about How to install Alternative PHP Cache(APC) in Xampp
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

We hope This Post can help you…….Good Luck!.

VueJS Bar and Star Rating Component and demo 0

VueJS Bar and Star Rating Component and demo

VueJS Bar and Star Rating Component and demo

In this Post We Will Explain About is VueJS Bar and Star Rating Component and demo With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Vuejs rating component Example

In this post we will show you Best way to implement VueJS Bar Rating Component and demo, hear for star rating Vuejs examples free download with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Include External Libs

index.html

<!-- Devloped by Pakainfo.com free download examples -->
<div id="liveApp">
    <h1>Example of the Star rating in vue.js demo</h1>
    <ul>
        <li>
            <p>{{product.name}}: {{product.level}}</p>
            
        </li>
    </ul>
    <pre>{{webdev | json}}</pre>
</div>

index.js

// Devloped by Pakainfo.com free download examples -->
Vue.component('live-star-rating', {
  props: {
    'name': String, //Datatype string
    'value': null,
    'real_val': null,
    'id': String,  //Datatype string
    'disabled': Boolean,//true or false
    'required': Boolean  //true or false
  },
  template: '<div class="live-star-rating">\
        <label class="live-star-rating__star">= rating) && value != null), \'is-hover\': ((real_val >= rating) && real_val != null), \'is-disabled\': disabled}" \
        v-on:click="set(rating)" v-on:mouseover="star_over(rating)" v-on:mouseout="star_out">\
        ★</label></div>',

  data: function() {
    return {
      temp_value: null,
      liveAllRates: [1, 2, 3, 4, 5]
    };
  },
  methods: {
    star_over: function(index) {
      var self = this;

      if (!this.disabled) {
        this.temp_value = this.real_val;
        return this.real_val = index;
      }

    },

    star_out: function() {
      var self = this;

      if (!this.disabled) {
        return this.real_val = this.temp_value;
      }
    },
	//set value
    set: function(value) {
      var self = this;
	//check value
      if (!this.disabled) {        
        this.temp_value = value;
        return this.value = value;
      }
    }
  }

});

new Vue({
  el: '#liveApp',
  data: {
  	webdev: [
    	{name: "Live24u", level: 4},
			{name: "Vuejs", level: 3}
    ]
  }
});

style.css

.live-star-rating__star.is-selected,
.live-star-rating__star.is-hover {
  color: #FFD700;
}
.live-star-rating__star.is-disabled:hover {
  cursor: default;
}
pre{
  background: #1d1d1d;
  border: 2px solid #3d3d3d;
  padding: 18px;
  border-radius: 3px;
}
.live-star-rating__star {
  display: inline-block;
  line-height: 1;
  font-size: 1.5em;
  color: #ABABAB;
  padding: 3px;
  vertical-align: middle;
  transition: color .2s ease-out;
}
.live-star-rating__checkbox {
  position: absolute;
  height: 2px;
  width: 2px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -2px;
  padding: 0;
  border: 0;
}
.live-star-rating__star:hover {
  cursor: pointer;
}

Example

You are Most welcome in my youtube Channel Please subscribe my channel. and give me Feed Back.
More Details……
Angularjs Example

Example

I hope you have Got What is Vuejs rating component And how it works.I would Like to have Feed Back From My Blog(Pakainfo.com) readers.Your Valuable Feed Back,Any Question,or any Comments about This Article(Pakainfo.com) Are Most Always Welcome.

VueJS Disable enable Selector Examples 0

VueJS Disable enable Selector Examples

Today, We want to share with you VueJS Disable enable Selector Examples.In this post we will show you How to enable/disable an element using vuejs Example, hear for How to enable/disable text field using Vue.js? we will give you demo and example for implement.In this post, we will learn about How to Disable All Input Controls Inside a Form Using Vue JS with an example.

VueJS Disable enable Selector Examples

There are the Following The simple About VueJS Disable enable Selector Examples Full Information With Example and source code.

As I will cover this Post with live Working example to develop Enabling and Disabling text field using VueJS, so the vue.js disable input conditionally for this example is following below.

Example 1 Vue.JS Disable Selector Example

Here is the sample HTML file with Vue JS solution:

//Include vuejs CDN
https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.25/vue.js
<div id="mylive_app">
<h2>vue.js disable input conditionally</h2>
  <button>Click To 2 Time Enable</button>
  
    
  <pre>{{ $data | json }}</pre>
</div>

var app = new Vue({
  el: '#mylive_app',

  data: {
    disabled: 0,
  },
}); 

Vue JS button enable / disable with Demo
Angular 6 CRUD Operations Application Tutorials

Read :

Relavnt Keywords:vue :disabled not working, vue.js disable button after click, vue disable div, jquery disable button, html disabled using Vuejs, css disabled, vue select, vuejs disable component, Creating Custom Inputs With Vue.js, How to enable/disable an element using vuejs Example, Enabling and Disabling text field using VueJS, How to Disable All Input Controls Inside a Form Using Vue JS

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about VueJS Disable enable Selector Examples.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Laravel Dynamic active menu Example Tutorial 0

Laravel Dynamic active menu Example Tutorial

Today, We want to share with you Laravel Dynamic active menu Example Tutorial.In this post we will show you laravel active menu item, hear for laravel request is and laravel request::is we will give you demo and example for implement.In this post, we will learn about laravel 5.7 navigation menu with an example.

Laravel Dynamic active menu Example Tutorial

There are the Following The simple About Laravel Dynamic active menu Example Tutorial Full Information With Example and source code.

As I will cover this Post with live Working example to develop laravel 5.7 active class with active states laravel, so the some major files and Directory structures for this example is following below.

LARAVEL ADDING CLASS .ACTIVE TO CURRENT LINK

step 1: Create a helpers.php

function isActive($path)
{
    return Request::is($path . '*') ? ' active' :  '';
}

step 2: Add in composer.json files

"autoload": {
        "classmap": [
            "database"
        ],
        "files": [
            "app/helpers.php"
        ],
        "psr-4": {
            "App\": "app/"
        }
    },

step 3: How to use it:

<ul class="nav navbar-nav">
     
    <li class="{{ isActive('products') }}">
       <a href="{{ url('products') }}"><i class="fa fa-fw fa-user"></i> Products</a>
    </li>
 
 </ul>

Laravel 5.7 active menu item using request

<li class="{{ Request::is('status*') ? 'active' : '' }}">
    <a href="{!! route('status.index') !!}"><span>Status</span></a>
</li>
<li class="{{ Request::is('users*') ? 'active' : '' }}">
    <a href="{!! route('users.index') !!}"><span>Users</span></a>
</li>
<li class="{{ Request::is('roles*') ? 'active' : '' }}">
    <a href="{!! route('roles.index') !!}"><span>Roles</span></a>
</li>

Highlight Active Nav Links using Laravel

We can use ternary operator with 3 Examples. For example, We can check dynamic URI for the current ul > li route:

using ternary operator

<li{{ request()->is('product-types') ? ' class="active"' : '' }}>

using * as wildcard:

<li{{ request()->is('product-type-number-*') ? ' class="active"' : '' }}>

using check route name

<li{{ request()->route()->getName() === 'ProductType.index' ? ' class="active"' : '' }}>

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Laravel Dynamic active menu Example Tutorial.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Laravel Custom Namespaces Example Tutorial 0

Laravel Custom Namespaces Example Tutorial

Today, We want to share with you Laravel Custom Namespaces Example Tutorial.In this post we will show you Namespaces in Laravel Applications, hear for Laravel – Namespaces Example we will give you demo and example for implement.In this post, we will learn about Laravel 5.7 CRUD Example Tutorial For Beginners with an example.

Laravel Custom Namespaces Example Tutorial

There are the Following The simple About Laravel Custom Namespaces Example Tutorial Full Information With Example and source code.

As I will cover this Post with live Working example to develop Custom namespaces, so the Laravel – Namespaces with Custom namespaces for this example is following below.

Declaration of namespace

The use keyword allows the developers to shorten the namespace.

use <Your-namespace-name>;

Example

Laravel Create a simple user defined namespace

php artisan app:name InfoProduct

Namespaces

Simple common use-case for Lravel route groups is assigning the Like PHP namespace to a group of controllers using the namespace method:

Route::namespace('User')->group(function () {
    // Laravel 5.7 Controllers Within The "App\Http\Controllers\User" Namespace
});

Custom namespaces in Laravel Example

Calling Lang:

Lang::get('web::group.name');

@trans('web::group.name');

Calling Blade View:

view('web::index')

view('web::partials.sidebar')

Laravel Calling Config:

Config::get('web.name')

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Laravel Custom Namespaces Example Tutorial.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Laravel Pivot Tables Tutorial Example 0

Laravel Pivot Tables Tutorial Example

Today, We want to share with you Laravel Pivot Tables Tutorial Example.In this post we will show you Laravel multiple pivot table relationships, hear for Laravel 5.7 Role Management with Pivot Models we will give you demo and example for implement.In this post, we will learn about LARAVEL MANY-TO-MANY RELATIONS using Pivot Tables with an example.

Laravel Pivot Tables Tutorial Example

There are the Following The simple About Laravel Pivot Tables Tutorial Example Full Information With Example and source code.

As I will cover this Post with live Working example to develop Pivot Tables Example in Laravel, so the LARAVEL MANY-TO-MANY RELATIONS using Pivot Tables for this example is following below.

Pivot table — is a table used for Join or connecting Laravel relationships between two tables.

Working with pivot table(many-to-many) relationship in Laravel with Example

$product->types()->sync([1, 2, 3]) ;

If laravel Pivot table have some additionls columns add as well as we want to retrives them then we have to identify in your laravel model while defining the pivot table(many-to-many) relationship.

return $this->belongsToMany('Product')->withPivot('details');

Custom Pivot Table Models

here see full example of the Laravel custom pivot table

I have three tables :

  • fruites (I call it “Product”)
  • Product Category (I call it “Category)
  • Product Supplay (I call it “Supplay”)

My relationship :

  • Product has many Category (duplex fruites)
  • Product has many Supplay
  • Category has many Product
  • Category has many Supplay
  • Supplay has one Category
  • Supplay has one Product

class Product extends Model
{
    public function CategoryProducts(){
        return $this->hasMany('App\Models\Company\CategoryProduct');
    }

    public function Supplays()
    {
        return $this->hasManyThrough('App\Models\Company\Supplay','App\Models\Company\CategoryProduct', 'Category_id', 'Category_Product_id');
    }
}

class Category extends Model
{
    public function ProductCategorys()
    {
        return $this->hasMany('App\Models\Company\CategoryProduct');
    }

}

class CategoryProduct extends Model
{

    protected $table = 'Category_Product';

    public function Product(){
        return $this->belongsTo('App\Models\Company\Product');
    }

    public function Category(){
        return $this->belongsTo('App\Models\Company\Category');
    }

    public function Supplays()
    {
        return $this->hasMany('App\Models\Company\Supplay','Category_Product_id');
    }
}

class Supplay extends Model
{

    public function type(){
        return $this->belongsTo('App\Models\Company\Type');
    }

    public function CategoryProduct(){
        return $this->belongsTo('App\Models\Company\CategoryProduct','Category_Product_id');
    }

}
[/php

[php]
$fruites = Product::with('CategoryProducts','CategoryProducts.Category', 'Supplays')->first();
dd($fruites->Supplays);
foreach($fruites->CategoryProducts as $CategoryProduct){
    dd($CategoryProduct->Category);
}
[/php

[php]
$fruitess = Product::with('CategoryProducts','CategoryProducts.Category', 'Supplays')->withCount('Supplays')->get();

foreach($fruitess as $fruites){
    dd($fruites->Supplays_count);
    dd($fruites->Supplays); //direct Supplays for each fruites
    foreach($fruites->CategoryProducts as $CategoryProduct){
        dd($CategoryProduct->Category);
    }
}    

laravel pivot table migration

Create Laravel a new migration

php artisan make:migration create_alpha_beta_table --create --table=alpha_beta

Example: laravel pivot table

//get user by id
$user = App\User::find(1);

//get roles of this user
foreach ($user->roles as $role) {

  //pivot attribute returns a model which represent user_role table
  echo $role->pivot->created_at;

}
[/php

<p>create a Laravel class by extending pivot</p>
[php]
class Product extends Model
{
    /**
     * The users that belong to the role.
     */
    public function Cats()
    {
        return $this->belongsToMany('App\Cat')->using('App\Cat_Product');
    }
}

class Cat extends Model
{
    /**
     * The users that belong to the role.
     */
    public function Products()
    {
        return $this->belongsToMany('App\Product')->using('App\Cat_Product');
    }
}

class Cat_Product extends Pivot
{
    //
}

Angular 6 CRUD Operations Application Tutorials

Read :

Summary

You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about Laravel Pivot Tables Tutorial Example.
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.