React

How to create a striped DataGrid in Material UI (React, TypeScript)

Material UI

DataGrid looks like a table, but it’s another component, it consists of multiple div-elements. But for a user it’s a table and common table attributes are often required. One of them is striped rows. Below there’s an example how to implement it. Read more»

React

Create an array of Objects and fill it with initial values in Typescript

Obviously, it’s an ordinary case, when you get an array of objects and you need to create for the reply the array of other Objects, but you need to initialize it on load. For React developers it can be often used with useEffect or componentDidMount. Read more»

React

How to make the component TextField in Material UI small

Material UI

To modify the size of the TextField component in Material UI, you can make several things. The basic modification is obvious, but other ones are not so. By default, the component TextField is rather big and it’s really a common task to make it less. Read more»

React

Add SVG as a background image to a CSS class

If you want to set a background image for an element in CSS, you can do it at least in 2 ways. Which one fits you, it depends on your tasks and the tools you work with. This way of adding a SVG image as a background can be applied for any CSS property, for […] Read more»

React

Add external CSS or styles to SPFX solution

SharePoint 2016 Logo

When I started to work with SPFX solutions for SharePoint, I couldn’t understand how to load external CSS files. I came up with one solution, but it was a crutch. I did it with embedding <styles> tag into JSX. It looked like this: Read more»

React

The customizing of Tabs control from ANTD

I like the Ant Design of React and for me it’s very useful. Usually I prefer functionality to a better design and it allows me to achieve a functionality much faster. But when you do something not for yourself, you have a customer and he decides which design better. Read more»

React

NodeJS: Update all the packages to current versions with NPM

NodeJS

I downloaded a repository from github and decided to install the packages. I entered ‘npm install’ but as a result I’ve got a lot of messages that packages are deprecated and some errors. As I could see in the log files, the problem was connected with old packages. So I wanted to update all the […] Read more»

React

Embed stream RTMP video in Intranet site SharePoint 2010

VideoJS

Playing stream video is a very popular task in nowadays in companies with wide network. Stream video is supported well with modern browsers, but there are some difficulties with streaming inside networks without direct Internet access and SharePoint 2010 as a portal solution. Of course, SharePoint 2010 is very good, but it is unlikely to […] Read more»

React

Count rows in table with jQuery

jQuery logo

There’s a table in html page and you need to get the quantity of it’s rows. It’s easy to get it with jQuery. Read more»

React

Set option ‘selected’ in select form by text using jQuery

jQuery logo

The code below is my solution in creating a custom SharePoint List form. The list has a lookup column, the column is filled with Name (Fullnames) of employees. The task is to mark option with user Name as selected. Variable ‘user’ is equal to Name of employee. Read more»

React

Popular Posts