Giter Site home page Giter Site logo

galactic-plane / euro-currency-field Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.47 MB

This control is a React JS PCF Code Component for model-driven applications. Model-driven applications do not allow mixed currency symbols on a form by default. While the underlining hidden control is in USD, the visual (this PCF control) shows the Euro Symbol.

Home Page: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/overview

TypeScript 88.34% CSS 11.66%
powerplatform pcf-control model-driven-application reactjs typescript

euro-currency-field's Introduction

Euro Currency Field - PCF Code Component

App Logo

About

This control is a React JS PCF Code Component I created for model-driven applications. Model-driven applications do not allow mixed currency symbols on a form by default. While the underlining hidden control is dollars, the visual (this PCF control) shows the Euro Symbol. You must calculate the exchange rate on your own if you want to convert it to another currency. This control is just for a visual representation only. The value is saved in the hidden underlining currency field as shown in the picture below. It allows a user to type in more than two fixed decimal places, but will automatically round the value using the same behavior as the default currency control has. The control uses Fluent UI and custom styles to match the style of a model-driven application currency field.

App Image

This project was generated with Power Apps component framework CLI.

Build

Run npm run build to build the project.

Run

Run npm run start to run the project.

Update Control Manifest

Run npm run refreshTypes to refresh the types.

Lint Fix React JS

Run npm run lint:fix to lint and format JavaScript

Package the control

Package a code component

Further help

To get more help on the Power Apps component framework check out the Power Apps component framework overview.

euro-currency-field's People

Stargazers

 avatar  avatar

Watchers

 avatar

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.