Skip to content

Instantly share code, notes, and snippets.

View dfenerski's full-sized avatar

Dimitar Fenerski dfenerski

View GitHub Profile
@dfenerski
dfenerski / AvatarGroupItem.ts
Last active July 14, 2024 15:55
`sap.f.AvatarGroupItem` enhanced with `badgeIcon` & `badgeTooltip` properties
import FAvatarGroupItem from 'sap/f/AvatarGroupItem';
import Avatar from 'sap/m/Avatar';
import type AvatarColor from 'sap/m/AvatarColor';
import type Event from 'sap/ui/base/Event';
import { ValueState } from 'sap/ui/core/library';
@namespace('your.namespace')
export default class AvatarGroupItem extends FAvatarGroupItem {
public static readonly metadata = {
library: 'your.namespace',
@dfenerski
dfenerski / Component.js
Created April 9, 2022 11:26
Global XMLPreprocessor for UI5 apps
registerXMLPreprocessor: function () {
// Views that use templating must add xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
const oLocal = this.getModel('local');
XMLView.registerPreprocessor(
'XML',
'sap.ui.core.util.XMLPreprocessor',
'XML',
false,