Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 44 additions & 62 deletions samples/calendar-component/README.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,63 @@
---
page_type: sample
languages:
- powerapps-comma
products:
- powerapps
- canvas
name: Calendar Component
description: A re-usable component that allows you to display events in a calendar.
urlFragment: powerapps-calendar-component
ms.date: 5/5/2021
author: aprildunnam
ms.author: pnp
level: intermediate
ms.prod: power-apps
---

# Calendar Component

## Summary

A re-usable component that allows you to display events in a calendar.
A re-usable component that allows you to display events in a calendar.

![Preview](./assets/preview.png)

## Applies to

* [Microsoft Power Apps](https://docs.microsoft.com/powerapps/)
![Power Apps](https://img.shields.io/badge/Power%20Apps-Yes-green "Yes")
![Power Automate](https://img.shields.io/badge/Power%20Automate-No-red "No")
![Power BI](https://img.shields.io/badge/Power%20BI-No-red "No")
![Power Pages](https://img.shields.io/badge/Power%20Pages-No-red "No")
![Power Virtual Agents](https://img.shields.io/badge/Power%20Virtual%20Agents-No-red "No")
![Dataverse](https://img.shields.io/badge/Dataverse-No-red "No")
![AI Builder](https://img.shields.io/badge/AI%20Builder-No-red "No")
![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-No-red "No")
![Power Fx](https://img.shields.io/badge/Power%20Fx-No-red "No")


## Compatibility

![Power Apps Source File Pack and Unpack Utility 0.20](https://img.shields.io/badge/Packing%20Tool-0.20-green.svg)
![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-green.svg "Premium Power Apps license not required")
![Experimental Features](https://img.shields.io/badge/Experimental%20Features-No-green.svg "Does not rely on experimental features")
![On-Premises Connectors](https://img.shields.io/badge/On--Premises%20Connectors-No-green.svg "Does not use on-premise connectors")
![Custom Connectors](https://img.shields.io/badge/Custom%20Connectors-Not%20Required-green.svg "Does not use custom connectors")
![Premium License](https://img.shields.io/badge/Premium%20License-Not%20Required-red.svg "Premium license not required")
![Experimental Features](https://img.shields.io/badge/Experimental%20Features-No-red.svg "Does not rely on experimental features")

## Authors

Solution|Author(s)
--------|---------
Calendar Component | [April Dunnam](https://github.com/aprildunnam) ([@aprildunnam](https://www.twitter.com/aprildunnam) )
## Contributors

* [April Dunnam](https://github.com/aprildunnam) ([@aprildunnam](https://www.twitter.com/aprildunnam) )

## Version history

Version|Date|Comments
-------|----|--------
1.0|May 5, 2021|Initial release
2.0|July 15, 2025|Migration from powerapps-samples repository with solution repacking by [Jan Chlebek](https://github.com/jan-chlebek)

## Minimal path to awesome

### Using the solution zip

* [Download](./solution/calendar-component.zip) the `.zip` from the `solution` folder
* Within **Power Apps Studio**, import the solution `.zip` file using **Solutions** > **Import Solution** and select the `.zip` file you just packed.
* Open the app in edit mode and make sure the data source **Data source name** is connected correctly.

### Using the source code

## Features
You can also use the [Power Apps CLI](https://docs.microsoft.com/powerapps/developer/data-platform/powerapps-cli) to pack the source code by following these steps:

This sample illustrates the following concepts:
* Clone the repository to a local drive
* Pack the source files back into a solution `.zip` file:

```bash
pac solution pack --zipfile pathtodestinationfile --folder pathtosourcefolder --processCanvasApps
```

Making sure to replace `pathtosourcefolder` to point to the path to this sample's `sourcecode` folder, and `pathtodestinationfile` to point to the path of this solution's `.zip` file (located under the `solution` folder)
* Within **Power Apps Studio**, import the solution `.zip` file using **Solutions** > **Import Solution** and select the `.zip` file you just packed.

* Creating a Power Apps component
* Using a Power Apps component

## Prerequisites

Expand Down Expand Up @@ -83,45 +88,22 @@ Table(
```

## Data Sources

None

## Minimal Path to Awesome

* [Download](./solution/calendar-component.msapp) the `.msapp` from the `solution` folder
* Use the `.msapp` file using **File** > **Open** > **Browse** within Power Apps Studio.
* Save and Publish
## Help

## Using the Source Code
We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can also use the [Power Apps CLI](https://docs.microsoft.com/powerapps/developer/data-platform/powerapps-cli) to pack the source code by following these steps::

* Clone the repository to a local drive
* Pack the source files back into `.msapp` file:

```bash
pac canvas pack --sources pathtosourcefolder --msapp pathtomsapp
```

Making sure to replace `pathtosourcefolder` to point to the path to this sample's `sourcecode` folder, and `pathtomsapp` to point to the path of this solution's `.msapp` file (located under the `solution` folder)
* Use the `.msapp` file using **File** > **Open** > **Browse** in Power Apps Studio.

## Disclaimer

**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

## Support

While we don't support samples, if you encounter any issues while using this sample, you can [create a new issue](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=calendar-component&authors=@aprildunnam&title=calendar-component%20-%20).
If you encounter any issues while using this sample, you can [create a new issue](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=bug-report.yml&sample=calendar-component&authors=@aprildunnam&title=calendar-component%20-%20).

For questions regarding this sample, [create a new question](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=question.yml&sample=calendar-component&authors=@aprildunnam&title=calendar-component%20-%20).

Finally, if you have an idea for improvement, [make a suggestion](https://github.com/pnp/powerapps-samples/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&template=suggestion.yml&sample=calendar-component&authors=@aprildunnam&title=calendar-component%20-%20).

## For more information
## Disclaimer

* [Create a component for canvas apps](https://docs.microsoft.com/powerapps/maker/canvas-apps/create-component#components-in-canvas-apps)
* [Overview of creating apps in Power Apps](https://docs.microsoft.com/powerapps/maker/)
* [Power Apps canvas apps documentation](https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/)
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**

<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-samples/samples/calendar-component" />
<img src="https://m365-visitor-stats.azurewebsites.net/powerplatform-samples/samples/calendar-component" aria-hidden="true" />
28 changes: 10 additions & 18 deletions samples/calendar-component/assets/sample.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
[
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/pnp/samples/v1.0/metadata-schema.json",
"name": "pnp-powerapps-samples-calendar-component",
"version": "1.0.0.0",
"name": "pnp-powerplatform-samples-calendar-component",
"source": "pnp",
"creationDateTime": "2021-05-05T00:00:00.000Z",
"updateDateTime": "2021-05-05T00:00:00.000Z",
"title": "Calendar Component",
"shortDescription": "A re-usable component that allows you to display events in a calendar.",
"url": "https://github.com/pnp/powerplatform-samples/tree/main/samples/calendar-component",
"downloadUrl": "https://pnp.github.io/download-partial/?url=https://github.com/pnp/powerplatform-samples/tree/main/samples/calendar-component",
"longDescription": [
"A re-usable component that allows you to display events in a calendar."
],
"url": "https://github.com/pnp/powerapps-samples/tree/main/samples/calendar-component",
"creationDateTime": "2021-05-05",
"updateDateTime": "2025-07-15",
"products": [
"Power Apps",
"Power Platform"
"Power Platform",
"PowerPlatform-samples"
],
"tags": [
"CALENDAR", "COMPONENT"
],
"categories": [
"POWERAPPS"
"CANVAS"
],
"metadata": [
{
"key": "POWERAPPS-MANIFEST-VERSION",
"value": "0.20"
},
{
"key": "POWERAPPS-TYPE",
"value": "Canvas"
},
{
"key": "POWERAPPS-EXPERIMENTAL",
"value": "No"
Expand All @@ -52,8 +44,8 @@
{
"type": "image",
"order": 100,
"url": "https://github.com/pnp/powerapps-samples/blob/main/samples/calendar-component/assets/preview.png?raw=true",
"alt": "Preview"
"url": "https://github.com/pnp/powerplatform-samples/raw/main/samples/calendar-component/assets/preview.png",
"alt": "Preview PNG"
}
],
"authors": [
Expand Down
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions samples/calendar-component/sourcecode/Assets/Resources.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<CanvasApp xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Name>pnp_calendarcomponent_caea6</Name>
<AppVersion>2025-07-15T21:44:55Z</AppVersion>
<Status>Ready</Status>
<CreatedByClientVersion>3.25072.2.0</CreatedByClientVersion>
<MinClientVersion>3.25072.2.0</MinClientVersion>
<Tags>{"primaryDeviceWidth":"1366","primaryDeviceHeight":"768","supportsPortrait":"false","supportsLandscape":"true","primaryFormFactor":"Tablet","showStatusBar":"false","publisherVersion":"3.25072.2","minimumRequiredApiVersion":"2.2.0","hasComponent":"true","hasUnlockedComponent":"true","isUnifiedRootApp":"false","sienaVersion":"20250715T214455Z-3.25072.2.0"}</Tags>
<IsCdsUpgraded>0</IsCdsUpgraded>
<GalleryItemId xsi:nil="true"></GalleryItemId>
<BackgroundColor>rgba(0, 176, 240, 1)</BackgroundColor>
<DisplayName>Calendar Component</DisplayName>
<Description xsi:nil="true"></Description>
<CommitMessage xsi:nil="true"></CommitMessage>
<Publisher xsi:nil="true"></Publisher>
<AuthorizationReferences>[]</AuthorizationReferences>
<ConnectionReferences>{}</ConnectionReferences>
<DatabaseReferences>{}</DatabaseReferences>
<AppComponents>[]</AppComponents>
<AppComponentDependencies>[]</AppComponentDependencies>
<CanConsumeAppPass>1</CanConsumeAppPass>
<CanvasAppType>0</CanvasAppType>
<BypassConsent>0</BypassConsent>
<AdminControlBypassConsent>0</AdminControlBypassConsent>
<EmbeddedApp xsi:nil="true"></EmbeddedApp>
<IntroducedVersion>1.0</IntroducedVersion>
<CdsDependencies>{"cdsdependencies":[]}</CdsDependencies>
<IsCustomizable>1</IsCustomizable>
<BackgroundImageUri>/CanvasApps/pnp_calendarcomponent_caea6_BackgroundImageUri</BackgroundImageUri>
<DocumentUri>/CanvasApps/pnp_calendarcomponent_caea6_DocumentUri.msapp</DocumentUri>
<AdditionalUris>
<AdditionalUri>/CanvasApps/pnp_calendarcomponent_caea6_AdditionalUris0_identity.json</AdditionalUri>
</AdditionalUris>
</CanvasApp>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"__Version":"0.1","App":"f4723f28-d39f-4195-a9a6-75335d0b7918","Test_7F478737223C4B69":"3e2cc145-c992-4ac0-bbb7-eec6fd0458c8","Host":"86cb8fa6-8122-47b1-a13a-4c1ac5ad28dd","CalendarComponent":"98aac0c1-36ed-4b5d-b3f0-25c668dc2957","lblMonthYear_1":"b0c4a739-e637-47c7-9634-f0eb2337773c","btnPrevMonth_1":"b279d56b-abfd-43de-8e55-72a9b16f154c","btnToday_1":"9d120e40-6d81-444c-a206-435aceb2eafc","btnNextMonth_1":"71164b76-01b5-4706-ab71-af274ef37fd7","iconClose":"1ea2930f-a341-4bc2-beb1-3b7ee0797be8","galWeekdays_1":"31671c50-dc83-4122-abbf-e850db489f12","galleryTemplate4_5":"e8b8af23-879d-4a48-8505-e22926c6a5e5","lblWeekday_2":"7588a232-ce8f-40d8-91b1-1943a8f3c9b4","galCalendar_1":"9a48cbf9-6e50-4a6f-8c02-c9906e375911","galleryTemplate3_3":"4b3b264e-9362-4940-a17c-d634378f3313","Rectangle2":"1fbecd6d-ccca-464a-8466-58bad1c03865","btnDayBack":"81306b71-68e1-46c4-8c6f-cd1d94c0f7d1","btnDayValue":"5b7fe333-1496-46dd-a925-151fabc4ce1d","icnToday":"067929b7-b2c8-4e00-bb48-ed68950ed4da","icnEvent":"64aeb0dc-e207-4b80-a3ac-f527400cc7a1","tmrInitialize_2":"8db9c7c8-e8b0-4534-8e29-7c4e25db285b","galCalItems":"738ef682-b2c8-411c-acc2-00ff6df70e8e","galleryTemplate1":"fcd2ac5a-a0fd-42b4-ba6d-b348e5c76a4e","Rectangle1":"602ed526-a31b-4bbc-9597-340121287d81","lblEventName":"cee8be09-3d43-47ba-a98c-2edfadff5a06","lblEventTime":"eade9bd0-aaab-4211-9597-4285576d9f09","Screen1":"e8c500c7-839d-4a10-bfbf-13c5be4784f3","CalendarComponent_3":"186342fb-52e9-47bf-b442-58bff1627f44"}
Binary file not shown.
89 changes: 0 additions & 89 deletions samples/calendar-component/sourcecode/CanvasManifest.json

This file was deleted.

This file was deleted.

This file was deleted.

Loading