Found 8895 Articles for Front End Technology

How to call a function with Mouse hover in VueJS?

Mayank Agarwal
Updated on 13-Apr-2023 16:35:05

2K+ Views

While hovering over a div or an element sometimes we require to display some information. This information or data is displayed while hovering over it with the mouse. Therefore, to display this data, we basically use the JS function @mouseover to display data. In the above specific case, we will make the mouseover function which will return data on hover. Please look at the below example for more clarification. Syntax Following is the syntax to call a function with mouse hover in Vue.js − mouseOver: function(){ this.active = !this.active; } Here mouseOver ... Read More

How to bind the background image in Vue.js?

Mayank Agarwal
Updated on 13-Apr-2023 16:33:52

6K+ Views

The value for v-bind:style is just a plain JavaScript object that works upon some rules for binding the content. The value of the background image should be a string. So we can apply or data-bind the background image in Vue.js using the style tag and then defining the backgroundImage URL in it. It will automatically retrieve the url from the string and then display the same data content on the browser webpage. To access the background image, make a div element and define the background image in it with url. The url will be retrieved from the JS file. Example ... Read More

How to bind attributes in VueJS?

Mayank Agarwal
Updated on 13-Apr-2023 16:32:38

1K+ Views

The v-bind directive in VueJS can be used for binding one or more attributes, or a component prop to an element. If the attribute is bonded towards our data that is defined in the Vue instance, then we can observe these data changes dynamically since the attributes are binded. To apply the v-bind directive, we will first create a div element with id ‘app’. Once the div element is created, we can apply the v-on: click.middle directive to the element. Syntax We can use the following syntax to bind attributes in Vue.js − v-bind:attribute = "expression" Here "expression" ... Read More

How to apply Switch in Vue using Filters?

Mayank Agarwal
Updated on 13-Apr-2023 16:31:06

450 Views

Vue can be defined as a progressive framework for building the user interfaces. It has multiple directives that can be used as per the user needs. The basic core library is mainly focused on building the view layer only and is also easy to pick up other libraries or integrate with them. The vue components provides the filter functionality to filter out the requests and response that lets the user to apply different formatting and transformations to the template dynamic data. Filters are used in two places : mustache interpolation and v-bind expressions. Functions are appended in the end of ... Read More

How to add or apply global variables in Vue.js?

Mayank Agarwal
Updated on 13-Apr-2023 16:29:26

5K+ Views

In a Vue.js application there may be data or utilities that are used in many components, but you don’t want to change its scope and keep its value same for all the components. These types of variables are called the global variables. In such cases, the user can use the following syntax for defining the prototype − Vue.prototype.$appName = 'My App' Now this $appName will be available on all the Vue instances, even before creation. The $ defined before the appName is the convention used for properties that are available to all the instances. The user can also ... Read More

How to create Mini Fieldcontain flip toggle switch using jQuery Mobile?

Aayush Mohan Sinha
Updated on 13-Apr-2023 16:07:23

130 Views

The development of intuitive and user-friendly interfaces is an integral facet of contemporary web design. As web technologies persist in evolving, programmers must keep pace with the latest patterns and resources to offer users the optimal experience. One popular solution for creating interactive mobile-friendly interfaces is jQuery Mobile, a user interface framework built on top of the jQuery library. In this article, we will explore the process of creating a Mini Fieldcontain flip toggle switch using jQuery Mobile. By the end of this tutorial, you will have a solid understanding of how to use jQuery Mobile to create this unique ... Read More

How to create mail and phone link in HTML?

Aayush Mohan Sinha
Updated on 13-Apr-2023 16:05:05

1K+ Views

Formulating mailto and telephone connections in HTML may be a straightforward and efficacious technique to enable virtual guests to promptly communicate with your enterprise. These links furnish a convenient modus operandi for users to transmit an electronic message or establish a phone conversation directly from your webpage, sans the arduous chore of typing out your contact details. This manuscript will comprehensively discuss the necessary procedures to actualize both mailto and phone links in HTML, equipping you with the essential mechanisms to affix these expedient links to your personal website. Mailto Link A mailto link in HTML allows you to create ... Read More

How to create lists and links using jQuery EasyUI Mobile?

Aayush Mohan Sinha
Updated on 13-Apr-2023 16:02:55

172 Views

In the world of mobile web development, creating lists and links that are both functional and visually appealing is crucial for user engagement. jQuery EasyUI Mobile, a robust JavaScript framework, offers developers the tools to achieve this objective with ease. While some may find the process of creating lists and links with jQuery EasyUI Mobile daunting, mastering this skill is crucial for crafting high-quality mobile web applications. In this article, we will explore the step-by-step approach to creating lists and links using jQuery EasyUI Mobile, delving into the underlying syntax and parameters that allow developers to create captivating and dynamic ... Read More

How to create links to sections within the same page in HTML?

Aayush Mohan Sinha
Updated on 13-Apr-2023 16:01:46

8K+ Views

Crafting internal links within a web page in HTML has a positive impact on user experience, as it enhances the navigation for the website guests. By exploiting the id attribute and the a tag, one can effortlessly establish connections to certain portions of a web page, facilitating speedy access to required information without the tedious task of scrolling through the entire page. In this write-up, we will take you through the necessary procedures to devise such links that exist within a single webpage, using HTML. Syntax … Id Attribute The identifier attribute in HTML is leveraged to recognize an ... Read More

How to create Linked Unordered listviews using jQuery Mobile?

Aayush Mohan Sinha
Updated on 13-Apr-2023 15:47:26

85 Views

It is imperative to craft a website that is receptive to user interactions and highly convenient to use. A pivotal element in accomplishing this is by presenting data in a lucid and structured form. Linked unordered lists are one means of accomplishing this goal, as they can be a powerful technique to showcase a substantial volume of information on a web page while still ensuring smooth navigation. In this article, we shall scrutinize the creation of interrelated unsorted listviews with the aid of jQuery Mobile - a highly potent and versatile framework that is utilized for the development of mobile-responsive ... Read More

Advertisements