Set heights and widths of forms with Bootstrap

Chandu yadav
Updated on 12-Jun-2020 13:49:34

2K+ Views

Use classes like .input-lg and .col-lg-* to set the height and width of forms.ExampleYou can try to run the following code to set the form height and width −Live Demo           Bootstrap Example                                                                                                                                                                                .input-lg                                                            Default select                                                            .input-sm                                                                                                                                                                            

Creating a Function module in ABAP to take any table and write it to the screen

Manikanth Mani
Updated on 12-Jun-2020 13:49:01

2K+ Views

SAP List Viewer is used to add an ALV component and provides a flexible environment to display lists and tabular structure. A standard output consists of header, toolbar, and an output table. The user can adjust the settings to add column display, aggregations, and sorting options using additional dialog boxes.You can use following code to display any table:DATA: go_alv TYPE REF TO cl_salv_table.    CALL METHODcl_salv_table=>factory    IMPORTING       r_salv_table = go_alv    CHANGING       t_table     = itab.  go_alv->display( ).Another Dynamic Way to Output Any Internal Table is by using field-symbol, this is a ... Read More

input-lg Bootstrap class

Lakshmi Srinivas
Updated on 12-Jun-2020 13:48:36

556 Views

The input-lg is used to set the height of forms in Bootstrap.You can try to run the following code to implement the input-lg Bootstrap class ExampleLive Demo           Bootstrap Example                                                                                                                .input-lg                                

Bootstrap Form CheckBox

Lakshmi Srinivas
Updated on 12-Jun-2020 13:46:22

544 Views

Use checkbox class if you want the user to select any number of options from a list. Use .checkbox-inline class to a series of checkboxes for controls appear on the same line.You can try to run the following code to implement Bootstrap form checkboxExampleLive Demo           Try v1.2 Bootstrap Online                                 Favourite Live Streaming                             Amazon Prime                                             Hotstar                    

Indicate a warning action to a particular table row or cell with Bootstrap

Ankith Reddy
Updated on 12-Jun-2020 13:45:14

475 Views

To indicate a warning action to a particular table row or cell with Bootstrap, use the .warning class.You can try to run the following code to implement the .warning class −ExampleLive Demo           Bootstrap Table                                                                                         Subject                   Marks                   Type                                                                           Java                   90                   Programming Language                                                   PHP                   92                   Scripting Language                                                   jQuery                   80                   JavaScript Library                                                

Bootstrap active Contextual class

Samual Sam
Updated on 12-Jun-2020 13:44:08

241 Views

The Bootstrap active contextual class applies hover color to a particular row or cell. You can try to run the following code to implement the active contextual classExampleLive Demo           Bootstrap Table                                                                      Subject                Marks                Student                                                            Maths                90                Amit                                        Science                80                Aman                                        English                85                Rahul                                

How to use window.location to redirect to a different URL with JavaScript?

Nishtha Thakur
Updated on 12-Jun-2020 13:43:23

555 Views

You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection.It is quite simple to do a page redirect using JavaScript on the client side. To redirect your site visitors to a new page, you just need to add a line in your head section as follows −ExampleYou can try to run the following code to learn how to use window.location to redirect to another URL. Here, we will redirect to the home pageLive Demo           ... Read More

How do I display the date, like "Aug 5th", using Python's strftime?

Rajendra Dharmkar
Updated on 12-Jun-2020 13:42:44

2K+ Views

It is not possible to get a suffix like st, nd, rd and th using the strftime function. The strftime function doesn't have a directive that supports this formatting. You can create your own function to figure out the suffix and add it to the formatting string you provide.Examplefrom datetime import datetime now = datetime.now() def suffix(day):   suffix = ""   if 4

Why doesn't JavaScript have a goto statement?

Samual Sam
Updated on 12-Jun-2020 13:41:12

410 Views

JavaScript has a goto statement, which is a reserved keyword. It isn’t popular since it is not needed in JavaScript. Generally, it isn’t considered a good practice to use a goto statement.Using goto with JavaScript preprocessing is still considered good as shown below −var a = 0; [lbl] beginning: console.log("Demo Text!"); a++; if(i < 424) goto beginning;The above code gets translated like the following −var a = 0; beginning: while(true) {    console.log("Demo Text!");    a++;    if(i < 424) continue beginning;    break; }

How to use labels to control the Flow in JavaScript?

Priya Pallavi
Updated on 12-Jun-2020 13:40:11

490 Views

To control the flow in JavaScript, use labels. A label can be used with break and continue statement to control the flow more precisely. A label is simply an identifier followed by a colon (:) that is applied to a statement or a block of code. We will see two different examples to understand how to use labels with break and continue.ExampleYou can try to run the following code to use labels to control the flow, with break statement −Live Demo                                     ... Read More

Advertisements