Development

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

A JS/TS useful snippet to return top N records ordered by time

Javascript logo

A JS/TS useful snippet to return only several last records with sorting by time. The data is stored in localStorage. I can’t modify the types for external component, so that’s why all the data has string types. and I use ‘moment’ to convert the strings to the date format. Read more»

TypeScipt / Javascript

Rename SharePoint List Field with PNP

SharePoint 2016 Logo

While writing the script to create lists for my solution for SharePoint Online I had to rename Title field in a list. It’s not so obviously as just to create a new field. Read more»

SharePoint

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

RestAPI to get Properties of SharePoint image

You can get properties of an image from SharePoint library with RestAPI The request looks like this: http://realdevtips.com/sites/Euro2024/bestboat/_api/Web/GetFileByServerRelativeUrl('/sites/Euro2024/bestboat/VoteLib/Team2/Regal.jpg')/Properties The result is XML from which you should extract the values you want to use. Read more»

SharePoint

EventCalendar by Mobiscroll – month timeline to fit screen

SharePoint 2016 Logo

I used EventCalendar component with resources and timeline view, the default interval is 1 month, I also add week numbers to the header. I wanted to fit the calendar to the page without horizontal scroll. Read more»

SharePoint

Dapper with PostgreSQL and MSSQL Server

Create a console app with .Net Framework 4.7.2 with Dapper and datasource in MSSQL Server or PostgreSQL. If you create this ancient app, you should only add Dapper and NPGSQL packages from Nuget. The support of MS SQL Server is already built in. The scenario for .Net Framework is from real life, several applications still […] Read more»

.Net & C#

Popular Posts