Code Monkey home page Code Monkey logo

calendar-native-widget's Introduction



Calendar Widget for Mendix Native

License: MIT License: MIT GitHub issues GitHub issues GitHub issues License: MIT

headerIMG

A React Native Calendar for Mendix Native (with Dark Mode Support)

You can track current status and add feature requests on the Github Project Board

Examples

Add a Date

headerIMG

Swipe Down for More

headerIMG

Display Modes

Light

headerIMG

Dark

headerIMG

Usage

In its current form the Calendar put most of the Power in the Mendix Developers hands. The Widget tries to be a Minimal as possible while staying powerful.

The Idea at a higher level :

  • You provide the widget with a list data source and specify the Date Entity.
  • You wrap the Widget in a data source that is ideally Volatile/Non Persistable. This value will be consumed by the Widget and changed/manipulated. (Think of this like Redux/Mobx state)
  • Pass the OnClick Option a Nano flow with the Parameter. This parameter will be the altered value (The date the user Pressed on) You as Mendix Dev can then deicide what to do with it.

Data

headerIMG

Type Info
Incoming Dates Data Source List of Dates to Display
Date DateTime Attribute in Date Source that is of Type Date
Is Active Date Boolean If false the date will be greyed (Coming from data Model)
Volatile Date DateTime Non Persistable Date that the Widget can Change and Mendix Developer can Observe
OnClick Action Action to Happen when the User Clicks on the Date - Usually a Nano Flow used to Open Page to either Add New Date or Display all entries for selected date.

Settings

headerIMG

Type Info
Name of Property String Name of Property seen when User swipes down If Activate Swipe Down is True/Yes
Button Text String Text on Button If Auto Trigger Action is set to False/No
Take Is Active Into Account Boolean If false Is Active Date will be ignored
Start Of Week ENUM On what day is the start of the week
Display Mode ENUM Changes the Calendar "theme", based on what display mode the users device is on Either System (will take what the current device is on), or Light or Dark.
Active Swipe Down Boolean Activate Swiping down to expand the Calendar - Users will see an count of Calendar entries
Disable Month Change Boolean Prevent user from changing the Month
Auto Trigger Action Boolean Adds a button to the bottom of Calender, Allows user to select dat without triggering onClick action
Disable Weekends Boolean Prevents user from selecting Weekends
Disable Past Dates Boolean Prevents user from selecting dates in the Past
Months from now Integer Positive or Negative Integer. sets the default starting month from Today.

Appearance

headerIMG

Type Info
Selected Date Color String Custom Background Color of Selected Date
Selected Text Date Color String Custom Color of Selected Text Date
Dot Date Color String Custom color for Dot

Screenshots

Add Date Page

headerIMG


On Press Date

headerIMG


Create State

headerIMG


calendar-native-widget's People

Contributors

ahwelgemoed avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jeltemx

calendar-native-widget's Issues

Invalid time value

Hi. I'm getting React error "Invalid time value". In the project we want to show birthdays on the calendar, so we need to get the actual birthdate (non localized) and change the actual birth year with the current year. So, after some manipulation the dates are successfully created and passed on the widget. When rendering the widget, the error occurs. In my client logging I can see that the dates are actual dates. I tried it both with non localized dates (did not set the time elements) and localized dates (parseDateTime and parseDateTimeUTC with "10:00" as time element). Any help is appreciated, thanks. Local log is not giving me any clue.

Data issue

Hi,
I just followed documentation & done the mentioned logics & settings same as it is in screenshots & doc. I can able to see the Calendar and after clicking date, opening new page & saving the name & description data's and committing the calendar object. But the saved event information's are not showing in my calendar. Even i added microflow by retrieving the Calendar data from db, it's just empty on click of save button itself. PFA :
image
image
image
image
image
image

Any idea on this?

Any help will be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.