Javascrpt

Determine the first and last days of a quarter with Day.js

Day.js

Determining the first and last days of a quarter is a common task for accounting applications and reporting. For web applications, I have been using Day.js (https://day.js.org/) for a long time instead of the well-known moment. There is an extension for Day.js that allows you to determine the first and last days of a quarter. Read more»

TypeScipt / Javascript

Fix the warning ‘The value provided to Autocomplete is invalid’ for MUI Autocomplete

Material UI

For the development of a Ract component I used MUI Autocomplete. I got the array of objects from SharePoint list and used this data as a parameter for options. Actually, you can use any source.But I had a lot of warnings in console. MUI: The value provided to Autocomplete is invalid.None of the options match […] Read more»

React

How to replace deprecated InputLabelProps in MUI 6

Material UI

I used a TextField component in MUI and wanted to make a label always visible. By default, it hides, when cursor is out (onBlur) and the value is empty. Very strange and not what I wanted to. Read more»

React

German localization of FluentUI DatePicker

DatePicker with German localization

As it turned out, FluentUI DatePicker for React doesn’t contain a built-in German localization. If you need one, you can use my version. Read more»

React

Check user permissions in SPFX solutions

SharePoint 2016 Logo

There’s a small snippet to check if current user permissions are enough to save list items. It can be used in SPFX webparts with PNP JS. Read more»

SharePoint

Horizontal scroll of Div on Button Click in React

The code of the React component to scroll DIV content by axe X. It can be useful when you have a wide table and a narrow screen. Or a designer had a very cool idea of the interface. Read more»

TypeScipt / Javascript

Customize Filter Styles in DataGrid MUI

Material UI

If you want to customize the styles for filter panels in DataGrid from Material UI (MUI), you need to know, where it is. And only so. To update these styles you can only with the object properties. Read more»

React

SharePoint List Template ID Reference

SharePoint 2016 Logo

Its’s more and more complicated to find information about SharePoint. I don’t really know why it’s so. That’s why I often write down the references and examples. Today I tried to remember how to create a SharePoint list with PNPJS and there’s a parameter which template you will use. Read more»

SharePoint

Popular Posts