Found 6685 Articles for Javascript

How to create Tabs in ReactJS ?

Rohan Singh
Updated on 17-Jul-2023 19:24:19

1K+ Views

ReactJS is a popular JavaScript library for building user interfaces. It provides a component−based approach to web development, making it easier to create interactive and dynamic UI elements. Tabs are a common UI pattern used to organize and present content in a user−friendly manner. In this article, we will explore how to create a tab component in ReactJS. Prerequisites Before reading this article, you should have a basic understanding of ReactJS and its core concepts. Make sure you have Node.js and npm (Node Package Manager) installed on your machine. Setting up a new React project First, let's set up a ... Read More

How to Create a Time Picker in ReactJS ?

Rohan Singh
Updated on 18-Jul-2023 15:27:21

1K+ Views

ReactJS is a popular JavaScript library for building user interfaces. It provides developers with a flexible and efficient way to create interactive web applications. Time pickers are commonly used in applications where users need to select a specific time slot for booking appointments, scheduling events, or reserving resources. A time picker allows users to easily select the desired time and ensures accurate time allocation. In this article, we will create a time picker in steps using reactjs. Setting Up the React App First, let's set up a new React application using Create React App. Open your terminal and run the ... Read More

How to create a Switch in ReactJS?

Rohan Singh
Updated on 17-Jul-2023 19:17:36

1K+ Views

ReactJS is a popular JavaScript library for building user interfaces, and it provides an effective approach to developing interactive components. Toggle switches are frequently used to allow users to switch between a dark mode and a light mode theme in a web application. Toggle switches can also be used to show or hide specific content or sections of a page. In this article, we will explore how to create a toggle switch using ReactJS. Prerequisites Before proceeding with this tutorial, it is assumed that you have a basic understanding of ReactJS and have a development environment set up with ... Read More

How to create a Responsive Admin Dashboard using HTML CSS & JavaScript ?

Rohan Singh
Updated on 17-Jul-2023 18:57:29

8K+ Views

An admin dashboard provides important data insights and controls for managing various aspects of an application or website. In this article, we will explore the process of creating a responsive admin dashboard using the three pillars of web development: HTML, CSS, and JavaScript. Prerequisites To follow this article, you should have a basic understanding of HTML, CSS, and JavaScript. Familiarity with concepts like responsive design, CSS Flexbox, and CSS Grid will also be helpful. Step 1: Setting Up the HTML Structure We'll start by setting up the basic HTML structure for our admin dashboard. Create a new HTML ... Read More

How to create a slider to map a range of values in JavaScript ?

Rohan Singh
Updated on 17-Jul-2023 19:13:44

663 Views

In JavaScript, mapping a range of values to another range of values can be achieved through various approaches. One common method is by using a slider. A slider allows users to interactively select a value within a specified range and display the mapped value in real-time. In this article, we will explore how to create a slider in JavaScript and map a range of values from (0-100) to (100-10, 000, 000). Steps to create a Slider to map a range of Values in Javascript Step 1: HTML Structure First, we need to set up the HTML structure for our slider. ... Read More

What are the restrictions of web workers on DOM in JavaScript?

Rushi Javiya
Updated on 14-Jul-2023 10:12:49

380 Views

JavaScript is a single-threaded programming language. It means it executes all code of the application in a step-by-step manner. In some situations, we need to execute computationally extensive tasks. For example, applications with large databases need to process large amounts of data, which may take more time than usual. To improve the application performance in this case, we need to use multi-threading, which can run multiple tasks concurrently. JavaScript doesn’t support multi-threading, but web workers allow us to run particular tasks in the background, improving the application's performance and user experience. However, there are some limitations in using the web ... Read More

Implode an array with jQuery/JavaScript

Rushi Javiya
Updated on 14-Jul-2023 10:06:40

536 Views

In this tutorial, we will learn to implode a given array using JavaScript and JQuery. In web development, many situations occur where we must implode the array. For example, we have given a list of tags and need to implode them into a single string to insert into the web page. Another case where we may require to implode an array is while writing the SQL queries. Here, we will learn 4 approaches to join the elements of the given array. Using the Array.join() Method to Implode the Array The array.join() method allows us to join the array elements into ... Read More

How to create bar chart in react using material UI and Devexpress?

Rushi Javiya
Updated on 14-Jul-2023 10:00:16

794 Views

The material UI is a popular CSS library that we can use to style the React application. It contains various pre-styled React components that we can use directly in the application by importing them into the code. The 'dx-react-chart-material-ui’ is an NPM package of Devexpress that can connect the material-ui and ‘dx-react-chart’ library of dev express. The ‘dx-react-chart’ is used to create a chart, and material UI is used to style the chart. Users can execute the below command to install the material UI in the React application. npm install @mui/material @emotion/react @emotion/styled Also, execute the below command to ... Read More

How to create and download CSV file in JavaScript?

Rushi Javiya
Updated on 14-Jul-2023 09:59:03

4K+ Views

JavaScript has great capability to manipulate various data and handle them with files of different formats. Sometimes, developers require to handle the data with the CSV file while developing web applications using JavaScript. For example, we are building an e-commerce platform where users can buy and sell products. Also, we want to allow users to download their order details according to the time horizon into the CSV file. We need to interact with the data and CSV files in such cases. Another example is online banking sites allow us to download the transaction details in CSV files. In this ... Read More

How to create an image element dynamically using JavaScript?

Rushi Javiya
Updated on 14-Jul-2023 09:58:06

8K+ Views

In HTML, the image element is used to show the images on the web page. It takes multiple attributes according to the requirements, such as ‘src’, ‘alttext’, ‘height’, ‘width’, etc. In some situations, we require to dynamically add images to the web page. For example, we have stored an unknown number of movie data in the database. We need to fetch the movie data, and we need to show the movie image with details for each movie. In this case, we need to append the image and data to the DOM using JavaScript. Below, we will learn to add image ... Read More

Advertisements