From 97a2df081fb867e10a67c6b0244afd2ae26aa363 Mon Sep 17 00:00:00 2001 From: amandaesmith333 Date: Mon, 13 Feb 2023 10:41:33 -0600 Subject: [PATCH 01/10] docs(datetime): add highlightedDates playgrounds --- docs/api/datetime.md | 21 +++++++ .../array/angular/example_component_html.md | 7 +++ .../array/angular/example_component_ts.md | 32 +++++++++++ .../datetime/highlightedDates/array/demo.html | 55 +++++++++++++++++++ .../datetime/highlightedDates/array/index.md | 24 ++++++++ .../highlightedDates/array/javascript.md | 29 ++++++++++ .../datetime/highlightedDates/array/react.md | 35 ++++++++++++ .../v6/datetime/highlightedDates/array/vue.md | 44 +++++++++++++++ .../angular/example_component_html.md | 3 + .../callback/angular/example_component_ts.md | 30 ++++++++++ .../highlightedDates/callback/demo.html | 53 ++++++++++++++++++ .../highlightedDates/callback/index.md | 24 ++++++++ .../highlightedDates/callback/javascript.md | 27 +++++++++ .../highlightedDates/callback/react.md | 32 +++++++++++ .../datetime/highlightedDates/callback/vue.md | 38 +++++++++++++ .../array/angular/example_component_html.md | 7 +++ .../array/angular/example_component_ts.md | 32 +++++++++++ .../datetime/highlightedDates/array/demo.html | 55 +++++++++++++++++++ .../datetime/highlightedDates/array/index.md | 24 ++++++++ .../highlightedDates/array/javascript.md | 29 ++++++++++ .../datetime/highlightedDates/array/react.md | 35 ++++++++++++ .../v7/datetime/highlightedDates/array/vue.md | 44 +++++++++++++++ .../angular/example_component_html.md | 3 + .../callback/angular/example_component_ts.md | 30 ++++++++++ .../highlightedDates/callback/demo.html | 53 ++++++++++++++++++ .../highlightedDates/callback/index.md | 24 ++++++++ .../highlightedDates/callback/javascript.md | 27 +++++++++ .../highlightedDates/callback/react.md | 32 +++++++++++ .../datetime/highlightedDates/callback/vue.md | 38 +++++++++++++ versioned_docs/version-v6/api/datetime.md | 21 +++++++ 30 files changed, 908 insertions(+) create mode 100644 static/usage/v6/datetime/highlightedDates/array/angular/example_component_html.md create mode 100644 static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md create mode 100644 static/usage/v6/datetime/highlightedDates/array/demo.html create mode 100644 static/usage/v6/datetime/highlightedDates/array/index.md create mode 100644 static/usage/v6/datetime/highlightedDates/array/javascript.md create mode 100644 static/usage/v6/datetime/highlightedDates/array/react.md create mode 100644 static/usage/v6/datetime/highlightedDates/array/vue.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/angular/example_component_html.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/angular/example_component_ts.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/demo.html create mode 100644 static/usage/v6/datetime/highlightedDates/callback/index.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/javascript.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/react.md create mode 100644 static/usage/v6/datetime/highlightedDates/callback/vue.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/angular/example_component_html.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/angular/example_component_ts.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/demo.html create mode 100644 static/usage/v7/datetime/highlightedDates/array/index.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/javascript.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/react.md create mode 100644 static/usage/v7/datetime/highlightedDates/array/vue.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/angular/example_component_html.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/angular/example_component_ts.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/demo.html create mode 100644 static/usage/v7/datetime/highlightedDates/callback/index.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/javascript.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/react.md create mode 100644 static/usage/v7/datetime/highlightedDates/callback/vue.md diff --git a/docs/api/datetime.md b/docs/api/datetime.md index ab856254cac..f42d3966a7b 100644 --- a/docs/api/datetime.md +++ b/docs/api/datetime.md @@ -31,6 +31,9 @@ import ShowingConfirmationButtons from '@site/static/usage/v7/datetime/buttons/s import CustomizingButtons from '@site/static/usage/v7/datetime/buttons/customizing-buttons/index.md'; import CustomizingButtonTexts from '@site/static/usage/v7/datetime/buttons/customizing-button-texts/index.md'; +import HighlightedDatesArray from '@site/static/usage/v7/datetime/highlightedDates/array/index.md'; +import HighlightedDatesCallback from '@site/static/usage/v7/datetime/highlightedDates/callback/index.md'; + import MultipleDateSelection from '@site/static/usage/v7/datetime/multiple/index.md'; import Theming from '@site/static/usage/v7/datetime/theming/index.md'; @@ -283,6 +286,24 @@ Developers can provide their own buttons for advanced custom behavior. +## Highlighting Specific Dates + +Using the `highlightedDates` property, developers can style particular dates with custom text or background colors. This property can be defined as either an array of dates and their colors, or a callback that receives an ISO string and returns the colors to use. + +:::note +This property is only supported when `preferWheel="false"`, and using a `presentation` of either `"date"`, `"date-time"`, or `"time-date"`. +::: + +### Using Array + +Note that provided `date` strings should not contain any time information. + + + +### Using Callback + + + ## Theming Ionic's powerful theming system can be used to easily change your entire app to match a certain theme. In this example, we used the [Color Creator](../theming/colors#new-color-creator) and the [Stepped Color Generator](../theming/themes#stepped-color-generator) to create a rose color palette that we can use for `ion-datetime`. diff --git a/static/usage/v6/datetime/highlightedDates/array/angular/example_component_html.md b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_html.md new file mode 100644 index 00000000000..46de9b8c9a6 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_html.md @@ -0,0 +1,7 @@ +```html + +``` diff --git a/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md new file mode 100644 index 00000000000..6a766080128 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md @@ -0,0 +1,32 @@ +```ts +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', +}) +export class ExampleComponent { + public highlightedDates = [ + { + date: '2023-01-05', + color: '#800080', + backgroundColor: '#ffc0cb', + }, + { + date: '2023-01-10', + color: '#09721b', + backgroundColor: '#c8e5d0', + }, + { + date: '2023-01-20', + color: '#0000ff', + backgroundColor: '#add8e6', + }, + { + date: '2023-01-23', + color: '#440ab8', + backgroundColor: '#d3c8e5' + } + ]; +} +``` diff --git a/static/usage/v6/datetime/highlightedDates/array/demo.html b/static/usage/v6/datetime/highlightedDates/array/demo.html new file mode 100644 index 00000000000..dfaac30f1bc --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/demo.html @@ -0,0 +1,55 @@ + + + + + + + Datetime + + + + + + + + + + +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/static/usage/v6/datetime/highlightedDates/array/index.md b/static/usage/v6/datetime/highlightedDates/array/index.md new file mode 100644 index 00000000000..166c5f30cb4 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/index.md @@ -0,0 +1,24 @@ +import Playground from '@site/src/components/global/Playground'; + +import javascript from './javascript.md'; +import react from './react.md'; +import vue from './vue.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v6/datetime/highlightedDates/array/javascript.md b/static/usage/v6/datetime/highlightedDates/array/javascript.md new file mode 100644 index 00000000000..f4672fa951f --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/javascript.md @@ -0,0 +1,29 @@ +```html + + + +``` diff --git a/static/usage/v6/datetime/highlightedDates/array/react.md b/static/usage/v6/datetime/highlightedDates/array/react.md new file mode 100644 index 00000000000..a1aa657d821 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/react.md @@ -0,0 +1,35 @@ +```tsx +import React from 'react'; +import { IonDatetime } from '@ionic/react'; +function Example() { + return ( + + ); +} +export default Example; +``` diff --git a/static/usage/v6/datetime/highlightedDates/array/vue.md b/static/usage/v6/datetime/highlightedDates/array/vue.md new file mode 100644 index 00000000000..dee90ff27e8 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/array/vue.md @@ -0,0 +1,44 @@ +```html + + + +``` diff --git a/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_html.md b/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_html.md new file mode 100644 index 00000000000..634090ab0ab --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_html.md @@ -0,0 +1,3 @@ +```html + +``` diff --git a/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_ts.md b/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_ts.md new file mode 100644 index 00000000000..0f143cddc53 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/angular/example_component_ts.md @@ -0,0 +1,30 @@ +```ts +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', +}) +export class ExampleComponent { + highlightedDates = (isoString) => { + const date = new Date(isoString); + const utcDay = date.getUTCDate(); + + if(utcDay % 5 === 0) { + return { + color: '#800080', + backgroundColor: '#ffc0cb', + }; + } + + if(utcDay % 3 === 0) { + return { + color: '#0000ff', + backgroundColor: '#add8e6', + }; + } + + return undefined; + }; +} +``` diff --git a/static/usage/v6/datetime/highlightedDates/callback/demo.html b/static/usage/v6/datetime/highlightedDates/callback/demo.html new file mode 100644 index 00000000000..49510d84a1b --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/demo.html @@ -0,0 +1,53 @@ + + + + + + + Datetime + + + + + + + + + + +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/static/usage/v6/datetime/highlightedDates/callback/index.md b/static/usage/v6/datetime/highlightedDates/callback/index.md new file mode 100644 index 00000000000..25a61b3d896 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/index.md @@ -0,0 +1,24 @@ +import Playground from '@site/src/components/global/Playground'; + +import javascript from './javascript.md'; +import react from './react.md'; +import vue from './vue.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v6/datetime/highlightedDates/callback/javascript.md b/static/usage/v6/datetime/highlightedDates/callback/javascript.md new file mode 100644 index 00000000000..33eadbf4627 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/javascript.md @@ -0,0 +1,27 @@ +```html + + + +``` diff --git a/static/usage/v6/datetime/highlightedDates/callback/react.md b/static/usage/v6/datetime/highlightedDates/callback/react.md new file mode 100644 index 00000000000..a78ff696322 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/react.md @@ -0,0 +1,32 @@ +```tsx +import React from 'react'; +import { IonDatetime } from '@ionic/react'; +function Example() { + return ( + { + const date = new Date(isoString); + const utcDay = date.getUTCDate(); + + if(utcDay % 5 === 0) { + return { + color: '#800080', + backgroundColor: '#ffc0cb', + }; + } + + if(utcDay % 3 === 0) { + return { + color: '#0000ff', + backgroundColor: '#add8e6', + }; + } + + return undefined; + }} + > + ); +} +export default Example; +``` diff --git a/static/usage/v6/datetime/highlightedDates/callback/vue.md b/static/usage/v6/datetime/highlightedDates/callback/vue.md new file mode 100644 index 00000000000..790568f7573 --- /dev/null +++ b/static/usage/v6/datetime/highlightedDates/callback/vue.md @@ -0,0 +1,38 @@ +```html + + + +``` diff --git a/static/usage/v7/datetime/highlightedDates/array/angular/example_component_html.md b/static/usage/v7/datetime/highlightedDates/array/angular/example_component_html.md new file mode 100644 index 00000000000..46de9b8c9a6 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/angular/example_component_html.md @@ -0,0 +1,7 @@ +```html + +``` diff --git a/static/usage/v7/datetime/highlightedDates/array/angular/example_component_ts.md b/static/usage/v7/datetime/highlightedDates/array/angular/example_component_ts.md new file mode 100644 index 00000000000..6a766080128 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/angular/example_component_ts.md @@ -0,0 +1,32 @@ +```ts +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', +}) +export class ExampleComponent { + public highlightedDates = [ + { + date: '2023-01-05', + color: '#800080', + backgroundColor: '#ffc0cb', + }, + { + date: '2023-01-10', + color: '#09721b', + backgroundColor: '#c8e5d0', + }, + { + date: '2023-01-20', + color: '#0000ff', + backgroundColor: '#add8e6', + }, + { + date: '2023-01-23', + color: '#440ab8', + backgroundColor: '#d3c8e5' + } + ]; +} +``` diff --git a/static/usage/v7/datetime/highlightedDates/array/demo.html b/static/usage/v7/datetime/highlightedDates/array/demo.html new file mode 100644 index 00000000000..dfaac30f1bc --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/demo.html @@ -0,0 +1,55 @@ + + + + + + + Datetime + + + + + + + + + + +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/static/usage/v7/datetime/highlightedDates/array/index.md b/static/usage/v7/datetime/highlightedDates/array/index.md new file mode 100644 index 00000000000..06e80f607d8 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/index.md @@ -0,0 +1,24 @@ +import Playground from '@site/src/components/global/Playground'; + +import javascript from './javascript.md'; +import react from './react.md'; +import vue from './vue.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/datetime/highlightedDates/array/javascript.md b/static/usage/v7/datetime/highlightedDates/array/javascript.md new file mode 100644 index 00000000000..f4672fa951f --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/javascript.md @@ -0,0 +1,29 @@ +```html + + + +``` diff --git a/static/usage/v7/datetime/highlightedDates/array/react.md b/static/usage/v7/datetime/highlightedDates/array/react.md new file mode 100644 index 00000000000..a1aa657d821 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/react.md @@ -0,0 +1,35 @@ +```tsx +import React from 'react'; +import { IonDatetime } from '@ionic/react'; +function Example() { + return ( + + ); +} +export default Example; +``` diff --git a/static/usage/v7/datetime/highlightedDates/array/vue.md b/static/usage/v7/datetime/highlightedDates/array/vue.md new file mode 100644 index 00000000000..dee90ff27e8 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/array/vue.md @@ -0,0 +1,44 @@ +```html + + + +``` diff --git a/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_html.md b/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_html.md new file mode 100644 index 00000000000..634090ab0ab --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_html.md @@ -0,0 +1,3 @@ +```html + +``` diff --git a/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_ts.md b/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_ts.md new file mode 100644 index 00000000000..0f143cddc53 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/angular/example_component_ts.md @@ -0,0 +1,30 @@ +```ts +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-example', + templateUrl: 'example.component.html', +}) +export class ExampleComponent { + highlightedDates = (isoString) => { + const date = new Date(isoString); + const utcDay = date.getUTCDate(); + + if(utcDay % 5 === 0) { + return { + color: '#800080', + backgroundColor: '#ffc0cb', + }; + } + + if(utcDay % 3 === 0) { + return { + color: '#0000ff', + backgroundColor: '#add8e6', + }; + } + + return undefined; + }; +} +``` diff --git a/static/usage/v7/datetime/highlightedDates/callback/demo.html b/static/usage/v7/datetime/highlightedDates/callback/demo.html new file mode 100644 index 00000000000..49510d84a1b --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/demo.html @@ -0,0 +1,53 @@ + + + + + + + Datetime + + + + + + + + + + +
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/static/usage/v7/datetime/highlightedDates/callback/index.md b/static/usage/v7/datetime/highlightedDates/callback/index.md new file mode 100644 index 00000000000..294e127a7e2 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/index.md @@ -0,0 +1,24 @@ +import Playground from '@site/src/components/global/Playground'; + +import javascript from './javascript.md'; +import react from './react.md'; +import vue from './vue.md'; + +import angular_example_component_html from './angular/example_component_html.md'; +import angular_example_component_ts from './angular/example_component_ts.md'; + + diff --git a/static/usage/v7/datetime/highlightedDates/callback/javascript.md b/static/usage/v7/datetime/highlightedDates/callback/javascript.md new file mode 100644 index 00000000000..33eadbf4627 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/javascript.md @@ -0,0 +1,27 @@ +```html + + + +``` diff --git a/static/usage/v7/datetime/highlightedDates/callback/react.md b/static/usage/v7/datetime/highlightedDates/callback/react.md new file mode 100644 index 00000000000..a78ff696322 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/react.md @@ -0,0 +1,32 @@ +```tsx +import React from 'react'; +import { IonDatetime } from '@ionic/react'; +function Example() { + return ( + { + const date = new Date(isoString); + const utcDay = date.getUTCDate(); + + if(utcDay % 5 === 0) { + return { + color: '#800080', + backgroundColor: '#ffc0cb', + }; + } + + if(utcDay % 3 === 0) { + return { + color: '#0000ff', + backgroundColor: '#add8e6', + }; + } + + return undefined; + }} + > + ); +} +export default Example; +``` diff --git a/static/usage/v7/datetime/highlightedDates/callback/vue.md b/static/usage/v7/datetime/highlightedDates/callback/vue.md new file mode 100644 index 00000000000..790568f7573 --- /dev/null +++ b/static/usage/v7/datetime/highlightedDates/callback/vue.md @@ -0,0 +1,38 @@ +```html + + + +``` diff --git a/versioned_docs/version-v6/api/datetime.md b/versioned_docs/version-v6/api/datetime.md index 021146d87ff..3524e104496 100644 --- a/versioned_docs/version-v6/api/datetime.md +++ b/versioned_docs/version-v6/api/datetime.md @@ -32,6 +32,9 @@ import ShowingConfirmationButtons from '@site/static/usage/v6/datetime/buttons/s import CustomizingButtons from '@site/static/usage/v6/datetime/buttons/customizing-buttons/index.md'; import CustomizingButtonTexts from '@site/static/usage/v6/datetime/buttons/customizing-button-texts/index.md'; +import HighlightedDatesArray from '@site/static/usage/v6/datetime/highlightedDates/array/index.md'; +import HighlightedDatesCallback from '@site/static/usage/v6/datetime/highlightedDates/callback/index.md'; + import MultipleDateSelection from '@site/static/usage/v6/datetime/multiple/index.md'; import Theming from '@site/static/usage/v6/datetime/theming/index.md'; @@ -286,6 +289,24 @@ Developers can provide their own buttons for advanced custom behavior. +## Highlighting Specific Dates + +Using the `highlightedDates` property, developers can style particular dates with custom text or background colors. This property can be defined as either an array of dates and their colors, or a callback that receives an ISO string and returns the colors to use. + +:::note +This property is only supported when `preferWheel="false"`, and using a `presentation` of either `"date"`, `"date-time"`, or `"time-date"`. +::: + +### Using Array + +Note that provided `date` strings should not contain any time information. + + + +### Using Callback + + + ## Theming Ionic's powerful theming system can be used to easily change your entire app to match a certain theme. In this example, we used the [Color Creator](../theming/colors#new-color-creator) and the [Stepped Color Generator](../theming/themes#stepped-color-generator) to create a rose color palette that we can use for `ion-datetime`. From f75661ea29ddd2bab096593ed9273c127048dcd4 Mon Sep 17 00:00:00 2001 From: amandaesmith333 Date: Mon, 13 Feb 2023 12:09:54 -0600 Subject: [PATCH 02/10] remove note about stripping time info after adding that directly to feature --- docs/api/datetime.md | 2 -- versioned_docs/version-v6/api/datetime.md | 2 -- 2 files changed, 4 deletions(-) diff --git a/docs/api/datetime.md b/docs/api/datetime.md index f42d3966a7b..123b89a6b67 100644 --- a/docs/api/datetime.md +++ b/docs/api/datetime.md @@ -296,8 +296,6 @@ This property is only supported when `preferWheel="false"`, and using a `present ### Using Array -Note that provided `date` strings should not contain any time information. - ### Using Callback diff --git a/versioned_docs/version-v6/api/datetime.md b/versioned_docs/version-v6/api/datetime.md index 3524e104496..5b9665c5d66 100644 --- a/versioned_docs/version-v6/api/datetime.md +++ b/versioned_docs/version-v6/api/datetime.md @@ -299,8 +299,6 @@ This property is only supported when `preferWheel="false"`, and using a `present ### Using Array -Note that provided `date` strings should not contain any time information. - ### Using Callback From 14328c025ffd8ca2ba74dcc168c0624a2b0689d3 Mon Sep 17 00:00:00 2001 From: amandaesmith333 Date: Thu, 16 Feb 2023 13:06:41 -0600 Subject: [PATCH 03/10] rename color to textColor --- .../array/angular/example_component_ts.md | 8 ++++---- .../v6/datetime/highlightedDates/array/demo.html | 12 ++++++------ .../v6/datetime/highlightedDates/array/javascript.md | 8 ++++---- .../v6/datetime/highlightedDates/array/react.md | 8 ++++---- .../usage/v6/datetime/highlightedDates/array/vue.md | 8 ++++---- .../callback/angular/example_component_ts.md | 4 ++-- .../v6/datetime/highlightedDates/callback/demo.html | 8 ++++---- .../datetime/highlightedDates/callback/javascript.md | 4 ++-- .../v6/datetime/highlightedDates/callback/react.md | 4 ++-- .../v6/datetime/highlightedDates/callback/vue.md | 4 ++-- .../array/angular/example_component_ts.md | 8 ++++---- .../v7/datetime/highlightedDates/array/demo.html | 12 ++++++------ .../v7/datetime/highlightedDates/array/javascript.md | 8 ++++---- .../v7/datetime/highlightedDates/array/react.md | 8 ++++---- .../usage/v7/datetime/highlightedDates/array/vue.md | 8 ++++---- .../callback/angular/example_component_ts.md | 4 ++-- .../v7/datetime/highlightedDates/callback/demo.html | 8 ++++---- .../datetime/highlightedDates/callback/javascript.md | 4 ++-- .../v7/datetime/highlightedDates/callback/react.md | 4 ++-- .../v7/datetime/highlightedDates/callback/vue.md | 4 ++-- 20 files changed, 68 insertions(+), 68 deletions(-) diff --git a/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md index 6a766080128..579d9d85247 100644 --- a/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md +++ b/static/usage/v6/datetime/highlightedDates/array/angular/example_component_ts.md @@ -9,22 +9,22 @@ export class ExampleComponent { public highlightedDates = [ { date: '2023-01-05', - color: '#800080', + textColor: '#800080', backgroundColor: '#ffc0cb', }, { date: '2023-01-10', - color: '#09721b', + textColor: '#09721b', backgroundColor: '#c8e5d0', }, { date: '2023-01-20', - color: '#0000ff', + textColor: '#0000ff', backgroundColor: '#add8e6', }, { date: '2023-01-23', - color: '#440ab8', + textColor: '#440ab8', backgroundColor: '#d3c8e5' } ]; diff --git a/static/usage/v6/datetime/highlightedDates/array/demo.html b/static/usage/v6/datetime/highlightedDates/array/demo.html index dfaac30f1bc..2b002ea90f8 100644 --- a/static/usage/v6/datetime/highlightedDates/array/demo.html +++ b/static/usage/v6/datetime/highlightedDates/array/demo.html @@ -7,8 +7,8 @@ Datetime - - + +