Mayank Agarwal has Published 410 Articles

How to Create a Color Picker using HTML, CSS, and JavaScript?

Mayank Agarwal

Mayank Agarwal

Updated on 29-Feb-2024 15:07:48

1K+ Views

We can easily create a simple color picker on a palette in Javascript. The primary colors on a color picker are RGB i.e. Red, Green, and Blue. With the help of mixing these colors, we can form any color we want.In this article, we will be learning about how to ... Read More

Encrypt and Decrypt Data in NodeJS

Mayank Agarwal

Mayank Agarwal

Updated on 12-Sep-2023 03:06:57

35K+ Views

NodeJS provides inbuilt library crypto to encrypt and decrypt data in NodeJS. We can use this library to encrypt data of any type. You can do the cryptographic operations on a string, buffer, and even a stream of data. The crypto also holds multiple crypto algorithms for encryption. Please check ... Read More

How to conditionally disable the input taking in VueJS?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:42:54

3K+ Views

For removing the disabled property, we can use the disabled tag available in VueJS. The disabled tag basically checks for the boolean value and decides if the input tag needs to be displayed or not. We set the value in app.js and dynamically change its value based on the toggle ... Read More

How to check if a string is palindrome or not without filters in VueJs?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:42:02

101 Views

Filters basically provides the functionality to check inputs and then apply different type of formatting or transformations to the same. The filter property of a component is an object that accepts a value and return some other confirgured value as a response. In this article, we will not use filters ... Read More

How to categorize a year as a Leap or Non-Leap using Vue?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:40:34

69 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 ... Read More

How to capitalize a String using VueJs filters?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:37:38

1K+ 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 it is also easy to pick up other libraries or ... Read More

How to call a VueJS component method from outside the component ?

Mayank Agarwal

Mayank Agarwal

Updated on 13-Apr-2023 16:36:08

5K+ Views

Generally, we cannot call a Vue component method from outside the component. But we have a way to call the component from outside. We can use the Vue’s ref Directive. This metthod allows a component to be referenced from the parent for direct access. To apply the ref Directive, we ... Read More

How to call a function with Mouse hover in VueJS?

Mayank Agarwal

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 ... Read More

How to bind the background image in Vue.js?

Mayank Agarwal

Mayank Agarwal

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

5K+ 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 ... Read More

How to bind attributes in VueJS?

Mayank Agarwal

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 ... Read More

1 2 3 4 5 ... 41 Next
Advertisements