Skip to content

Commit

Permalink
feat: pass displayFormat property to timecontrol
Browse files Browse the repository at this point in the history
  • Loading branch information
silvester-pari committed Dec 18, 2024
1 parent 1ee6f96 commit f24cbe7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elements/layercontrol/src/components/layer-datetime.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export class EOxLayerControlLayerDatetime extends LitElement {
* disablePlay?: boolean;
* slider?: boolean;
* currentStep: string|number;
* controlValues: (string|number)[]
* controlValues: (string|number)[];
* displayFormat?: string;
* }}
*/
this.layerDatetime = null;
Expand Down Expand Up @@ -111,6 +112,7 @@ export class EOxLayerControlLayerDatetime extends LitElement {
.controlValues=${this.layerDatetime.controlValues}
.controlProperty=${undefined}
current-step=${this.layerDatetime.currentStep}
.displayFormat=${this.layerDatetime.displayFormat}
@stepchange=${this.#handleStepChange}
></eox-timecontrol>
`,
Expand Down
1 change: 1 addition & 0 deletions elements/layercontrol/src/enums/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ export const STORIES_LAYER_VESSEL_DENSITY_CARGO = {
disablePlay: true,
slider: true,
currentStep: "2021-03-01",
displayFormat: "DD.MM.YYYY",
controlValues: [
"2022-12-01",
"2022-11-01",
Expand Down

0 comments on commit f24cbe7

Please sign in to comment.