Toggle Bootstrap Modal

Amit Diwan
Updated on 18-Jun-2020 07:25:35

535 Views

Use the .modal(“toggle”) method in Bootstrap to toggle the modal.On button click, the modal generates using the modal(“toggle”) method −$(document).ready(function(){   $("#button1").click(function(){     $("#newModal").modal("toggle");   }); });The button is set here using the following code snippet −   Modal One You can try to run the following code to implement the modal(“toggle”) method −ExampleLive Demo       Bootstrap Example                             Sample     Modal One                                         ×             Sample Modal                             Click outside to close it.                           Close                       $(document).ready(function(){     $("#button1").click(function(){       $("#newModal").modal("toggle");     });   });

SAP HANA Row and Column Store Table

SAP Developer
Updated on 18-Jun-2020 07:24:39

2K+ Views

SAP HANA Modeler Views can only be created on the top of Column based tables. Storing data in Column tables is not a new thing. Earlier it was assumed that storing data in Columnar based structure takes more memory size and not performance Optimized.With the evolution of SAP HANA, HANA used column-based data storage in Information views and presented the real benefits of columnar tables over Row based tables.Column StoreIn a Column store table, Data is stored vertically. So, similar data types come together as shown in the example above. It provides faster memory read and writes operations with help ... Read More

Bootstrap 4 Card Footer Class

Amit Diwan
Updated on 18-Jun-2020 07:23:31

1K+ Views

Use the card-footer class in Bootstrap 4 to set the footer of a Bootstrap card.Add it using the class −   Add footer message here The card-footer class comes after the card-header and card-body class −   Details   Timings: 4PM - 8PM   Reach before 4PM You can try to run the following code to implement the card-footer class −ExampleLive Demo       Bootstrap Example                             Conference           Details       Timings: 4PM - 8PM       Reach before 4PM      

Difference Between equals and compareTo in Java

Rama Giri
Updated on 18-Jun-2020 07:22:14

3K+ Views

The compareTo() method compares two strings lexicographically. The comparison is based on the Unicode value of each character in the strings. The character sequence represented by this String object is compared lexicographically to the character sequence represented by the argument string.The result is a negative integer if this String object lexicographically precedes the argument string. The result is a positive integer if this String object lexicographically follows the argument string. The result is zero if the strings are equal, compareTo returns 0 exactly when the equals(Object) method would return true.ExampleLive Demopublic class StringDemo {    public static void main(String[] args) {   ... Read More

Bootstrap 4 Flex Row Class Implementation

Amit Diwan
Updated on 18-Jun-2020 07:21:43

255 Views

To set flex items horizontally for different screen sizes like large, small, medium, etc, use the flex-*-row class.Let us see which flex-*-row class is used for different screen sizes −Small Screen Size: flex-sm-row Medium Screen Size: flex-md-row Large Screen Size: flex-lg-rowThe following is an example to set flex items horizontally for small screen size −   Audi   BMW   Benz You can try to run the following code to implement .flex-*-row class in Bootstrap 4 −ExampleLive Demo       Bootstrap Example                       ... Read More

Bootstrap Popover Show Method

Amit Diwan
Updated on 18-Jun-2020 07:18:57

1K+ Views

Display the popover using the popver(“show”) method.You need to set the popover as −   Sample Now display the popover −$(document).ready(function(){   $(".btn-default").click(function(){     $("[data-toggle='popover']").popover('show');   }); });Let us see the complete example display how to implement the popover(“show”) method −ExampleLive Demo       Bootstrap Example                             Demo     Sample           The following is a demo button:       Demo Button           $(document).ready(function(){     $(".btn-default").click(function(){       $("[data-toggle='popover']").popover('show');     });    });

Display Flex Items Horizontally on Specific Screen Size in Bootstrap

Amit Diwan
Updated on 18-Jun-2020 07:15:45

696 Views

To set flex item horizontally in different screen size, use the flex-*-row class.The varied screen sizes is set for small, medium, large and extra large screen size. Let us see how to align flex items horizontally for small screen size −Flex Row (Small Screen)   Audi   BMW   Benz The following is an example to display flex items horizontally on different screen size −ExampleLive Demo       Bootstrap Example                             Flex   ... Read More

Java JVM Memory Types

Kumar Varma
Updated on 18-Jun-2020 07:14:20

4K+ Views

Java Virtual Machine is a program/software which takes Java bytecode (.class files)and converts the byte code (line by line) into machine understandable code.JVM contains a module known as a class loader. A class loader in JVM loads, links and, initializes a program. It−Loads the class into the memory. Verifies the byte code instructions.Allocates memory for the program.The memory in the JVM is divided into five different parts namely− Method area− The method area stores the class code − code of the variables and methods. Heap − The Java objects are created in this area. Java Stack− While running methods the results are stored in ... Read More

Bootstrap Show BS Popover Event

Amit Diwan
Updated on 18-Jun-2020 07:13:48

239 Views

The show.bs.popover event fires when the popover is about to be visible.Fire the popover event −$("[data-toggle='popover']").on('show.bs.popover', function(){   alert('Popover is about to be visible!'); });You can try to run the following code to implement the show.bs.popover event −ExampleLive Demo       Bootstrap Example                             Awards           Here's the list:       List           $(document).ready(function(){     $(".btn-default").click(function(){       $("[data-toggle='popover']").popover('show');     });     $("[data-toggle='popover']").on('show.bs.popover', function(){       alert('Popover is about to be visible!');     });   });

Java Memory Pool Division

Rama Giri
Updated on 18-Jun-2020 07:13:47

456 Views

Java memory pool is divided into 5 parts namely −Method area − The method area stores the class code − code of the variables and methods.Heap−The Java objects are created in this area.Java Stack− While running methods the results are stored in the stack memory.PC registers− These contain the address of the instructions of the methods.Native method stacks− Similar to Java stack, native methods are executed on the Native method stacks.

Advertisements