Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ImranCodeBug/codebug-countdown-pcf

Open more actions menu

Repository files navigation

codebug-countdown-pcf

Build Status

The purpose of the pcf control is to show a timer which counts down to a target date. if the target has already been passed then it will show count negative. for the timer component, the control uses the react-countdown component found in this npm repository.

Property Specification

Property Name Datatype Default value Required Usage Description
targetDate DateAndTime.DateAndTime N/A Y Bound The date field the control will countdown to
completionDate DateAndTime.DateAndTime N/A N Bound Date Field for the completion (If Exists)
fieldName SingleLine.Text Resolved By Y input The Label of the Control
pausedField OptionSet N/A N input OptionSet containing the paused pause option
pausedValue Whole.None N/A N input The optionset value for the paused field for which the control will show pause state

Business logic

  • If value of the pausedField is same as the as the pausedValue, then show paused.
  • else
    • if the completionDate is null. [meaning the record is not completed yet]
      • if the targetDate is greater than the current date, then show expired
      • else show progressing
    • else
      • if the targetDate is greater than the completionDate, then show failed
      • else show succeeded

Design

State Design
Success Success
Failed Failed
Expired Expired
Progressing Progressing
Paused Paused

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.