Change No Data Text for Search in SAPUI5

SAP Developer
Updated on 12-Jun-2020 11:42:15

649 Views

You just need to use the noDataText property to sort out your requirement.You have two options, either you can change in controller or you can change in the XML.Option 1:Call the setNoDataText method in the init methodthis.byId(“”).setNoDataText(“”)Option 2:Add the noDataText property in the XML

Inline Subheadings in Bootstrap

Ankith Reddy
Updated on 12-Jun-2020 11:34:35

994 Views

To add an inline subheading to any of the headings, simply add around any of the elements or add .small class and you will get a smaller text in a lighter color. You can try to run the following code to work with inline subheadings in Bootstrap −Example Live Demo           Bootstrap Example                                       Heading1 h1.          I'm secondary Heading h1             Heading2 h2.          I'm secondary Heading h2          

Function Expression vs Function Declaration in JavaScript

Rishi Raj
Updated on 12-Jun-2020 11:30:56

458 Views

Function DeclarationThe “function” keyword declares a function in JavaScript. To define a function in JavaScript use the “function” keyword, followed by a unique function name, a list of parameters (that might be empty), and a statement block surrounded by curly braces.Here’s an example −function sayHello(name, age) {    document.write (name + " is " + age + " years old."); }Function ExpressionFunction Expression should not start with the keyword “function”. Functions defined can be named or anonymous.Here are the examples −//anonymous function expression var a = function() {    return 5; }Or//named function expression var a = function bar() {    return 5; }

Parse JSON Object in JavaScript

Vikyath Ram
Updated on 12-Jun-2020 11:28:10

714 Views

ExampleTo parse JSON object in JavaScript, implement the following code −                    myData = JSON.parse('{"event1":{"title":"Employment period","start":"12\/29\/2011 10:20 ","end":"12\/15\/2013 00:00 "},"event2":{"title":"Employment period","start":"12\/14\/2011 10:20 ","end":"12\/18\/2013 00:00 "}}')          myArray = []          for(var e in myData){             var dataCopy = myData[e]             for(key in dataCopy){                if(key == "start" || key == "end"){                   dataCopy[key] = new Date(dataCopy[key])                }             }             myArray.push(dataCopy)          }          document.write(JSON.stringify(myArray));          

Pass a Parameter to a setTimeout Callback

Daniol Thomas
Updated on 12-Jun-2020 11:26:29

2K+ Views

To pass a parameter to setTimeout() callback, use the following syntax −setTimeout(functionname, milliseconds, arg1, arg2, arg3...)The following are the parameters −function name − The function name for the function to be executed.milliseconds − The number of milliseconds.arg1, arg2, arg3 − These are the arguments passed to the function.ExampleYou can try to run the following code to pass a parameter to a setTimeout() callbackLive Demo           Submit                function timeFunction() {             setTimeout(function(){ alert("After 5 seconds!"); }, 5000);          }          Click the above button and wait for 5 seconds.    

Bootstrap Lead Class

Chandu yadav
Updated on 12-Jun-2020 11:26:25

2K+ Views

The lead class in Bootstrap is used to add emphasis to a paragraph.You can try to run the following code to implement the lead class in Bootstrap −Example Live Demo           Bootstrap lead class                                       Lead Example       This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is demo text. This is an example paragraph demonstrating the use of lead body copy.          

Bootstrap Class to Emphasize Text

Ankith Reddy
Updated on 12-Jun-2020 11:11:06

1K+ Views

HTML's default emphasis tags such as sets text at 85% the size of the parent, emphasizes a text with heavier font-weight, and emphasizes a text in italics.You can try to run the following code to an emphasis on text −Example Live Demo           Bootstrap emphasis tags                                       This content is within tag       This content is within tag       This content is within tag and is rendered as italics       Left aligned text.       Center aligned text.       Right aligned text.       This content is muted       This content carries a primary class       This content carries a danger class    

Bootstrap Abbr Element Styling

Chandu yadav
Updated on 12-Jun-2020 10:58:46

605 Views

Bootstrap styles elements with a light dotted border along the bottom and reveal the full text on hover.The HTML element provides markup for abbreviations or acronyms, such as NASA, HTTPS, ICC, etc.You can try to run the following to understand how Bootstrap styles the element −Example Live Demo           Bootstrap abbr styling                                       NASA       ICC    

HTML DOM Input Button Object

Sharon Christine
Updated on 12-Jun-2020 10:51:47

270 Views

The HTML DOM Input Button Object serves as an input HTML element with type attribute as “button”.Let us see how to create an Input Button Object −syntaxFollowing is the syntax −var newButton = document.createElement(“INPUT”); newButton.setAttribute(“type”, ”value”);Here, value can be “button”, “submit” & “reset”.propertiesFollowing are the properties of Input Button Object −PropertyExplanationautofocusThis property returns and alter the value of autofocus attribute of an input button in HTML.defaultValueIt returns and modify the default value of an input button in HTML.disabledIt returns and alter the value of disabled attribute of an input button in HTML.formIt returns the reference of the form which enclose ... Read More

Bootstrap Pull Right Class

Arjun Thakur
Updated on 12-Jun-2020 10:51:29

420 Views

Use the default around any HTML text. You can also add a tag for identifying the source of the quote and right aligning the blockquote using class .pull-right:Example Live Demo           Bootstrap pull-right class                                                This is a default blockquote example. This is a default             blockquote example. This is a default blockquote             example.This is a default blockquote example. This is a             default blockquote example.                      This is a blockquote with a source title.          Someone famous in Source Title             This is a blockquote aligned to the right.          Someone famous in Source Title          

Advertisements